好友
阅读权限10
听众
最后登录1970-1-1
|
哪位大哥帮我把代码写成lpk.dll
void CPojieDlg::OnButton1()
{
// TODO: Add your control notification handler code here
HWND CrackH=::FindWindow(NULL,"新破天一剑");
DWORD Pid;
::GetWindowThreadProcessId (CrackH,&Pid);
HANDLE hProcess=::OpenProcess(PROCESS_ALL_ACCESS,false,Pid);
if(hProcess!=0)
{
DWORD base=0x073C8668;
DWORD Value=0;
::ReadProcessMemory(hProcess,(LPCVOID)base,&Value,sizeof(DWORD),NULL);
BYTE NewValue[]={0xC3};
::WriteProcessMemory(hProcess, (LPVOID)base, &NewValue, sizeof(NewValue), false);
}
else if(hProcess==0)
{
AfxMessageBox("请先开启游戏辅助!");
}
::CloseHandle(hProcess);
}
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|