你可以直接调用 API 函数:<br>BOOL ReadProcessMemory(<br> HANDLE hProcess, // handle of the process whose memory is read <br> LPCVOID lpBaseAddress, // address to start reading<br> LPVOID lpBuffer, // address of buffer to place read data<br> DWORD nSize, // number of bytes to read<br> LPDWORD lpNumberOfBytesRead // address of number of bytes read<br>
Copies bytes from a source to a destination.<br><br>Unit<br><br>System<br><br>Category<br><br>miscellaneous routines<br><br>procedure Move(const Source; var Dest; Count: Integer);<br><br>Description<br><br>Move copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks. <br><br>Whenever possible, use SizeOf to determine the count.
今天在win32 sdk中找了半天,我也找到了一个类似的,如下:<br>The CopyMemory function copies a block of memory from one location to another. <br>VOID CopyMemory (<br> PVOID Destination, // address of copy destination <br> CONST VOID *Source, // address of block to copy <br> DWORD Length // size, in bytes, of block to copy <br> <br> Parameters<br>Destination<br>Points to the starting address of the copied block's destination. <br>Source<br>Points to the starting address of the block of memory to copy. <br>Length<br>Specifies the size, in bytes, of the block of memory to copy. <br>可能是borland把这个函数改写时更换了函数名。<br>