Debugging Tools for Windows

WriteIoSpace

The WriteIoSpace function writes to the system I/O locations.

VOID 
  WriteIoSpace (
    ULONG address,
    ULONG data,
    PULONG size
    );

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.

Return Value

None

Comments

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

Requirements

Headers: Defined in wdbgexts.h. If you are writing a WdbgExts extension, include wdbgexts.h. If you are writing a DbgEng extension that calls this function, include wdbgexts.h before dbgeng.h (see Writing DbgEng Extension Code for details).

Build machine: CAPEBUILD