|
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 Values
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
Header | Rtapi.h |
Library | rtapi_w32.lib (Windows), Rtx_Rtss.lib (RTSS) |
See Also:
RtReadPortBuffer*(Uchar, Ushort, Ulong)
RtReadPort* (Uchar, Ushort, Ulong)