koneko/headers/callstackspoof.h

15 lines
479 B
C
Raw Normal View History

2025-04-12 23:47:27 -04:00
#pragma once
#ifndef CALLSTACKSPOOF_H
#define CALLSTACKSPOOF_H
// Function to get the Exception Directory from .PDATA
VOID GetExceptionAddress(PEXCEPTION_INFO pExceptionInfo);
// Backend function that does all the hard work
ULONG CalculateStackSizeBackend(PRUNTIME_FUNCTION pRuntimeFunctionTable, ULONG functionCount, DWORD64 ImageBase, DWORD64 pFuncAddr);
// Wrapper function for CalculateStackSizeBackend
ULONG CalculateStackSize(PVOID ReturnAddress);
#endif