win12.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WinCpTranslateChar (1.2)
Function Group                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINCOUNTRY
 
UCHAR WinCpTranslateChar(hab, cpSrc, chSrc, cpDst)
HAB hab;         /* handle of the anchor block    */
USHORT cpSrc;    /* code page of source string    */
UCHAR chSrc;     /* character to be translated    */
USHORT cpDst;    /* code page of resultant string */
 
The WinCpTranslateChar function translates a character from one code page to
another.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
hab        Identifies the anchor block.
 
cpSrc      Specifies the code page of the source string.
 
chSrc      Specifies the character to be translated.
 
cpDst      Specifies the code page of the resultant string.
 
Return Value
 
The return value is the translated character. If a match for this character
is not found, 0xFF is returned.
 
See Also
 
WinCpTranslateString