IsDBCSLeadByteEx

機能
2バイト文字の1バイト目かどうかを判断する
Declare Function IsDBCSLeadByteEx Lib "kernel32.dll" _
(ByVal CodePage As Long, ByVal TestChar As Byte) As Long
Declare Function IsDBCSLeadByteEx Lib "kernel32.dll" _
(ByVal CodePage As Integer, ByVal TestChar As Byte) As Integer

BOOL IsDBCSLeadByteEx(
UINT CodePage,
BYTE TestChar
);
引数
CodePage

コードページを指定する定数
TestChar
調べる文字(バイト)
戻り値
2バイト文字の1バイト目のとき      0以外
そうでないとき                    0
CodePageの定数
CP_ACP = 0             ANSIコードページ
CP_OEMCP = 1           OEMコードページ