Partager via


NdisRawReadPortBufferUshort (Compact 2013)

3/26/2014

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

Syntax

VOID NdisRawReadPortBufferUshort(
    ULONG Port,
  PUSHORT Buffer,
  ULONG Length
);

Parameters

  • Port
    [in] Specifies the I/O port. This address falls in a range that was mapped during initialization with the NdisMRegisterIoPortRange function.
  • Buffer
    [out] Pointer to a caller-allocated buffer, in resident memory, into which the USHORTs are transferred from the network adapter. The caller must allocate a buffer at least (sizeof(USHORT) * Length**)**.
  • Length
    [in] Specifies how many USHORTs to transfer from the network adapter.

Return Value

None.

Remarks

This function reads each USHORT value, one at a time, from the specified I/O port into the specified buffer.

Requirements

Header

ndis.h

See Also

Reference

NDIS I/O Port Raw Interface
MiniportInitializeEx
NdisRawWritePortBufferUshort
NdisMRegisterIoPortRange
NdisRawReadPortBufferUchar
NdisRawReadPortBufferUlong
NdisRawReadPortUshort
NdisRawWritePortUshort