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以外CodePageの定数
そうでないとき 0
CP_ACP = 0 ANSIコードページ
CP_OEMCP = 1 OEMコードページ