The GetTextCharset function obtains a character-set identifier for the font that is currently selected into a specified device context.
The function call GetTextCharset(hdc) is equivalent to the function call GetTextCharsetInfo(hdc, NULL, 0).
UINT GetTextCharsetInfo(
HDC hdc, |
// handle to device context |
); |
CHINESEBIG5_CHARSET
DEFAULT_CHARSET
GB2312_CHARSET
HANGEUL_CHARSET
OEM_CHARSET
SHIFTJIS_CHARSET
SYMBOL_CHARSET
BALTIC_CHARSET
EASTEUROPE_CHARSET
GREEK_CHARSET
HEBREW_CHARSET
JOHAB_CHARSET
MAC_CHARSET
RUSSIAN_CHARSET
THAI_CHARSET
TURKISH_CHARSET
If the function fails, the return value is DEFAULT_CHARSET.