mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
815 B
31 lines
815 B
|
|
HANDLE ProcessHandle = 0;
|
|
|
|
#undef DECLARE_API
|
|
|
|
#define DECLARE_API(s) \
|
|
VOID \
|
|
s( \
|
|
HANDLE hCurrentProcess, \
|
|
HANDLE hCurrentThread, \
|
|
DWORD dwCurrentPc, \
|
|
PWINDBG_EXTENSION_APIS pExtensionApis, \
|
|
LPSTR lpArgumentString \
|
|
)
|
|
|
|
#define INIT_DPRINTF() { ExtensionApis = *pExtensionApis; ProcessHandle = hCurrentProcess; }
|
|
|
|
WINDBG_EXTENSION_APIS ExtensionApis;
|
|
|
|
BOOL
|
|
GetData(
|
|
IN DWORD dwAddress,
|
|
IN LPVOID ptr,
|
|
IN ULONG size,
|
|
ULONG Ignored
|
|
)
|
|
{
|
|
return ReadProcessMemory(ProcessHandle, (LPVOID) dwAddress, ptr, size, 0);
|
|
}
|
|
|
|
|