NdisRawReadPortBufferUshort (NDIS 5.1) function

Note   NDIS 5. x has been deprecated and is superseded by NDIS 6. x. For new NDIS driver development, see Network Drivers Starting with Windows Vista. For information about porting NDIS 5. x drivers to NDIS 6. x, see Porting NDIS 5.x Drivers to NDIS 6.0.

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

Syntax

VOID NdisRawReadPortBufferUshort(
  _In_  ULONG_PTR Port,
  _Out_ PUSHORT   Buffer,
  _In_  ULONG     Length
);

Parameters

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

  • Buffer [out]
    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).

  • Length [in]
    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

Target platform

Desktop

Version

See NdisRawReadPortBufferUshort.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

MiniportInitialize

NdisMRegisterIoPortRange

NdisRawReadPortBufferUchar

NdisRawReadPortBufferUlong

NdisRawReadPortUshort

NdisRawWritePortBufferUshort

 

 

Send comments about this topic to Microsoft