共用方式為


IsDBCSLeadByteEx

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

BOOL IsDBCSLeadByteEx(
  UINT CodePage,
  BYTE TestChar
);

Parameters

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

    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 Value

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

Header winnls.h
Library coredll.lib
Windows Embedded CE Windows CE 1.01 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Unicode Functions

Other Resources

EnumSystemCodePages