IDebugDataSpaces3::WriteIo method (dbgeng.h)

The WriteIo method writes to the system and bus I/O memory.

Syntax

HRESULT WriteIo(
  [in]            ULONG   InterfaceType,
  [in]            ULONG   BusNumber,
  [in]            ULONG   AddressSpace,
  [in]            ULONG64 Offset,
  [in]            PVOID   Buffer,
  [in]            ULONG   BufferSize,
  [out, optional] PULONG  BytesWritten
);

Parameters

[in] InterfaceType

Specifies the interface type of the I/O bus. This parameter may take values in the INTERFACE_TYPE enumeration defined in wdm.h.

[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 interface type.

[in] AddressSpace

Set to one.

[in] Offset

Specifies the location of the requested data.

[in] Buffer

Specifies the data to write to the I/O 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 I/O 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
S_OK
The method was successful.

Remarks

This method is only available in kernel-mode debugging.

Requirements

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