NdisRawReadPortBufferUchar

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

At a Glance

Header file: Ndis.h
Windows CE versions: 2.0 and later

Syntax

VOID NdisRawReadPortBufferUchar( IN ULONG Port,
OUT PUCHAR
Buffer, IN ULONG Length );

Parameters

Port
Specifies the I/O port. This address falls in a range that was mapped during initialization with the NdisMRegisterIoPortRange function.
Buffer
Pointer to a caller-allocated buffer, in resident memory, into which the bytes are transferred from the NIC’s port. The caller must allocate a buffer at least sizeof( Length ).
Length
Specifies how many bytes to transfer from the NIC.

Remarks

This function reads each byte, one at a time, from the given I/O port into the given buffer.

A driver that calls this function can run at any IRQL.

See Also

NdisMRegisterIoPortRange, NdisRawReadPortBufferUlong, NdisRawReadPortBufferUshort, NdisRawReadPortUchar, NdisRawWritePortBufferUchar