求助 WriteProcessMemory 无法成功
我想将CC写入address 做异常中断程序代码:
BYTE SetBreakPointAt(DWORD address) { DWORD dwRet=0; BYTE byBack=0; BYTE byInt=0xcc; ReadProcessMemory(g_hProcess,(LPVOID)address,&byBack,1,&dwRet); GetLastError(); WriteProcessMemory(g_hProcess,(LPVOID)address,&byInt,1,&dwRet); GetLastError(); return byBack; }