キーボードレイアウトを取得する
Declare Function GetKeyboardLayout lib "user32.dll" _
(ByVal dwLeyout As Long) As Long
Declare Function GetKeyboardLayout lib "user32.dll" _
(ByVal dwLeyout As Integer) As Integer
HKL GetKeyboardLayout(
DWORD idThread
);
引数
dwLeyout
スレッドのID(カレントスレッドのとき0)戻り値
下位ワード ロケールID
上位ワード キーボードレイアウトのハンドル