WriteIoSpaceEx function (wdbgexts.h)

The WriteIoSpaceEx function is an extended version of WriteIoSpace. It can write to either a system I/O location or an I/O location on a bus. WriteIoSpace works like WriteIoSpaceEx, except that it defaults interfacetype to ISA, busnumber to zero, and addressspace to 1.

Syntax

void WriteIoSpaceEx(
  ULONG  address,
  ULONG  data,
  PULONG size,
  ULONG  interfacetype,
  ULONG  busnumber,
  ULONG  addressspace
);

Parameters

address

Specifies the I/O address to write to.

data

Specifies the address of a variable that holds the data to write. This must be at least the number of bytes contained in size.

size

Specifies the address of a variable that contains the number of bytes to write. Size must be 1, 2, or 4. After the data is written, size will contain the number of bytes actually written.

interfacetype

Specifies the type of interface on which the extended I/O space exists. Possible values include ISA, EISA, and MCA. For more information, see ntddk.h, which is available as part of the Windows Driver Kit.

busnumber

Specifies the number of the bus on which the extended I/O space exists. This is typically zero, unless there is more than one bus of a given type.

addressspace

This is typically 1.

Return value

None

Remarks

If you are writing 64-bit code, you should use WriteIoSpaceEx64 instead. See 32-Bit Pointers and 64-Bit Pointers for details.

For a WdbgExts extension, include wdbgexts.h. For a DbgEng extension, include wdbgexts.h before dbgeng.h. See Writing DbgEng Extension Code for details.

Requirements

Requirement Value
Target Platform Desktop
Header wdbgexts.h (include Wdbgexts.h, Dbgeng.h)