MyGame:指定窗口标题 address:远程调用地址
//查找窗口句柄 HWND h=::FindWindow(NULL,"MyGame"); //进程ID DWORD id; LPDWORD pid=&id; //取得指定窗口的进进程ID,存放到变量ID里 ::GetWindowThreadProcessId(h,pid); //获取访问进程的权限,存放至hp HANDLE hp=OpenProcess(PROCESS_ALL_ACCESS,false,id); DWORD tid; //在进程里调用远程地址 CreateRemoteThread(hp,NULL,0,(LPTHREAD_START_ROUTINE)(address),NULL,0,&tid);
C++远程调用Call步骤
最新推荐文章于 2022-09-28 14:00:28 发布