计算函数长度

来源:互联网 发布:淘宝新店开直通车好吗 编辑:程序博客网 时间:2024/05/22 12:44
#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

DWORD cbSize = ((BYTE *)(DWORD)AtferFunc - (BYTE *)(DWORD)func)

转:http://bbs.pediy.com/showthread.php?t=146672 4L

原创粉丝点击