网站首页  词典首页

请输入您要查询的函数:

 

术语 readprocessmemory
释义 ReadProcessMemory
语法:
C++
BOOL WINAPI ReadProcessMemory(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__out LPVOID lpBuffer,
__in SIZE_T nSize,
__out SIZE_T *lpNumberOfBytesRead
);
ReadProcessMemory的函数
读取的内存区域中指定的进程数据。整个地区被读取必须能够访问或操作失败。
参数
hProcess [in]
一个句柄,与内存正在读取的过程。句柄必须有PROCESS_VM_READ访问进程。
lpBaseAddress [in]
向指定的过程中,读取基址指针。在任何数据传输时,系统验证,在基址和指定大小的内存中所有的数据进行读访问方便,如果不能访问函数失败。
lpBuffer [out]
阿一个缓冲区,它接收来自指定的进程地址空间的内容的指针。
nSize [in]
的字节数,可以从指定的进程。
lpNumberOfBytesRead [out]
一个变量,它接收到指定的缓冲区传输的字节数的指针。如果lpNumberOfBytesRead为NULL,则参数被忽略。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值为0(零)。为了获得更多错误信息,调用GetLastError。
函数失败如果读操作的要求是无法跨越到该进程的一个领域。
备注
ReadProcessMemory的复制到当前进程的指定的缓冲区,在从指定的进程地址空间的指定地址范围的数据。任何进程,有一个与PROCESS_VM_READ访问句柄可以调用该函数。
整个地区被读取必须方便,如果不能访问,函数失败。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
调试功能
工艺调试功能
OpenProcess
VirtualAllocEx
WriteProcessMemory的
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==ReadProcessMemory Function
Reads data from an area of memory in a specified process. The entire area to be read must be accessible or the operation fails.
Syntax
C++
BOOL WINAPI ReadProcessMemory(
__in HANDLE hProcess,
__in LPCVOID lpBaseAddress,
__out LPVOID lpBuffer,
__in SIZE_T nSize,
__out SIZE_T *lpNumberOfBytesRead
);
Parameters
hProcess [in]
A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process.
lpBaseAddress [in]
A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the system verifies that all data in the base address and memory of the specified size is accessible for read access, and if it is not accessible the function fails.
lpBuffer [out]
A pointer to a buffer that receives the contents from the address space of the specified process.
nSize [in]
The number of bytes to be read from the specified process.
lpNumberOfBytesRead [out]
A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead is NULL, the parameter is ignored.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError .
The function fails if the requested read operation crosses into an area of the process that is inaccessible.
Remarks
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 entire area to be read must be accessible, and if it is not accessible, the function fails.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Debugging Functions
Process Functions for Debugging
OpenProcess
VirtualAllocEx
WriteProcessMemory
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms680553(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:22:38