WRITE_PORT_ULONG function (wdm.h)

The WRITE_PORT_ULONG routine writes a ULONG value to the specified port address.

Syntax

NTHALAPI VOID WRITE_PORT_ULONG(
  [in] PULONG Port,
  [in] ULONG  Value
);

Parameters

[in] Port

Pointer to the port, which must be a mapped memory range in I/O space.

[in] Value

Specifies a ULONG value to be written to the port.

Return value

None

Remarks

Callers of WRITE_PORT_ULONG can be running at any IRQL, assuming the Port is resident, mapped device memory.

Requirements

Requirement Value
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Ioaccess.h, Miniport.h)
Library Hal.lib
IRQL Any level (see Remarks section)