-
-
[求助]ReadProcessMemory的问题
-
发表于:
2011-9-22 22:48
4838
-
ReadProcessMemory的返回值是1读出地址里面应该是69616f77每次都读出是0012f678
HWND wind=::FindWindow(NULL,"asd");
if (wind==NULL)
{
::MessageBox(NULL,"","获取窗口失败",MB_OK);
}
DWORD jinchengid=NULL;
::GetWindowThreadProcessId(wind,&jinchengid);
if (jinchengid==NULL)
{
::MessageBox(NULL,"","获取进程id失败",MB_OK);
}
HANDLE handl=::OpenProcess(PROCESS_ALL_ACCESS,FALSE,jinchengid);
if (handl==NULL)
{
::MessageBox(NULL,"","打开失败",MB_OK);
}
LPCVOID jinzhi=(LPCVOID)0x004153f0;
TCHAR aa[20];
DWORD byread;
LPVOID shuzhi=(LPVOID)&aa;
BOOL boo=::ReadProcessMemory(handl,jinzhi,shuzhi,4,&byread);
if (boo==NULL)
{
::MessageBox(NULL,"","读取失败",MB_OK);
}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课