-
-
[求助]修改代码后运行出错误
-
发表于:
2012-12-25 19:57
4390
-
VOID ClearCode()
{
ULONG WriteSize;
BYTE CodeAddr[6] = {90,90,90,90,90,90};
HANDLE ProcHwnd;
DWORD ProcID;
HWND hwnd = FindWindow(NULL,GameCatpion);
if (hwnd == NULL)
{
return;
}
GetWindowThreadProcessId(hwnd,&ProcID);
ProcHwnd = OpenProcess(PROCESS_ALL_ACCESS,FALSE,ProcID);
WriteProcessMemory(ProcHwnd,TIMEADDRESS,&CodeAddr,6,&WriteSize);
}
这是我写的代码```
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课