en:docs:fapi:viogetansi

Differences

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

Link to this comparison view

en:docs:fapi:viogetansi [2021/08/20 09:00] – created prokusheven:docs:fapi:viogetansi [2021/09/19 05:23] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +====== VioGetAnsi ====== 
 + 
 This call returns the current ANSI status On/Off state. This call returns the current ANSI status On/Off state.
  
-==Syntax== +===== Syntax ===== 
- VioGetAnsi (Indicator, VioHandle)+<code c> 
 +VioGetAnsi (Indicator, VioHandle) 
 +</code> 
 + 
 +===== Parameters ===== 
 + 
 +  * Indicator ([[PUSHORT]]) - output : Address of the current ANSI status. A value of 1 indicates ANSI is active, and a value of 0 indicates ANSI is not active. 
 +  * VioHandle ([[HVIO]]) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs. 
 + 
 +===== Return Code ===== 
 + 
 +rc ([[USHORT]]) - return 
 + 
 +Return code descriptions are:
  
-==Parameters== +  *  NO_ERROR 
-;Indicator (PUSHORT) - output : Address of the current ANSI status. A value of 1 indicates ANSI is active, and a value of indicates ANSI is not active. +  *436 ERROR_VIO_INVALID_HANDLE 
-;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, in which case it must be the value returned by VioGetPs.+  *465 ERROR_VIO_DETACHED
  
-==Return Code== +===== Bindings =====
-;rc (USHORT) - return:Return code descriptions are: +
-* 0  NO_ERROR +
-*436 ERROR_VIO_INVALID_HANDLE +
-*465 ERROR_VIO_DETACHED+
  
-==Bindings== +====C==== 
-===C=== +<code c>
-<PRE>+
 #define INCL_VIO #define INCL_VIO
  
Line 27: Line 36:
  
 USHORT  rc;            /* return code */ USHORT  rc;            /* return code */
-</PRE>+</code>
  
-===MASM=== +====MASM==== 
-<PRE>+<code asm>
 EXTRN  VioGetAnsi:FAR EXTRN  VioGetAnsi:FAR
 INCL_VIO            EQU 1 INCL_VIO            EQU 1
Line 39: Line 48:
  
 Returns WORD Returns WORD
-</PRE>+</code>