RegisterHotKey function Null safety user32

int RegisterHotKey (
  1. int hWnd,
  2. int id,
  3. int fsModifiers,
  4. int vk
)

Defines a system-wide hot key.

BOOL RegisterHotKey(
  HWND hWnd,
  int  id,
  UINT fsModifiers,
  UINT vk
);

Implementation

int RegisterHotKey(int hWnd, int id, int fsModifiers, int vk) {
  final _RegisterHotKey = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Int32 id, Uint32 fsModifiers, Uint32 vk),
      int Function(
          int hWnd, int id, int fsModifiers, int vk)>('RegisterHotKey');
  return _RegisterHotKey(hWnd, id, fsModifiers, vk);
}