summaryrefslogtreecommitdiff
path: root/time.h
diff options
context:
space:
mode:
authortumagonx2017-08-08 10:54:53 +0700
committertumagonx2017-08-08 10:54:53 +0700
commit2acec63b2ed75bf4b71ad257db573c4b8f9639e7 (patch)
treea8bea139ddd26116d44ea182b0b8436f2162e6e3 /time.h
initial commit
Diffstat (limited to 'time.h')
-rw-r--r--time.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/time.h b/time.h
new file mode 100644
index 0000000..76ccc36
--- /dev/null
+++ b/time.h
@@ -0,0 +1,68 @@
1/*
2 * Copyright (c) 2004 Security Architects Corporation. All rights reserved.
3 *
4 * Module Name:
5 *
6 * time.h
7 *
8 * Abstract:
9 *
10 * This module defines various types used by time hooking routines.
11 *
12 * Author:
13 *
14 * Eugene Tsyrklevich 10-Mar-2004
15 *
16 * Revision History:
17 *
18 * None.
19 */
20
21
22#ifndef __TIME_H__
23#define __TIME_H__
24
25
26#include <NTDDK.h>
27
28
29/*
30 * ZwSetSystemTime sets the system time. [NAR]
31 */
32
33typedef NTSTATUS (*fpZwSetSystemTime)(
34 IN PLARGE_INTEGER NewTime,
35 OUT PLARGE_INTEGER OldTime OPTIONAL
36 );
37
38NTSTATUS
39NTAPI
40HookedNtSetSystemTime(
41 IN PLARGE_INTEGER NewTime,
42 OUT PLARGE_INTEGER OldTime OPTIONAL
43 );
44
45
46/*
47 * ZwSetTimerResolution sets the resolution of the system timer. [NAR]
48 */
49
50typedef NTSTATUS (*fpZwSetTimerResolution)(
51 IN ULONG RequestedResolution,
52 IN BOOLEAN Set,
53 OUT PULONG ActualResolution
54 );
55
56NTSTATUS
57NTAPI
58HookedNtSetTimerResolution(
59 IN ULONG RequestedResolution,
60 IN BOOLEAN Set,
61 OUT PULONG ActualResolution
62 );
63
64
65BOOLEAN InitTimeHooks();
66
67
68#endif /* __TIME_H__ */