READ_PORT_USHORT function (wdm.h)

The READ_PORT_USHORT routine reads a USHORT value from the specified port address.

Syntax

NTHALAPI USHORT READ_PORT_USHORT(
  [in] PUSHORT Port
);

Parameters

[in] Port

Specifies the port address, which must be a mapped range in I/O space.

Return value

READ_PORT_USHORT returns the USHORT value that is read from the specified port address.

Remarks

Callers of READ_PORT_USHORT 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)