IMLangCodePages::CodePage...     IMLangCodePages::GetStrCo...     IMLangCodePages Interface    
Web Workshop (Miscellaneous)

IMLangCodePages::GetCharCodePages Method


Retrieves the set of code pages to which the given Unicode character belongs.

Syntax

HRESULT GetCharCodePages(
    WCHAR chSrc,
    DWORD *pdwCodePages
); 

Parameters

chSrc
[in] Source Unicode character for which the client wants a set of code pages.
pdwCodePages
[out] Address an unsigned long integer where the set of code pages that contains chSrc is returned.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

See IMLangCodePages for more information about sets of code pages.

A Unicode character can belong to multiple code pages. For example, the Unicode character U+5B57 belongs to the Japanese (932), Korean (949), Simplified Chinese (936), and Traditional Chinese (950) code pages. GetCharCodePages determines to which code pages the given Unicode character belongs. For the character U+5B57, four bits (those corresponding to the code pages listed above) in pdwCodePages would be set to 1. The actual code page identifier values corresponding to the set pdwCodePages can then be retrieved by the IMLangCodePages::CodePagesToCodePage method.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

IMLangCodePages::GetStrCodePages



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.