ReactOS  0.4.14-dev-358-gbef841c
timer.h
Go to the documentation of this file.
1 #pragma once
2 
3 typedef struct _TIMER
4 {
8  PWND pWnd; // hWnd
9  UINT_PTR nID; // Specifies a nonzero timer identifier.
10  INT cmsCountdown; // uElapse
11  INT cmsRate; // uElapse
13  TIMERPROC pfn; // lpTimerFunc
14 } TIMER, *PTIMER;
15 
16 //
17 // Timer structure flags.
18 //
19 #define TMRF_READY 0x0001
20 #define TMRF_SYSTEM 0x0002
21 #define TMRF_RIT 0x0004
22 #define TMRF_INIT 0x0008
23 #define TMRF_ONESHOT 0x0010
24 #define TMRF_WAITING 0x0020
25 #define TMRF_TIFROMWND 0x0040
26 
27 #define ID_EVENT_SYSTIMER_MOUSEHOVER ID_TME_TIMER
28 #define ID_EVENT_SYSTIMER_FLASHWIN (0xFFF8)
29 #define ID_EVENT_SYSTIMER_TRACKWIN (0xFFF7)
30 #define ID_EVENT_SYSTIMER_ANIMATEDFADE (0xFFF6)
31 #define ID_EVENT_SYSTIMER_INVALIDATEDCES (0xFFF5)
32 
33 extern PKTIMER MasterTimer;
34 
35 INIT_FUNCTION NTSTATUS NTAPI InitTimerImpl(VOID);
38 BOOL FASTCALL IntKillTimer(PWND Window, UINT_PTR IDEvent, BOOL SystemTimer);
39 UINT_PTR FASTCALL IntSetTimer(PWND Window, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, INT Type);
PWND pWnd
Definition: timer.h:8
UINT_PTR FASTCALL IntSetTimer(PWND Window, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, INT Type)
Definition: timer.c:177
Type
Definition: Type.h:6
INIT_FUNCTION NTSTATUS NTAPI InitTimerImpl(VOID)
Definition: timer.c:594
BOOL FASTCALL IntKillTimer(PWND Window, UINT_PTR IDEvent, BOOL SystemTimer)
Definition: timer.c:573
INT cmsCountdown
Definition: timer.h:10
VOID FASTCALL ProcessTimers(VOID)
Definition: timer.c:446
LONG NTSTATUS
Definition: precomp.h:26
#define CALLBACK
Definition: compat.h:27
PTIMER FASTCALL FindSystemTimer(PMSG)
Definition: timer.c:126
UINT_PTR FASTCALL SystemTimerSet(PWND, UINT_PTR, UINT, TIMERPROC)
Definition: timer.c:379
#define FASTCALL
Definition: nt_native.h:50
HEAD head
Definition: timer.h:5
int32_t INT
Definition: typedefs.h:56
BOOL FASTCALL ValidateTimerCallback(PTHREADINFO, LPARAM)
Definition: timer.c:150
BOOL FASTCALL DestroyTimersForWindow(PTHREADINFO pti, PWND Window)
Definition: timer.c:522
VOID(CALLBACK * TIMERPROC)(HWND, UINT, UINT_PTR, DWORD)
Definition: winuser.h:2871
Definition: window.c:29
BOOL FASTCALL DestroyTimersForThread(PTHREADINFO pti)
Definition: timer.c:549
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned int BOOL
Definition: ntddk_ex.h:94
UINT_PTR nID
Definition: timer.h:9
VOID CALLBACK SystemTimerProc(HWND, UINT, UINT_PTR, DWORD)
Definition: timer.c:280
Definition: timer.h:3
LONG_PTR LPARAM
Definition: windef.h:208
unsigned long FLONG
Definition: ntbasedef.h:373
Definition: ntuser.h:174
struct _TIMER TIMER
unsigned long DWORD
Definition: ntddk_ex.h:95
PTHREADINFO pti
Definition: timer.h:7
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
INT cmsRate
Definition: timer.h:11
Definition: typedefs.h:117
Definition: ntuser.h:657
FLONG flags
Definition: timer.h:12
struct _TIMER * PTIMER
BOOL FASTCALL PostTimerMessages(PWND)
Definition: timer.c:395
unsigned int UINT
Definition: ndis.h:50
TIMERPROC pfn
Definition: timer.h:13
LIST_ENTRY ptmrList
Definition: timer.h:6
PKTIMER MasterTimer
Definition: input.c:16
VOID FASTCALL StartTheTimers(VOID)
Definition: timer.c:368