IDebugSymbols3::ReadTypedDataVirtual method (dbgeng.h)

The ReadTypedDataVirtual method reads the value of a variable in the target's virtual memory.

Syntax

HRESULT ReadTypedDataVirtual(
  [in]            ULONG64 Offset,
  [in]            ULONG64 Module,
  [in]            ULONG   TypeId,
  [out]           PVOID   Buffer,
  [in]            ULONG   BufferSize,
  [out, optional] PULONG  BytesRead
);

Parameters

[in] Offset

Specifies the location in the target's virtual address space of the variable to read.

[in] Module

Specifies the base address of the module containing the type of the variable.

[in] TypeId

Specifies the type ID of the type.

[out] Buffer

Receives the data that is read.

[in] BufferSize

Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes to be read.

[out, optional] BytesRead

Receives the number of bytes that were read. If BytesRead is NULL, this information is not returned.

Return value

Return code Description
S_OK
The method was successful.
S_FALSE
The method was successful. However, the buffer Buffer was not large enough to hold all the data and it was truncated.
 

This method may also return error values. See Return Values for more details.

Remarks

The number of bytes this method attempts to read is the smaller of the size of the buffer and the size of the variable.

This is a convenience method. The same result can be obtained by calling GetTypeSize and ReadVirtual.

For more information about types, see Types.

Requirements

Requirement Value
Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)