汗,你不是写了一个内存补丁? 你在WriteProcessMemory打补丁之前之前用VirtualProtectEx就可以了
MSDN上的函数原形
BOOL VirtualProtectEx(
HANDLE hProcess, // handle to process
LPVOID lpAddress, // address of region of committed pages
DWORD dwSize, // size of region
DWORD flNewProtect, // desired access protection
PDWORD lpflOldProtect
// address of variable to get old protection
);