为什么在98下用是ok的,但到了2000下就是299的返回错误码?
解决方案 »
- OnCreate函数上//SetWindowText("************公司");之后,拖到窗口原先的标题又把改的替换回来聊?
- 为对话框资源创建对话框类后,能否再向对话框上添加控件
- statusbar的问题啊!!
- 关于构造函数中类成员变量赋值和 构造函数传递指针?
- 这样做了有啥变化?(关于sscanf的作用及memcpy)
- 求教:输入法切换的问题?
- 在MFC编程过程中,一个概念的迷惑
- 数据库中记录字段很长,请问怎么在报表中实现记录自动换行呢?各位大虾救我!
- 要在com中创建.doc文档,请问从那入手?
- 调查:程序员如何求职?
- 请问在VC下如何删除目录?
- 使用文档视结构,怎样去掉IDR_MAINFRM菜单
Res
ReadProcessMemory copies the data in the specified address range from the address space of the specified process into the specified buffer of the current process. Any process that has a handle with PROCESS_VM_READ access can call the function. The process whose address space is read is typically, but not necessarily, being debugged. The entire area to be read must be accessible. If it is not, the function fails as noted previously. Requirements
Windows NT/2000 or later: Requires Windows NT 3.1 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.
你看这样的权限够吗?
PROCESS_QUERY_INFORMATION
PROCESS_VM_READ
GetLastError 为 299Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
错误码为5
Access is denied. ERROR_ACCESS_DENIED