dos12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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