2010-02-26 11:43:19 +00:00
|
|
|
#pragma once
|
2003-05-18 17:16:18 +00:00
|
|
|
|
2008-08-06 02:05:17 +00:00
|
|
|
typedef struct _TIMER
|
|
|
|
{
|
2010-01-14 13:33:04 +00:00
|
|
|
HEAD head;
|
2008-08-06 02:05:17 +00:00
|
|
|
LIST_ENTRY ptmrList;
|
2009-01-15 23:15:31 +00:00
|
|
|
PTHREADINFO pti;
|
2008-08-06 02:05:17 +00:00
|
|
|
PWINDOW_OBJECT pWnd; // hWnd
|
|
|
|
UINT_PTR nID; // Specifies a nonzero timer identifier.
|
|
|
|
INT cmsCountdown; // uElapse
|
|
|
|
INT cmsRate; // uElapse
|
|
|
|
FLONG flags;
|
|
|
|
TIMERPROC pfn; // lpTimerFunc
|
|
|
|
} TIMER, *PTIMER;
|
|
|
|
|
2009-01-13 12:16:06 +00:00
|
|
|
//
|
|
|
|
// Timer structure flags.
|
|
|
|
//
|
|
|
|
#define TMRF_READY 0x0001
|
|
|
|
#define TMRF_SYSTEM 0x0002
|
|
|
|
#define TMRF_RIT 0x0004
|
|
|
|
#define TMRF_INIT 0x0008
|
|
|
|
#define TMRF_ONESHOT 0x0010
|
|
|
|
#define TMRF_WAITING 0x0020
|
2009-01-15 23:15:31 +00:00
|
|
|
#define TMRF_TIFROMWND 0x0040
|
|
|
|
|
|
|
|
extern PKTIMER MasterTimer;
|
2009-01-13 12:16:06 +00:00
|
|
|
|
2003-05-18 17:16:18 +00:00
|
|
|
NTSTATUS FASTCALL InitTimerImpl(VOID);
|
2004-12-29 19:55:01 +00:00
|
|
|
BOOL FASTCALL IntKillTimer(HWND Wnd, UINT_PTR IDEvent, BOOL SystemTimer);
|
|
|
|
UINT_PTR FASTCALL IntSetTimer(HWND Wnd, UINT_PTR IDEvent, UINT Elapse, TIMERPROC TimerFunc, BOOL SystemTimer);
|
2009-01-13 12:16:06 +00:00
|
|
|
PTIMER FASTCALL FindSystemTimer(PMSG);
|
2009-01-15 23:15:31 +00:00
|
|
|
BOOL FASTCALL ValidateTimerCallback(PTHREADINFO,PWINDOW_OBJECT,WPARAM,LPARAM);
|
2009-01-14 02:02:26 +00:00
|
|
|
VOID CALLBACK SystemTimerProc(HWND,UINT,UINT_PTR,DWORD);
|
2009-01-15 23:15:31 +00:00
|
|
|
UINT_PTR FASTCALL SetSystemTimer(PWINDOW_OBJECT,UINT_PTR,UINT,TIMERPROC);
|
- Use PWINDOW_OBJECT instead HWND in PostTimerMessages, IntGetPaintMessage, co_MsqTranslateMouseMessage, co_MsqPeekHardwareMessage, co_MsqFindMessage, co_MsqWaitForNewMessages, MsqGetTimerMessage, MsqGetFirstTimerExpiry, co_IntPeekMessage
- Allow hWnd equal -1, 0x0000ffff, 0xffffffff
- Fixes 3 winetests for PeekMessageA/W
svn path=/trunk/; revision=41754
2009-07-03 09:37:44 +00:00
|
|
|
BOOL FASTCALL PostTimerMessages(PWINDOW_OBJECT);
|
2009-01-15 23:15:31 +00:00
|
|
|
VOID FASTCALL ProcessTimers(VOID);
|
|
|
|
VOID FASTCALL StartTheTimers(VOID);
|