ReactOS 0.4.15-dev-8348-gc1b9bb5
timer.h
Go to the documentation of this file.
1#pragma once
2
3typedef 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
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
33extern PKTIMER MasterTimer;
34
38BOOL FASTCALL IntKillTimer(PWND Window, UINT_PTR IDEvent, BOOL SystemTimer);
#define CODE_SEG(...)
Type
Definition: Type.h:7
LONG NTSTATUS
Definition: precomp.h:26
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
unsigned int UINT
Definition: ndis.h:50
#define FASTCALL
Definition: nt_native.h:50
unsigned long FLONG
Definition: ntbasedef.h:366
Definition: window.c:28
Definition: ntuser.h:180
Definition: typedefs.h:120
Definition: timer.h:4
INT cmsRate
Definition: timer.h:11
HEAD head
Definition: timer.h:5
TIMERPROC pfn
Definition: timer.h:13
UINT_PTR nID
Definition: timer.h:9
PWND pWnd
Definition: timer.h:8
LIST_ENTRY ptmrList
Definition: timer.h:6
INT cmsCountdown
Definition: timer.h:10
PTHREADINFO pti
Definition: timer.h:7
FLONG flags
Definition: timer.h:12
Definition: ntuser.h:694
#define NTAPI
Definition: typedefs.h:36
int32_t INT
Definition: typedefs.h:58
NTSTATUS NTAPI InitTimerImpl(VOID)
Definition: timer.c:594
PTIMER FASTCALL FindSystemTimer(PMSG)
Definition: timer.c:126
struct _TIMER TIMER
struct _TIMER * PTIMER
UINT_PTR FASTCALL SystemTimerSet(PWND, UINT_PTR, UINT, TIMERPROC)
Definition: timer.c:379
VOID CALLBACK SystemTimerProc(HWND, UINT, UINT_PTR, DWORD)
Definition: timer.c:280
VOID FASTCALL ProcessTimers(VOID)
Definition: timer.c:446
BOOL FASTCALL IntKillTimer(PWND Window, UINT_PTR IDEvent, BOOL SystemTimer)
Definition: timer.c:573
BOOL FASTCALL DestroyTimersForWindow(PTHREADINFO pti, PWND Window)
Definition: timer.c:522
BOOL FASTCALL ValidateTimerCallback(PTHREADINFO, LPARAM)
Definition: timer.c:150
VOID FASTCALL StartTheTimers(VOID)
Definition: timer.c:368
BOOL FASTCALL DestroyTimersForThread(PTHREADINFO pti)
Definition: timer.c:549
PKTIMER MasterTimer
Definition: input.c:16
UINT_PTR FASTCALL IntSetTimer(PWND Window, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, INT Type)
Definition: timer.c:177
BOOL FASTCALL PostTimerMessages(PWND)
Definition: timer.c:395
LONG_PTR LPARAM
Definition: windef.h:208
VOID(CALLBACK * TIMERPROC)(HWND, UINT, UINT_PTR, DWORD)
Definition: winuser.h:2897