IDebugSymbols3::WriteTypedDataVirtual method (dbgeng.h)
The WriteTypedDataVirtual method writes data to the target's virtual address space. The number of bytes written is the size of the specified type.
Syntax
HRESULT WriteTypedDataVirtual(
[in] ULONG64 Offset,
[in] ULONG64 Module,
[in] ULONG TypeId,
[in] PVOID Buffer,
[in] ULONG BufferSize,
[out, optional] PULONG BytesWritten
);
Parameters
[in] Offset
Specifies the location in the target's virtual address space where the data will be written.
[in] Module
Specifies the base address of the module containing the type.
[in] TypeId
Specifies the type ID of the type.
[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 |
---|---|
|
The method was successful. |
|
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. |
Remarks
This is a convenience method. The same result can be obtained by calling GetTypeSize and WriteVirtual.
For more information about types, see Types.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |