en:docs:fapi:doscliaccess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:fapi:doscliaccess [2021/08/20 03:25] – created prokusheven:docs:fapi:doscliaccess [2021/09/17 04:50] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +
 +====== 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 =====
- DosCLIAccess ()+
  
-==Return Code== +<code c> 
-;rc (USHORT) - return:Return code descriptions are: +DosCLIAccess () 
-*0 NO_ERROR+</code> 
 + 
 +===== Return Code ===== 
 + 
 +rc ([[USHORT]]) - return: Return code 
 + 
 +  *0 NO_ERROR 
 + 
 +===== 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  rc = DosCLIAccess(VOID); USHORT  rc = DosCLIAccess(VOID);
 USHORT  rc;            /* return code */ USHORT  rc;            /* return code */
-</PRE>+</code>
  
-===MASM=== +==== MASM ===
-<PRE>+ 
 +<code asm>
 EXTRN  DosCLIAccess:FAR EXTRN  DosCLIAccess:FAR
 INCL_DOSDEVICES     EQU 1 INCL_DOSDEVICES     EQU 1
  
 CALL   DosCLIAccess CALL   DosCLIAccess
 +</code>
  
 Returns WORD Returns WORD
-</PRE> 
  
-==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();      /* Request I/O privilege */    rc = DosCLIAccess();      /* Request I/O privilege */
-</PRE>+</code>
  
 {{page>en:templates:fapi}} {{page>en:templates:fapi}}