Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:viogetcp [2021/09/04 09:42] – created prokushev | en:docs:fapi:viogetcp [2021/10/14 07:19] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{page> | {{page> | ||
+ | |||
+ | ====== VioGetCp ====== | ||
+ | |||
This call allows a process to query the code page currently used to display text data. | This call allows a process to query the code page currently used to display text data. | ||
- | ==Syntax== | + | ===== Syntax ===== |
+ | <code c> | ||
| | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters ===== |
- | ;Reserved (USHORT) - input : A reserved word of 0s. | + | |
- | ;CodePageID (PUSHORT) - output : Address of a word in the application' | + | |
- | ;VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | + | |
- | ==Return Code== | + | * Reserved (USHORT) - input : A reserved word of 0s. |
- | ;rc (USHORT) - return: | + | * CodePageID (PUSHORT) - output : Address of a word in the application' |
+ | * VioHandle (HVIO) - input : This must be zero unless the caller is a Presentation Manager application, | ||
+ | |||
+ | ===== Return Code ===== | ||
+ | |||
+ | rc (USHORT) - return: | ||
* 0 NO_ERROR | * 0 NO_ERROR | ||
Line 20: | Line 27: | ||
*468 ERROR_VIO_USER_FONT | *468 ERROR_VIO_USER_FONT | ||
- | ==Remarks== | + | ===== Remarks ===== |
The display code page ID previously set by [[VioSetCp]], | The display code page ID previously set by [[VioSetCp]], | ||
Line 27: | Line 35: | ||
If ERROR_VIO_USER_FONT is returned, it indicates a user font that was previously loaded with VioSetFont is the active code page. | If ERROR_VIO_USER_FONT is returned, it indicates a user font that was previously loaded with VioSetFont is the active code page. | ||
- | ==Bindings== | + | ===== Bindings |
- | === C === | + | |
+ | ==== C ==== | ||
<code c> | <code c> | ||
#define INCL_VIO | #define INCL_VIO | ||
Line 41: | Line 50: | ||
</ | </ | ||
- | ===MASM=== | + | ====MASM==== |
<code asm> | <code asm> | ||
EXTRN VioGetCp: | EXTRN VioGetCp: | ||
Line 54: | Line 63: | ||
</ | </ | ||
- | ==Related Functions== | + | ===== Related Functions ===== |
- | * [[VioSetCp]] | + | |
+ | | ||
- | ====== Note ====== | + | ===== Note ===== |
Text based on [[http:// | Text based on [[http:// |