IDebugDataSpaces3::WriteBusData method (dbgeng.h)
The WriteBusData method writes data to a system bus.
Syntax
HRESULT WriteBusData(
[in] ULONG BusDataType,
[in] ULONG BusNumber,
[in] ULONG SlotNumber,
[in] ULONG Offset,
[in] PVOID Buffer,
[in] ULONG BufferSize,
[out, optional] PULONG BytesWritten
);
Parameters
[in] BusDataType
Specifies the bus data type of the bus to write to. For details of allowed values see the documentation for the BUS_DATA_TYPE enumeration in the Microsoft Windows SDK.
[in] BusNumber
Specifies the system-assigned number of the bus. This is usually zero, unless the system has more than one bus of the same bus data type.
[in] SlotNumber
Specifies the logical slot number on the bus.
[in] Offset
Specifies the offset in the bus data to start writing to.
[in] Buffer
Specifies the data to write to the bus.
[in] BufferSize
Specifies the size in bytes of the buffer Buffer. This is the maximum number of bytes that will be written.
[out, optional] BytesWritten
Receives the number of bytes written to the bus. If BytesWritten is NULL, this information is not returned.
Return value
This method can also return error values. See Return Values for more details.
Return code | Description |
---|---|
|
The method was successful. |
Remarks
This method is only available in kernel-mode debugging.
The nature of the data read from the bus is system, bus, and slot dependent.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | dbgeng.h (include Dbgeng.h) |