Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Syntax

BOOL IsDBCSLeadByte(
  BYTE 
TestChar
);

Parameters

TestChar

[in] Character to be tested.

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.

Remarks

Lead bytes are unique to double-byte character sets. A lead byte introduces a double-byte character. Lead bytes occupy a specific range of byte values. The IsDBCSLeadBytefunction uses the ANSI code page to check lead-byte ranges. To specify a different code page, use the IsDBCSLeadByteExfunction.

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