-
-
[求助]地址是对的,为什么readprocessmemory无法读取正确的内容
-
发表于:
2009-7-31 17:01
5338
-
[求助]地址是对的,为什么readprocessmemory无法读取正确的内容
DWORD cScore;
char* score = new char[10];
char* scoredem = new char[10];
memset(score,'0',strlen(score));
memset(scoredem,'0',strlen(scoredem));
HANDLE gongzhu = OpenProcess(PROCESS_VM_READ|PROCESS_VM_OPERATION|PROCESS_QUERY_INFORMATION,false,mPID);
//东家
ReadProcessMemory(gongzhu,(LPCVOID)0x00CF34B8,(LPVOID)score,4,&cScore);
if(strcmp(score,scoredem)!=0)
{
long seast = atoi(score);
itoa(seast,scoredem,10);
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!