ReactOS 0.4.16-dev-329-g9223134
mxtimer.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5ModuleName:
6
7 MxTimer.h
8
9Abstract:
10
11 Mode agnostic definiton of timer
12
13 See MxTimerKm.h and MxTimerUm.h for
14 mode specific implementations
15
16Author:
17
18
19Revision History:
20
21
22
23--*/
24
25#pragma once
26
28{
29private:
30 //
31 // Handle to the timer object
32 //
34
35public:
36
37 __inline
38 MxTimer(
39 VOID
40 );
41
42 __inline
44 VOID
45 );
46
48 __inline
52 __in MdDeferredRoutine TimerCallback,
54 );
55
57 __inline
61 __in MdExtCallbackType TimerCallback,
64 __in BOOLEAN UseHighResolutionTimer
65 );
66
67 __inline
68 VOID
69 Start(
72 );
73
74 __inline
79 );
80
82 __inline
84 Stop(
85 VOID
86 );
87
88 __inline
89 VOID
91 VOID
92 );
93};
94
95
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
CHECK_RETURN_IF_USER_MODE __inline NTSTATUS InitializeEx(__in_opt PVOID TimerContext, __in MdExtCallbackType TimerCallback, __in LONG Period, __in ULONG TolerableDelay, __in BOOLEAN UseHighResolutionTimer)
Definition: mxtimerkm.h:141
__inline ~MxTimer(VOID)
Definition: mxtimerkm.h:93
__inline VOID FlushQueuedDpcs(VOID)
Definition: mxtimerkm.h:291
MdTimer m_Timer
Definition: mxtimer.h:33
__inline BOOLEAN StartWithReturn(__in LARGE_INTEGER DueTime, __in ULONG TolerableDelay=0)
Definition: mxtimerkm.h:209
#define __in
Definition: dbghelp.h:35
#define __in_opt
Definition: dbghelp.h:38
return pTarget Start()
_In_opt_ PVOID _Out_ BOOLEAN * Stop
Definition: ldrtypes.h:241
EXT_CALLBACK MdExtCallbackType
Definition: mxkm.h:36
KDEFERRED_ROUTINE * MdDeferredRoutine
Definition: mxkm.h:35
#define CHECK_RETURN_IF_USER_MODE
Definition: mxmacros.h:26
#define _Must_inspect_result_
Definition: no_sal2.h:62
long LONG
Definition: pedump.c:60
uint32_t ULONG
Definition: typedefs.h:59
_In_ WDFTIMER _In_ LONGLONG DueTime
Definition: wdftimer.h:190
_In_ LARGE_INTEGER _In_ ULONG _In_ ULONG TolerableDelay
Definition: kefuncs.h:1314
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1313
static void Initialize()
Definition: xlate.c:212
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE _In_opt_ PVOID TimerContext
Definition: zwfuncs.h:430