ReactOS  0.4.15-dev-3428-g0609db5
mxtimer.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 ModuleName:
6 
7  MxTimer.h
8 
9 Abstract:
10 
11  Mode agnostic definiton of timer
12 
13  See MxTimerKm.h and MxTimerUm.h for
14  mode specific implementations
15 
16 Author:
17 
18 
19 Revision History:
20 
21 
22 
23 --*/
24 
25 #pragma once
26 
27 class MxTimer
28 {
29 private:
30  //
31  // Handle to the timer object
32  //
34 
35 public:
36 
37  __inline
38  MxTimer(
39  VOID
40  );
41 
42  __inline
43  ~MxTimer(
44  VOID
45  );
46 
48  __inline
49  NTSTATUS
50  Initialize(
52  __in MdDeferredRoutine TimerCallback,
54  );
55 
57  __inline
58  NTSTATUS
61  __in MdExtCallbackType TimerCallback,
64  __in BOOLEAN UseHighResolutionTimer
65  );
66 
67  __inline
68  VOID
69  Start(
72  );
73 
74  __inline
75  BOOLEAN
79  );
80 
82  __inline
83  BOOLEAN
84  Stop(
85  VOID
86  );
87 
88  __inline
89  VOID
91  VOID
92  );
93 };
94 
95 
_In_ LARGE_INTEGER _In_ ULONG _In_ ULONG TolerableDelay
Definition: kefuncs.h:1324
CHECK_RETURN_IF_USER_MODE __inline NTSTATUS Initialize(__in_opt PVOID TimerContext, __in MdDeferredRoutine TimerCallback, __in LONG Period)
Definition: mxtimerkm.h:119
__inline VOID FlushQueuedDpcs(VOID)
Definition: mxtimerkm.h:291
#define __in_opt
Definition: dbghelp.h:38
#define CHECK_RETURN_IF_USER_MODE
Definition: mxmacros.h:26
LONG NTSTATUS
Definition: precomp.h:26
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1324
EXT_CALLBACK MdExtCallbackType
Definition: mxkm.h:36
__inline ~MxTimer(VOID)
Definition: mxtimerkm.h:93
KDEFERRED_ROUTINE * MdDeferredRoutine
Definition: mxkm.h:35
__inline MxTimer(VOID)
Definition: mxtimerkm.h:83
long LONG
Definition: pedump.c:60
unsigned char BOOLEAN
__inline VOID Start(__in LARGE_INTEGER DueTime, __in ULONG TolerableDelay=0)
Definition: mxtimerkm.h:251
__inline BOOLEAN StartWithReturn(__in LARGE_INTEGER DueTime, __in ULONG TolerableDelay=0)
Definition: mxtimerkm.h:209
#define _Must_inspect_result_
Definition: ms_sal.h:558
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
_In_ WDFTIMER _In_ LONGLONG DueTime
Definition: wdftimer.h:187
MdTimer m_Timer
Definition: mxtimer.h:33
unsigned int ULONG
Definition: retypes.h:1
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE _In_opt_ PVOID TimerContext
Definition: zwfuncs.h:428
#define __in
Definition: dbghelp.h:35
_Must_inspect_result_ __inline BOOLEAN Stop(VOID)
Definition: mxtimerkm.h:273