- 注册时间
- 2011-3-6
- 最后登录
- 1970-1-1
该用户从未签到
|
void fff(HANDLE hProcess)
{
DWORD startList ; // 链表首地址
DWORD object ; // 人物对象
DWORD nextList ; // 下一个
char currentName[MAX_PATH];
DWORD objectId;
ReadProcessMemory(hProcess,(PVOID)0xAB54B0,&startList,sizeof(DWORD),NULL);
ReadProcessMemory(hProcess,(PVOID)(startList+0x28),&startList,sizeof(DWORD),NULL);
ReadProcessMemory(hProcess,(PVOID)startList,&nextList,sizeof(DWORD),NULL);
do
{
if (!ReadProcessMemory(hProcess,(PVOID)nextList,&nextList,sizeof(DWORD),NULL))
{
break;
}
if (nextList==startList)
break;
// 当前对象
ReadProcessMemory(hProcess,(PVOID)(nextList+0x8),&object,sizeof(DWORD),NULL);
// 得到名称
ReadProcessMemory(hProcess,(PVOID)(object + 0x138),currentName,MAX_PATH,NULL);
ReadProcessMemory(hProcess,(PVOID)(object + 8),&objectId,sizeof(DWORD),NULL);
std::cout<<"名称:"<<currentName<<"\tId:"<<objectId<<std::endl;
} while (1);
} |
|