Debugging Tools for Windows

WriteTypedDataVirtual

The WriteTypedDataVirtual method writes data to the target's virtual address space. The number of bytes written is the size of the specified type.

HRESULT
  IDebugSymbols::WriteTypedDataVirtual(
    IN ULONG64  Offset,
    IN ULONG64  Module,
    IN ULONG  TypeId,
    IN PVOID  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  BytesWritten
    );

Parameters

Offset
Specifies the location in the target's virtual address space where the data will be written.
Module
Specifies the base address of the module containing the type.
TypeId
Specifies the type ID of the type.
Buffer
Specifies the buffer containing the data to be written.
BufferSize
Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes to be written.
BytesWritten
Receives the number of bytes that were written. If BytesWritten is NULL, this information is not returned.

Return Value

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 type specified.

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

Interface Version

WriteTypedDataVirtual is available in all versions of IDebugSymbols.

Comments

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

For more information about types, see Types.

Requirements

Headers: Defined in dbgeng.h. Include dbgeng.h.

Build machine: CAPEBUILD