UnregisterHotKey function Null safety user32

int UnregisterHotKey(
  1. int hWnd,
  2. int id
)

Frees a hot key previously registered by the calling thread.

BOOL UnregisterHotKey(
  HWND hWnd,
  int  id
);

Implementation

int UnregisterHotKey(int hWnd, int id) {
  final _UnregisterHotKey = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, Int32 id),
      int Function(int hWnd, int id)>('UnregisterHotKey');
  return _UnregisterHotKey(hWnd, id);
}