RtDisablePortIo

RtDisablePortIo disables direct I/O port access from user context.

Syntax

BOOL RtDisablePortIo(
    PUCHAR StartPort,
    ULONG nNumberOfBytes
);

Parameters

StartPort

The first port to have direct I/O permissions disabled by this call. Each I/O space address points at a single byte. For ports that represent 2-byte or 4-byte locations, the appropriate number of I/O space addresses (two and four, respectively) must be disabled.

nNumberOfBytes

An unsigned 32-bit integer indicating the number of addresses/bytes to disable, starting at StartPort.

Return Value

TRUE if the completes successfully, FALSE if invalid parameters are specified

Remarks

RtDisablePortIo disables direct port I/O access for ports from the user context.

This function currently has no impact on RTSS determinism. This call is a NO-OP (no operation) when issued from RTSS applications.

Requirements

Minimum Supported Version RTX64 2013
Header Rtapi.h
Library Rtx_Rtss.lib

See Also:

RtEnablePortIo

RtReadPortBuffer*(Uchar, Ushort, Ulong)

RtReadPort* (Uchar, Ushort, Ulong)

RtWritePortBuffer* (Uchar, Ushort, Ulong)

RtWritePort* (Uchar, Ushort, Ulong)