Compartir a través de


NdisReadPortBufferUshort 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.

NdisReadPortBufferUshort is called by the miniport driver to read a specified number of USHORTs from a NIC into a buffer.

Syntax

VOID NdisReadPortBufferUshort(
  _In_  NDIS_HANDLE NdisAdapterHandle,
  _In_  ULONG       Port,
  _Out_ PUSHORT     Buffer,
  _In_  ULONG       Length
);

Parameters

  • NdisAdapterHandle [in]
    Specifies the handle that the NDIS interface library associates with the network interface card.

  • Port [in]
    Specifies the I/O port.

  • Buffer [out]
    Pointer to the caller-supplied buffer in which this function writes the USHORT values read from Port.

  • Length [in]
    Specifies the number of pieces of data to read from Port to Buffer.

Return value

None

Remarks

NdisReadPortBufferUshort reads sequentially each ULONG from the port. It determines how the host accesses the I/O port and processes the read request accordingly.

Requirements

Target platform

Desktop

Version

Not supported for NDIS 6.0 drivers in Windows Vista. Supported for NDIS 5.1 drivers (see NdisReadPortBufferUshort (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NdisRawReadPortBufferUshort

NdisReadPortUshort

NdisWritePortBufferUshort

 

 

Send comments about this topic to Microsoft