Share via


NdisReadPortBufferUshort (Compact 2013)

3/26/2014

This function is called by the miniport driver to read a specified number of USHORTs from a network adapter into a buffer.

Syntax

VOID
  NdisReadPortBufferUshort(
    IN NDIS_HANDLE  NdisAdapterHandle,
    IN ULONG  Port,
    OUT PUSHORT  Buffer,
    IN ULONG  Length
    );

Parameters

  • NdisAdapterHandle
    Specifies the handle that the NDIS interface library associates with the network adapter.
  • Port
    Specifies the I/O port.
  • Buffer
    Pointer to the caller-supplied buffer in which this function writes the USHORT values that are read from Port.
  • Length
    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

Header

ndis.h

Library

ndis.dll

See Also

Reference

NDIS I/O Port Interface
NdisRawReadPortBufferUshort
NdisReadPortUshort
NdisWritePortBufferUshort