コード例 #1
0
 public static void KillTimer(WindowHandle window, TimerId id)
 {
     if (!Imports.KillTimer(window, id))
     {
         throw Errors.GetIoExceptionForLastError();
     }
 }
コード例 #2
0
        public static TimerId SetTimer(WindowHandle window, TimerId id, uint interval, TimerProcedure callback = null, uint delayTolerance = 0)
        {
            TimerId result = Imports.SetCoalescableTimer(window, id, interval, callback, delayTolerance);

            if (result == TimerId.Null)
            {
                throw Errors.GetIoExceptionForLastError();
            }

            return(result);
        }
コード例 #3
0
 public static extern TimerId SetCoalescableTimer(
     WindowHandle hWnd,
     TimerId nIdEvent,
     uint uElapse,
     TimerProcedure lpTimerFunc,
     uint uToleranceDelay);
コード例 #4
0
 public static extern bool KillTimer(
     WindowHandle hWnd,
     TimerId uIDEvent);
コード例 #5
0
 public static extern TimerId SetTimer(
     WindowHandle hWnd,
     TimerId nIDEvent,
     uint uElapse,
     TimerProcedure lpTimerFunc);
コード例 #6
0
 public bool Equals(TimerId other) => other.Value == Value;