mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fixed timer issues
svn path=/trunk/; revision=1573
This commit is contained in:
parent
2d87dedf3e
commit
dc0568827a
4 changed files with 22 additions and 20 deletions
|
@ -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 )
|
// File System Control commands ( related to defragging )
|
||||||
|
|
||||||
#define FSCTL_READ_MFT_RECORD 0x90068 // NTFS only
|
#define FSCTL_READ_MFT_RECORD 0x90068 // NTFS only
|
||||||
|
|
|
@ -4404,13 +4404,16 @@ SetTimer(
|
||||||
TIMERPROC lpTimerFunc);
|
TIMERPROC lpTimerFunc);
|
||||||
|
|
||||||
|
|
||||||
BOOL STDCALL SetWaitableTimer( HANDLE Timer,
|
WINBOOL
|
||||||
const LARGE_INTEGER *duetime,
|
STDCALL
|
||||||
LONG Period,
|
SetWaitableTimer(HANDLE hTimer,
|
||||||
PTIMERAPCROUTINE Apcroutine,
|
const LARGE_INTEGER *pDueTime,
|
||||||
LPVOID Param,
|
LONG lPeriod,
|
||||||
BOOL Resume );
|
PTIMERAPCROUTINE pfnCompletionRoutine,
|
||||||
|
LPVOID lpArgToCompletionRoutine,
|
||||||
|
WINBOOL fResume);
|
||||||
|
|
||||||
|
|
||||||
WINBOOL
|
WINBOOL
|
||||||
STDCALL
|
STDCALL
|
||||||
KillTimer(
|
KillTimer(
|
||||||
|
|
|
@ -343,4 +343,13 @@ typedef struct _SMALL_RECT {
|
||||||
SHORT Bottom;
|
SHORT Bottom;
|
||||||
} SMALL_RECT, *PSMALL_RECT;
|
} SMALL_RECT, *PSMALL_RECT;
|
||||||
|
|
||||||
|
|
||||||
|
typedef
|
||||||
|
VOID
|
||||||
|
(*PTIMERAPCROUTINE)(
|
||||||
|
LPVOID lpArgToCompletionRoutine,
|
||||||
|
DWORD dwTimerLowValue,
|
||||||
|
DWORD dwTimerHighValue
|
||||||
|
);
|
||||||
|
|
||||||
#endif /* __INCLUDE_TYPES_H */
|
#endif /* __INCLUDE_TYPES_H */
|
||||||
|
|
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -144,7 +144,7 @@ OpenWaitableTimerA (
|
||||||
|
|
||||||
WINBOOL STDCALL SetWaitableTimer(
|
WINBOOL STDCALL SetWaitableTimer(
|
||||||
HANDLE hTimer,
|
HANDLE hTimer,
|
||||||
LARGE_INTEGER *pDueTime,
|
const LARGE_INTEGER *pDueTime,
|
||||||
LONG lPeriod,
|
LONG lPeriod,
|
||||||
PTIMERAPCROUTINE pfnCompletionRoutine,
|
PTIMERAPCROUTINE pfnCompletionRoutine,
|
||||||
LPVOID lpArgToCompletionRoutine,
|
LPVOID lpArgToCompletionRoutine,
|
||||||
|
@ -154,7 +154,7 @@ WINBOOL STDCALL SetWaitableTimer(
|
||||||
NTSTATUS errCode;
|
NTSTATUS errCode;
|
||||||
BOOLEAN pState;
|
BOOLEAN pState;
|
||||||
|
|
||||||
errCode = NtSetTimer(hTimer, pDueTime,
|
errCode = NtSetTimer(hTimer, (LARGE_INTEGER *)pDueTime,
|
||||||
pfnCompletionRoutine,
|
pfnCompletionRoutine,
|
||||||
lpArgToCompletionRoutine, fResume, lPeriod, &pState);
|
lpArgToCompletionRoutine, fResume, lPeriod, &pState);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue