Share via


ReadMemory

Other versions of this page are also available for the following:

Windows Mobile SupportedWindows Embedded CE Supported

8/27/2008

This function reads memory from the process being debugged. The entire area of memory must be accessible, or the operation fails.

Syntax

ULONG ReadMemory(
  ULONG offset,
  PVOID lpBuffer,
  ULONG cb,
  PULONG lpcbBytesRead
);

Parameters

  • offset
    [in] Base address of the memory to read in the process being debugged.
  • lpBuffer
    [in] Pointer to a buffer that receives the contents of memory read.
  • cb
    [in] Number of bytes to read.
  • lpcbBytesRead
    [in] Optional. Pointer to the actual number of bytes transferred to the buffer.

Return Value

This function returns TRUE if the function call succeeds. Otherwise, the function returns FALSE.

Requirements

Header wdbgexts_ce.h
Library Developer Implemented
Windows Embedded CE Windows CE 3.0 and later

See Also

Concepts

Debugger Extension Functions