Reads a specified number of bytes from an input port. RtReadPortXxx functions include:
nNumberOfBytes from one input port. Each function includes variants for Uchar, Ushort, and Ulong.
VOID RtReadPortBufferUchar(
    PUCHAR PortAddress,
    PUCHAR pBuffer,
    ULONG nNumberOfBytes
);
VOID RtReadPortBufferUshort(
    PUSHORT PortAddress,
    PUSHORT pBuffer,
    ULONG nNumberOfBytes
);
VOID RtReadPortBufferUlong(
    PULONG PortAddress,
    PULONG pBuffer,
    ULONG nNumberOfBytes
);
UCHAR RtReadPortUchar(
    PUCHAR PortAddress
);
USHORT RtReadPortUshort(
    PUSHORT PortAddress
);
ULONG RtReadPortUlong(
    PULONG PortAddress
);
PortAddress 
pBuffer 
nNumberOfBytes 
pBuffer. (For the non buffered functions only) the 1, 2, or 4-byte value read from the port.
| Versions | Defined in | Include | Link to | 
|---|---|---|---|
| INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h | iwin32.lib | 
Note
These functions operate in the real-time portion of your application.
iwin32 API, iwin32 Overview