win32api.GetKeyboardLayout

int = GetKeyboardLayout(threadId)

retrieves the active input locale identifier (formerly called the keyboard layout) for the specified thread.

Parameters

threadId=0 : int

Comments

If the idThread parameter is zero, the input locale identifier for the active thread is returned.