|
关于CreateRemoteThread执行远程进程函数的问题
yxgbo 说的应该是对的,我也又试了一下,用普通函数确实可以搞定。。。想想On..函数还是类成员函数呢。还有一个参数this得传呢。。是不? |
|
|
|
关于CreateRemoteThread执行远程进程函数的问题
不好意思,没有贴代码,代码如下:其中mygame是自己写的简单的目标程序 game_win = ::FindWindow(NULL, _T("mygame")); ::GetWindowThreadProcessId(game_win, &game_id); printf("mygame's ID is %d\n", game_id); game_h = ::OpenProcess(PROCESS_CREATE_THREAD | PROCESS_QUERY_INFORMATION | PROCESS_VM_OPERATION | PROCESS_VM_WRITE | PROCESS_VM_READ , false, game_id); if (game_h == NULL) { printf("get process handle failed ,the error code is %d\n", ::GetLastError()); } if ([COLOR="Red"]::CreateRemoteThread(game_h, NULL,0, (LPTHREAD_START_ROUTINE)0x00404739 , NULL, 0, NULL)[/COLOR] == NULL) { printf("Remote Call Fail\n err_code is %d", ::GetLastError()); } ::CloseHandle(game_h); 不想看代码的在侠我大大概说一下,就是常规的几步: 找到进程窗口 得到进程序ID 打开进程 然后就是 ::CreateRemoteThread(game_h, NULL,0, (LPTHREAD_START_ROUTINE)0x00404739 , NULL, 0, NULL) 这里的0x00404739就是从mygame里找到的一个功能函数,想实现远程调用它。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值