C ReadProcessMemory

ReadProcessMemory函数用于读取其他进程的数据。

BOOL STDCALL ReadProcessMemory ( HANDLE hProcess, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD nSize, LPDWORD lpNumberOfBytesRead ) { NTSTATUS Status; Status = NtReadVirtualMemory( hProcess, (PVOID)lpBaseAddress,lpBuffer, nSize, (PULONG)lpNumberOfBytesRead ); if (!NT_SUCCESS(Status)) { SetLastErrorByStatus (Status); return FALSE; } return TRUE; }
posted @ 2014-05-18 02:21  胡炜  阅读(611)  评论(0编辑  收藏  举报