IsDBCSLeadByte

3.1

  BOOL IsDBCSLeadByte(bTestChar)    
  BYTE bTestChar; /* character to test */

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

Parameters

bTestChar

Specifies the character to be tested.

Return Value

The return value is nonzero if the character is a DBCS lead byte. Otherwise, it is zero.

Comments

The language driver for the current language (the language the user selected at setup or by using Control Panel) determines whether the character is in the set. If no language driver is selected, Windows uses an internal function.

Each double-byte character set has a unique set of lead-byte values. By itself, a lead byte has no character value; together, the lead byte and the following byte represent a single character. The second, or following, byte is called a trailing byte.

See Also

GetKeyboardType