readprocessmemory无法读取热血传奇游戏的血值
经测试以下代码可以读取QQ连连看的座位号:
void CLlk_wgDlg::OnZuoWei()
{
// TODO: Add your control notification handler code here
DWORD processid;
//HANDLE processh;//进程句柄
gameh=::FindWindow(NULL,"QQ游戏 - 连连看角色版");//打开窗口
GetWindowThreadProcessId(gameh,&processid);//获取进程号
HANDLE processh=::OpenProcess(PROCESS_ALL_ACCESS,false,processid);//打开进程
//DWORD read;
LPVOID buffer=(LPVOID)&m_num;
LPCVOID addr=(LPCVOID)0x07631030;//用CE查的存放座位号的地址
::ReadProcessMemory(processh,addr,buffer,4,NULL);
UpdateData(false);
}
然而却无法读取传奇的血值(HP)
void CLlk_wgDlg::OnZuoWei()
{
// TODO: Add your control notification handler code here
DWORD processid;
//HANDLE processh;//进程句柄
gameh=::FindWindow(NULL,"统战网络激战区 - 落入凡间只为aa");//打开传奇窗口
GetWindowThreadProcessId(gameh,&processid);//获取进程号
HANDLE processh=::OpenProcess(PROCESS_ALL_ACCESS,false,processid);//打开进程
//DWORD read;
LPVOID buffer=(LPVOID)&m_num;
LPCVOID addr=(LPCVOID)0x0741F312;//用CE查的存放HP的地址
::ReadProcessMemory(processh,addr,buffer,4,NULL);
UpdateData(false);
}
每次读取传奇的血值都为0,请问这是怎么回事?
[注意]APP应用上架合规检测服务,协助应用顺利上架!