#pragma check_stack (off)
static DWORD func(LPVOID *pParam)
{
//Your funciton
}
// Dummy function used to get the address after your function
static void AtferFunc(void)
{
return;
}
#pragma check_stack
//calculate your fuction size
static DWORD func(LPVOID *pParam)
{
//Your funciton
}
// Dummy function used to get the address after your function
static void AtferFunc(void)
{
return;
}
#pragma check_stack
//calculate your fuction size
DWORD cbSize = ((BYTE *)(DWORD)AtferFunc - (BYTE *)(DWORD)func)