Jump to content

VioSetAnsi: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:CPI:VioSetAnsi to VioSetAnsi
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
==Description==
Activates or deactivates ANSI support.
Activates or deactivates ANSI support.


==Syntax==
==Syntax==
<PRE>
VioSetAnsi (Indicator, VioHandle)
#define INCL_VIO
#include <os2.h>


ULONG    Indicator;  /*  On/Off indicator. */
HVIO      VioHandle;  /*  VIO presentation-space handle. */
APIRET    rc;        /*  Return code. */
rc = VioSetAnsi(Indicator, VioHandle);
</PRE>
==Parameters==
==Parameters==
; Indicator (ULONG) - input : On/Off indicator.
;Indicator (ULONG) - input : On/Off indicator.
Equals 1 to activate ANSI support, or 0 to deactivate ANSI.  
:Equals 1 to activate ANSI support, or 0 to deactivate ANSI.
 
; VioHandle (HVIO) - input : VIO presentation-space handle.
; VioHandle (HVIO) - input : VIO presentation-space handle.
This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.  
:This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.


==Return Code==
==Return Code==
  rc (APIRET) - returns
  rc (APIRET) - returns
VioSetAnsi returns one of the following values:
VioSetAnsi returns one of the following values:
* 0          NO_ERROR  
* 0          NO_ERROR  
* 355        ERROR_VIO_MODE  
* 355        ERROR_VIO_MODE  
Line 35: Line 22:
For ANSI support, "ON" is the default.  
For ANSI support, "ON" is the default.  


==Example Code==
[[Category:Vio]]
<PRE>
 
</PRE>
==Related Functions==
* [[OS2 API:CPI:
 
 
[[Category:The OS/2 API Project]]

Revision as of 05:20, 13 February 2017

Activates or deactivates ANSI support.

Syntax

VioSetAnsi (Indicator, VioHandle)

Parameters

Indicator (ULONG) - input
On/Off indicator.
Equals 1 to activate ANSI support, or 0 to deactivate ANSI.
VioHandle (HVIO) - input
VIO presentation-space handle.
This must be 0, unless the caller is a Presentation Manager application; in this case, it must be the value returned by VioCreatePS.

Return Code

rc (APIRET) - returns

VioSetAnsi returns one of the following values:

  • 0 NO_ERROR
  • 355 ERROR_VIO_MODE
  • 421 ERROR_VIO_INVALID_PARMS
  • 430 ERROR_VIO_ILLEGAL_DURING_POPUP
  • 436 ERROR_VIO_INVALID_HANDLE

Remarks

For ANSI support, "ON" is the default.