Fixed timer issues

svn path=/trunk/; revision=1573
This commit is contained in:
Eric Kohl 2001-01-27 19:35:04 +00:00
parent 2d87dedf3e
commit dc0568827a
4 changed files with 22 additions and 20 deletions

View file

@ -1192,16 +1192,6 @@ typedef struct _FILE_NOTIFY_INFORMATION {
*/
//FIXME: I am a win32 object
typedef
VOID
(*PTIMERAPCROUTINE)(
LPVOID lpArgToCompletionRoutine,
DWORD dwTimerLowValue,
DWORD dwTimerHighValue
);
// File System Control commands ( related to defragging )
#define FSCTL_READ_MFT_RECORD 0x90068 // NTFS only

View file

@ -4404,13 +4404,16 @@ SetTimer(
TIMERPROC lpTimerFunc);
BOOL STDCALL SetWaitableTimer( HANDLE Timer,
const LARGE_INTEGER *duetime,
LONG Period,
PTIMERAPCROUTINE Apcroutine,
LPVOID Param,
BOOL Resume );
WINBOOL
STDCALL
SetWaitableTimer(HANDLE hTimer,
const LARGE_INTEGER *pDueTime,
LONG lPeriod,
PTIMERAPCROUTINE pfnCompletionRoutine,
LPVOID lpArgToCompletionRoutine,
WINBOOL fResume);
WINBOOL
STDCALL
KillTimer(

View file

@ -343,4 +343,13 @@ typedef struct _SMALL_RECT {
SHORT Bottom;
} SMALL_RECT, *PSMALL_RECT;
typedef
VOID
(*PTIMERAPCROUTINE)(
LPVOID lpArgToCompletionRoutine,
DWORD dwTimerLowValue,
DWORD dwTimerHighValue
);
#endif /* __INCLUDE_TYPES_H */

View file

@ -1,4 +1,4 @@
/* $Id: timer.c,v 1.6 2000/08/05 18:01:50 dwelch Exp $
/* $Id: timer.c,v 1.7 2001/01/27 19:35:04 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -144,7 +144,7 @@ OpenWaitableTimerA (
WINBOOL STDCALL SetWaitableTimer(
HANDLE hTimer,
LARGE_INTEGER *pDueTime,
const LARGE_INTEGER *pDueTime,
LONG lPeriod,
PTIMERAPCROUTINE pfnCompletionRoutine,
LPVOID lpArgToCompletionRoutine,
@ -154,7 +154,7 @@ WINBOOL STDCALL SetWaitableTimer(
NTSTATUS errCode;
BOOLEAN pState;
errCode = NtSetTimer(hTimer, pDueTime,
errCode = NtSetTimer(hTimer, (LARGE_INTEGER *)pDueTime,
pfnCompletionRoutine,
lpArgToCompletionRoutine, fResume, lPeriod, &pState);