en:docs:fapi:viogetcp

Differences

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

Link to this comparison view

Next revision
Previous revision
en:docs:fapi:viogetcp [2021/09/04 09:42] – created prokusheven:docs:fapi:viogetcp [2021/10/14 07:19] (current) prokushev
Line 1: Line 1:
 {{page>en:templates:fapiint}} {{page>en:templates:fapiint}}
 +
 +====== 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>
  VioGetCp (Reserved, CodePageID, VioHandle)  VioGetCp (Reserved, CodePageID, VioHandle)
 +</code>
  
-==Parameters== +===== Parameters =====
-;Reserved (USHORT) - input : A reserved word of 0s. +
-;CodePageID (PUSHORT) - output : Address of a word in the application's data area. The current video code page is returned in this word. +
-;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== +  * Reserved (USHORT) - input : A reserved word of 0s. 
-;rc (USHORT) - return:Return code descriptions are:+  * CodePageID (PUSHORT) - output : Address of a word in the application's data area. The current video code page is returned in this word. 
 +  * 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:
  
   * 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]], or inherited from the requesting process, is returned to the caller. The display code page ID previously set by [[VioSetCp]], or inherited from the requesting process, is returned to the caller.
  
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:
 </code> </code>
  
-===MASM===+====MASM====
 <code asm> <code asm>
 EXTRN  VioGetCp:FAR EXTRN  VioGetCp:FAR
Line 54: Line 63:
 </code> </code>
  
-==Related Functions== +===== Related Functions ===== 
-[[VioSetCp]]+ 
 + [[VioSetCp]]
  
  
-====== Note ======+===== Note =====
  
 Text based on [[http://www.edm2.com/index.php/VioGetCp_(FAPI)]] Text based on [[http://www.edm2.com/index.php/VioGetCp_(FAPI)]]