Group: Debugging - Library: kernel32
Obtaining names and positions for shortcuts located on the Windows Desktop
Moving shortcut to a specified position on the Windows Desktop
BOOL WINAPI ReadProcessMemory(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__out LPVOID lpBuffer,
__in SIZE_T nSize,
__out SIZE_T *lpNumberOfBytesRead
);
DECLARE INTEGER ReadProcessMemory IN kernel32;
INTEGER hProcess,;
INTEGER lpBaseAddress,;
INTEGER lpBuffer,;
LONG nSize,;
LONG @ lpNumberOfBytesRead
hProcess [in] A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process.
lpBaseAddress [in] A pointer to the base address in the specified process from which to read.
lpBuffer [out] A pointer to a buffer that receives the contents from the address space of the specified process.
nSize [in] The number of bytes to be read from the specified process.
lpNumberOfBytesRead [out] A pointer to a variable that receives the number of bytes transferred into the specified buffer.
If the function succeeds, the return value is nonzero.
The entire area to be read must be accessible or the operation fails.
See also: WriteProcessMemory, VirtualAllocEx, OpenProcess.