DosCLIAccess (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVICES
USHORT DosCLIAccess(VOID)
The DosCLIAccess function requests an input/output (I/O) privilege for
disabling and enabling interrupts. Assembly-language programs that use the
cli and sti instructions in IOPL segments must use the DosCLIAccess function
to receive permission to use these instructions.
The DosCLIAccess function is a family API function.
This function has no parameters.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value.
Comments
Assembly-language programs that use the in and out instructions to read from
and write to I/O ports must use the DosPortAccess function to receive
permission to use these instructions. The DosPortAccess function also grants
permission to use the cli and sti instructions.
See Also
DosPortAccess
♦