IsDBCSLeadByteEx

This function determines whether a character is a lead byte that is, the first byte of a character in a double-byte character set (DBCS).

BOOL IsDBCSLeadByteEx(
UINT CodePage, 
BYTE TestChar );

Parameters

  • CodePage
    [in] Identifier of the code page to use to check lead-byte ranges. Can be one of the values listed in the Code Page Identifiers in Unicode and character set Constants or one the following predefined values:

    Value Description
    0 Use system default ANSI code page.
    CP_ACP Use system default ANSI code page.
    CP_OEMCP Use system default OEM code page.
  • TestChar
    [in] Character to test.

Return Values

TRUE indicates that the character is a lead byte. FALSE indicates that either the character is not a lead byte or an error was generated. For extended error information, call GetLastError.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.01 and later Winnls.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.