stackserv.c
来自「PE Monitor是一个小调试器和反汇编器」· C语言 代码 · 共 38 行
C
38 行
///////////////////////////////////////////////////////////////////////////////
//
// FileName : StackServ.c
// Version : 1.0
// Author : Luo Cong
// Date : 2004-09-02 9:58:30
// Comment :
//
///////////////////////////////////////////////////////////////////////////////
#include <windows.h>
#include "Misc.h"
#include "StackServ.h"
int GetStackContents(
/* [in] */ const HANDLE hProcess,
/* [in] */ const unsigned long Esp,
/* [out] */ unsigned long *lpStackAddress
)
{
int nRetResult = 0;
int nRetCode;
*lpStackAddress = 0;
nRetCode = ReadProcessMemory(
hProcess,
(unsigned long *)Esp,
lpStackAddress,
sizeof(lpStackAddress),
NULL
);
MY_PROCESS_ERROR(nRetCode);
nRetResult = 1;
Exit0:
return nRetResult;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?