Retrieves the active input locale identifier for the specified window
#include <WinAPISys.au3>
_WinAPI_GetKeyboardLayout ( $hWnd )
| $hWnd | Handle to the window to retrieve the input locale identifier. |
| Success: | The input locale identifier. |
| Failure: | 0. |
Search GetKeyboardLayout in MSDN Library.