Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:viosetcp [2021/09/05 02:43] – created prokushev | en:docs:fapi:viosetcp [2021/11/04 12:44] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== VioSetCp ====== | ||
+ | |||
This call allows a process to set the code page used to display text data on the screen for the specified handle. | This call allows a process to set the code page used to display text data on the screen for the specified handle. | ||
- | ==Syntax== | + | ===== Syntax ===== |
+ | <code c> | ||
| | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters ===== |
- | ;Reserved (USHORT) - input: Reserved word of 0s. | + | |
- | ;CodePageID (USHORT) - input: The CodePageID must be either 0, -1, -2, or have been specified on the CONFIG.SYS CODEPAGE | + | |
- | :If the code page ID is not 0, -1, -2, or does not match one of the ID's on the CODEPAGE | + | |
- | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | + | |
- | ==Return Code== | + | * Reserved (USHORT) - input: Reserved word of 0s. |
- | ;rc (USHORT) - return: | + | * CodePageID (USHORT) - input: The CodePageID must be either 0, -1, -2, or have been specified on the CONFIG.SYS CODEPAGE = statement. A value of 0000 indicates that the code page is to be set to the default ROM code page provided by the hardware. A value of -1 enables the user font codepage if user fonts have previously been set with [[VioSetFont]]. A value of -2 disables the user font and re-enables the prepared system codepage or ROM codepage that was active before the user font was enabled. |
- | *0 NO_ERROR | + | |
- | *355 ERROR_VIO_MODE | + | If the code page ID is not 0, -1, -2, or does not match one of the ID's on the CODEPAGE = statement, an error results. Refer to '' |
- | *436 ERROR_VIO_INVALID_HANDLE | + | |
- | *465 ERROR_VIO_DETACHED | + | * VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, |
- | *469 ERROR_VIO_BAD_CP | + | |
- | *470 ERROR_VIO_NO_CP | + | ===== Return Code ===== |
- | *471 ERROR_VIO_NA_CP | + | |
+ | rc (USHORT) - return: | ||
+ | |||
+ | | ||
+ | *355 ERROR_VIO_MODE | ||
+ | *436 ERROR_VIO_INVALID_HANDLE | ||
+ | *465 ERROR_VIO_DETACHED | ||
+ | *469 ERROR_VIO_BAD_CP | ||
+ | *470 ERROR_VIO_NO_CP | ||
+ | *471 ERROR_VIO_NA_CP | ||
+ | |||
+ | ===== Remarks ===== | ||
- | ==Remarks== | ||
VioSetCp can be used to enable and disable the user font code page as well as the prepared system code pages. If a prepared system code page or the ROM code page is specified, any previously set code page is disabled and the specified code page is enabled. | VioSetCp can be used to enable and disable the user font code page as well as the prepared system code pages. If a prepared system code page or the ROM code page is specified, any previously set code page is disabled and the specified code page is enabled. | ||
Specifying the special code page of -1 enables the user font code page if user fonts have previously been set. Specifying the special code page of -2 disables the user font code page and re-enables the prepared system code page or ROM code page that was active before the user font code page was enabled. | Specifying the special code page of -1 enables the user font code page if user fonts have previously been set. Specifying the special code page of -2 disables the user font code page and re-enables the prepared system code page or ROM code page that was active before the user font code page was enabled. | ||
- | ===PM Considerations=== | + | ==== PM Considerations ==== |
Valid CodePageID values are 0 or one that was specified on the CONFIG.SYS | Valid CodePageID values are 0 or one that was specified on the CONFIG.SYS | ||
Line 32: | Line 45: | ||
This call can be used to set an [[EBCDIC]] code page for Advanced VIO. For a full-screen or Vio-windowed application, | This call can be used to set an [[EBCDIC]] code page for Advanced VIO. For a full-screen or Vio-windowed application, | ||
- | ==Bindings== | + | ===== Bindings |
- | === C === | + | |
+ | ==== C ==== | ||
<code c> | <code c> | ||
#define INCL_VIO | #define INCL_VIO | ||
Line 46: | Line 60: | ||
</ | </ | ||
- | ===MASM=== | + | ====MASM==== |
<code asm> | <code asm> | ||
EXTRN | EXTRN | ||
Line 59: | Line 73: | ||
</ | </ | ||
+ | {{page> | ||