Skip to content

Latest commit

 

History

History
95 lines (68 loc) · 2.99 KB

nf-tlhelp32-toolhelp32readprocessmemory.md

File metadata and controls

95 lines (68 loc) · 2.99 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tlhelp32.Toolhelp32ReadProcessMemory
Toolhelp32ReadProcessMemory function (tlhelp32.h)
Copies memory allocated to another process into an application-supplied buffer.
Toolhelp32ReadProcessMemory
Toolhelp32ReadProcessMemory function [ToolHelp]
_win32_toolhelp32readprocessmemory
base.toolhelp32readprocessmemory
tlhelp32/Toolhelp32ReadProcessMemory
toolhelp.toolhelp32readprocessmemory
toolhelp\toolhelp32readprocessmemory.htm
ToolHelp
e579b813-32ef-481d-8dc6-f959ec9b6bad
12/05/2018
Toolhelp32ReadProcessMemory, Toolhelp32ReadProcessMemory function [ToolHelp], _win32_toolhelp32readprocessmemory, base.toolhelp32readprocessmemory, tlhelp32/Toolhelp32ReadProcessMemory, toolhelp.toolhelp32readprocessmemory
tlhelp32.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Kernel32.lib
Kernel32.dll
Windows
19H1
Toolhelp32ReadProcessMemory
tlhelp32/Toolhelp32ReadProcessMemory
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
Toolhelp32ReadProcessMemory

Toolhelp32ReadProcessMemory function

-description

Copies memory allocated to another process into an application-supplied buffer.

-parameters

-param th32ProcessID [in]

The identifier of the process whose memory is being copied. This parameter can be zero to copy the memory of the current process.

-param lpBaseAddress [in]

The base address in the specified process to read. Before transferring any data, the system verifies that all data in the base address and memory of the specified size is accessible for read access. If this is the case, the function proceeds. Otherwise, the function fails.

-param lpBuffer [out]

A pointer to a buffer that receives the contents of the address space of the specified process.

-param cbRead [in]

The number of bytes to read from the specified process.

-param lpNumberOfBytesRead [out]

The number of bytes copied to the specified buffer. If this parameter is NULL, it is ignored.

-returns

Returns TRUE if successful.

-remarks

This function opens a handle to the target process and closes it once the read operation has completed. If you're planning to perform several reads, use ReadProcessMemory instead.

-see-also

Process32First

Process32Next

Tool Help Functions