IDebugSymbols2::WriteTypedDataPhysical method (dbgeng.h)

The WriteTypedDataPhysical method writes the value of a variable in the target computer's physical memory.

Syntax

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

Parameters

[in] Offset

Specifies the physical address in the target computer's memory of the variable.

[in] Module

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

[in] TypeId

Specifies the type ID of the type of the variable.

[in] Buffer

Specifies the buffer containing the data to be written.

[in] BufferSize

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

[out, optional] BytesWritten

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

Return value

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

Return code Description
S_OK
The method was successful.
S_FALSE
The method was successful. All the bytes in the buffer Buffer were written. However, the buffer was smaller than the size of the specified type.

Remarks

This method is only available in kernel mode debugging.

The number of bytes this method attempts to write 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 WritePhysical.

For more information about types, see Types.

Requirements

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