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).
bTestChar
Specifies the character to be tested.
The return value is nonzero if the character is a DBCS lead byte. Otherwise, it is zero.
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.