GetKeyboardLayout function Null safety user32

int GetKeyboardLayout(
  1. int idThread
)

Retrieves the active input locale identifier (formerly called the keyboard layout).

HKL GetKeyboardLayout(
  DWORD idThread
);

Implementation

int GetKeyboardLayout(int idThread) {
  final _GetKeyboardLayout = _user32.lookupFunction<
      IntPtr Function(Uint32 idThread),
      int Function(int idThread)>('GetKeyboardLayout');
  return _GetKeyboardLayout(idThread);
}