KillTimer function Null safety user32

int KillTimer (
  1. int hWnd,
  2. int uIDEvent
)

Destroys the specified timer.

BOOL KillTimer(
  HWND     hWnd,
  UINT_PTR uIDEvent
);

Implementation

int KillTimer(int hWnd, int uIDEvent) {
  final _KillTimer = _user32.lookupFunction<
      Int32 Function(IntPtr hWnd, IntPtr uIDEvent),
      int Function(int hWnd, int uIDEvent)>('KillTimer');
  return _KillTimer(hWnd, uIDEvent);
}