先调用:VirtualProtectEx The VirtualProtectEx function changes the access protection on a region of committed pages in the virtual address space of a specified process. BOOL VirtualProtectEx( HANDLE hProcess, // handle to process LPVOID lpAddress, // region of committed pages SIZE_T dwSize, // size of region DWORD flNewProtect, // desired access protection PDWORD lpflOldProtect // old protection ); 试试?
The VirtualProtectEx function changes the access protection on a region of committed pages in the virtual address space of a specified process. BOOL VirtualProtectEx(
HANDLE hProcess, // handle to process
LPVOID lpAddress, // region of committed pages
SIZE_T dwSize, // size of region
DWORD flNewProtect, // desired access protection
PDWORD lpflOldProtect // old protection
);
试试?
哈哈,我想到了,因为我对那个字节用了 ba r 1的断点,肯定是因为这个!!!明天我就去试试,我觉得就是这个原因!!!!