-
-
[求助]修改代码后运行出错误
-
发表于:
2012-12-25 19:57
4389
-
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);
}
这是我写的代码```
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!