From a6a0f5ae18d881b0d1f32240abb8272a15a278c2 Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Thu, 25 Jan 2001 05:36:21 +0000 Subject: [PATCH] Added declarations for waitable timer functions svn path=/trunk/; revision=1565 --- reactos/include/ascii.h | 6 +++++- reactos/include/base.h | 1 + reactos/include/funcs.h | 10 +++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/reactos/include/ascii.h b/reactos/include/ascii.h index d97cb38c1f0..e9667bf4a95 100644 --- a/reactos/include/ascii.h +++ b/reactos/include/ascii.h @@ -1037,7 +1037,11 @@ CreateWindowStationA( DWORD dwReserved, DWORD dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa); - + +HANDLE STDCALL CreateWaitableTimerA( LPSECURITY_ATTRIBUTES Attributes, + BOOL ManualReset, + LPCTSTR Name ); + HWINSTA STDCALL OpenWindowStationA( diff --git a/reactos/include/base.h b/reactos/include/base.h index 19856f09ca0..5781663479b 100644 --- a/reactos/include/base.h +++ b/reactos/include/base.h @@ -394,6 +394,7 @@ typedef WINBOOL CALLBACK (*ENUMWINDOWSPROC) (HWND, LPARAM); typedef WINBOOL CALLBACK (*ENUMWINDOWSTATIONPROC) (LPTSTR, LPARAM); typedef VOID CALLBACK (*SENDASYNCPROC) (HWND, UINT, DWORD, LRESULT); typedef VOID CALLBACK (*TIMERPROC) (HWND, UINT, UINT, DWORD); +typedef VOID (*PTIMERAPCROUTINE)(PVOID lpArgToCompletionRoutine,DWORD dwTimerLowValue,DWORD dwTimerHighValue); typedef FARPROC GRAYSTRINGPROC; typedef WINBOOL CALLBACK (*DRAWSTATEPROC) (HDC, LPARAM, WPARAM, int, int); typedef WINBOOL CALLBACK (*PROPENUMPROCEX) (HWND, LPCTSTR, HANDLE, DWORD); diff --git a/reactos/include/funcs.h b/reactos/include/funcs.h index b019e492f7b..77c82c287e1 100644 --- a/reactos/include/funcs.h +++ b/reactos/include/funcs.h @@ -586,6 +586,7 @@ extern "C" { #define CreateDialogIndirectParam CreateDialogIndirectParamA #define CreateDialog CreateDialogA #define CreateDialogIndirect CreateDialogIndirectA +#define CreateWaitableTimer CreateWaitableTimerA #define DialogBoxParam DialogBoxParamA #define DialogBoxIndirectParam DialogBoxIndirectParamA #define DialogBox DialogBoxA @@ -4402,7 +4403,14 @@ SetTimer( UINT uElapse, TIMERPROC lpTimerFunc); - + +BOOL STDCALL SetWaitableTimer( HANDLE Timer, + const LARGE_INTEGER *duetime, + LONG Period, + PTIMERAPCROUTINE Apcroutine, + LPVOID Param, + BOOL Resume ); + WINBOOL STDCALL KillTimer(