Platform SDK: Debugging and Error Handling |
The ReadProcessMemoryProc function is an application-defined callback function used with the StackWalk function. It is called when StackWalk needs to read memory from the address space of the process.
The PREAD_PROCESS_MEMORY_ROUTINE type defines a pointer to this callback function. ReadProcessMemoryProc is a placeholder for the application-defined function name.
BOOL ReadProcessMemoryProc( HANDLE hProcess, DWORD lpBaseAddress, PVOID lpBuffer, DWORD nSize, PDWORD lpNumberOfBytesRead );
The PREAD_PROCESS_MEMORY_ROUTINE64 type defines a pointer to this callback function. ReadProcessMemoryProc64 is a placeholder for the application-defined function name.
BOOL ReadProcessMemoryProc64( HANDLE hProcess, DWORD64 lpBaseAddress, PVOID lpBuffer, DWORD nSize, LPDWORD lpNumberOfBytesRead );
If the function succeeds, the return value should be TRUE. If the function fails, the return value should be FALSE.
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Dbghelp.h.