Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:doscliaccess [2021/08/20 03:25] – created prokushev | en:docs:fapi:doscliaccess [2021/09/17 04:50] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{page> | {{page> | ||
+ | |||
+ | ====== DosCLIAccess ====== | ||
This call requests I/O privilege for disabling and enabling interrupts. Access to ports must be granted with DosPortAccess. | This call requests I/O privilege for disabling and enabling interrupts. Access to ports must be granted with DosPortAccess. | ||
- | ==Syntax== | + | ===== Syntax ===== |
- | | + | |
- | ==Return Code== | + | <code c> |
- | ;rc (USHORT) - return: | + | DosCLIAccess () |
- | *0 NO_ERROR | + | </ |
+ | |||
+ | ===== Return Code ===== | ||
+ | |||
+ | rc ([[USHORT]]) - return: Return code | ||
+ | |||
+ | | ||
+ | |||
+ | ===== Remarks ===== | ||
- | ==Remarks== | ||
Applications that only use CLI/STI in IOPL segments must request CLI/STI privilege from the operating system. | Applications that only use CLI/STI in IOPL segments must request CLI/STI privilege from the operating system. | ||
Applications that use IN/OUT instructions to I/O ports must request I/O privilege with [[DosPortAccess]]. Request for port access also grants CLI/STI privilege from the operating system. | Applications that use IN/OUT instructions to I/O ports must request I/O privilege with [[DosPortAccess]]. Request for port access also grants CLI/STI privilege from the operating system. | ||
- | ==Bindings== | + | ===== Bindings ===== |
- | ===C=== | + | |
- | <PRE> | + | ==== C ==== |
+ | |||
+ | <code c> | ||
#define INCL_DOSDEVICES | #define INCL_DOSDEVICES | ||
USHORT | USHORT | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
- | ===MASM=== | + | ==== MASM ==== |
- | <PRE> | + | |
+ | <code asm> | ||
EXTRN DosCLIAccess: | EXTRN DosCLIAccess: | ||
INCL_DOSDEVICES | INCL_DOSDEVICES | ||
CALL | CALL | ||
+ | </ | ||
Returns WORD | Returns WORD | ||
- | </ | ||
- | ==Example== | + | ==== Example ==== |
This example requests I/O privilege for disabling and enabling interrupts. | This example requests I/O privilege for disabling and enabling interrupts. | ||
- | <PRE> | + | <code c> |
#define INCL_DOSDEVICES | #define INCL_DOSDEVICES | ||
Line 42: | Line 54: | ||
rc = DosCLIAccess(); | rc = DosCLIAccess(); | ||
- | </PRE> | + | </code> |
{{page> | {{page> |