KillTimer function user32

Win32Result<bool> KillTimer(
  1. HWND? hWnd,
  2. int uIDEvent
)

Destroys the specified timer.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-killtimer.

Implementation

Win32Result<bool> KillTimer(HWND? hWnd, int uIDEvent) {
  final result_ = KillTimer_Wrapper(hWnd ?? nullptr, uIDEvent);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}