Share via


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

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

Syntax

VOID NdisReadPortBufferUlong(
  _In_  NDIS_HANDLE NdisAdapterHandle,
  _In_  ULONG       Port,
  _Out_ PULONG      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 ULONG values read from Port.

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

Return value

None

Remarks

NdisReadPortBufferUlong 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 NdisReadPortBufferUlong (NDIS 5.1)) in Windows XP.

Header

Ndis.h (include Ndis.h)

IRQL

Any level

See also

NdisRawReadPortBufferUlong

NdisReadPortUlong

NdisWritePortBufferUlong

 

 

Send comments about this topic to Microsoft