NdisRawReadPortBufferUshort macro (ndis.h)

NdisRawReadPortBufferUshort reads a specified number of USHORTs into a caller-supplied buffer.

Syntax

void NdisRawReadPortBufferUshort(
  [in]   Port,
  [out]  Buffer,
  [in]   Length
);

Parameters

[in] Port

Specifies the I/O port. This address falls in a range that was mapped during initialization with NdisMRegisterIoPortRange.

[out] Buffer

Pointer to a caller-allocated buffer, in resident memory, into which the USHORTs will be transferred from the NIC. The caller must allocate a buffer at least (sizeof(USHORT) * Length ).

[in] Length

Specifies how many USHORTs to transfer from the NIC.

Return value

None

Remarks

NdisRawReadPortBufferUshort reads each USHORT value, one at a time, from the given I/O port into the given buffer.

Requirements

Requirement Value
Minimum supported client Supported for NDIS 6.0 and NDIS 5.1 drivers (see NdisRawReadPortBufferUshort (NDIS 5.1)) in Windows Vista. Supported for NDIS 5.1 drivers (see NdisRawReadPortBufferUshort (NDIS 5.1)) in Windows XP.
Target Platform Universal
Header ndis.h (include Ndis.h)
IRQL Any level

See also

MiniportInitializeEx

NdisMRegisterIoPortRange

NdisRawReadPortBufferUchar

NdisRawReadPortBufferUlong

NdisRawReadPortUshort

NdisRawWritePortBufferUshort