VC++怎么让编辑框实时显示某一内存基址变化的数据
BOOLCMyDlg::OnInitDialog(){{HWNDh_wnd;h_wnd=::FindWindow(0,"连连看v4.3");//获取窗口句柄DWORDpp...
BOOL CMyDlg::OnInitDialog() {
{
HWND h_wnd;
h_wnd=::FindWindow(0,"连连看 v4.3");//获取窗口句柄
DWORD pp;
::GetWindowThreadProcessId(h_wnd,&pp);//获取线程ID
HANDLE handle;
handle=::OpenProcess(PROCESS_ALL_ACCESS,false,pp);//打开线程
DWORD ll;
LPCVOID dz=(LPCVOID)0x0012F4D4;
LPVOID strr;
::ReadProcessMemory(handle,dz,strr,4,&ll);//读内存基址数据
// (写到这一步,怎么才能让编辑框实时显示内存中读取的数据呢?)
return TRUE; // return TRUE unless you set the focus to a control
}
关键是读内存::ReadProcessMemory中,我不知道怎么才能让第三个参数输出,定时器我都会搞,郁闷类,希望前辈帮我看看怎么搞! 展开
{
HWND h_wnd;
h_wnd=::FindWindow(0,"连连看 v4.3");//获取窗口句柄
DWORD pp;
::GetWindowThreadProcessId(h_wnd,&pp);//获取线程ID
HANDLE handle;
handle=::OpenProcess(PROCESS_ALL_ACCESS,false,pp);//打开线程
DWORD ll;
LPCVOID dz=(LPCVOID)0x0012F4D4;
LPVOID strr;
::ReadProcessMemory(handle,dz,strr,4,&ll);//读内存基址数据
// (写到这一步,怎么才能让编辑框实时显示内存中读取的数据呢?)
return TRUE; // return TRUE unless you set the focus to a control
}
关键是读内存::ReadProcessMemory中,我不知道怎么才能让第三个参数输出,定时器我都会搞,郁闷类,希望前辈帮我看看怎么搞! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询