1.对进程内存数据的读写操作
//读取进程的内存数据API
BOOL ReadProcessMemory(
HANDLE hProcess, // handle to the process
LPCVOID lpBaseAddress, // base of memory area
LPVOID lpBuffer, // data buffer
SIZE_T nSize, // number of bytes to read
SIZE_T * lpNumberOfBytesRead );// number of bytes read
//修改进程的内存数据API
BOOL WriteProcessMemory(
HANDLE hProcess, // handle to process
LPVOID lpBaseAddress,// base of memory area
LPCVOID lpBuffer, // data buffer