summaryrefslogtreecommitdiff
path: root/time.h
blob: 76ccc36c41080a49e69ba840a38bfeb965d60411 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
 * Copyright (c) 2004 Security Architects Corporation. All rights reserved.
 *
 * Module Name:
 *
 *		time.h
 *
 * Abstract:
 *
 *		This module defines various types used by time hooking routines.
 *
 * Author:
 *
 *		Eugene Tsyrklevich 10-Mar-2004
 *
 * Revision History:
 *
 *		None.
 */


#ifndef __TIME_H__
#define __TIME_H__


#include <NTDDK.h>


/*
 * ZwSetSystemTime sets the system time. [NAR]
 */

typedef NTSTATUS (*fpZwSetSystemTime)(
	IN PLARGE_INTEGER NewTime,
	OUT PLARGE_INTEGER OldTime OPTIONAL
	);

NTSTATUS
NTAPI
HookedNtSetSystemTime(
	IN PLARGE_INTEGER NewTime,
	OUT PLARGE_INTEGER OldTime OPTIONAL
	);


/*
 * ZwSetTimerResolution sets the resolution of the system timer. [NAR]
 */

typedef NTSTATUS (*fpZwSetTimerResolution)(
	IN ULONG RequestedResolution,
	IN BOOLEAN Set,
	OUT PULONG ActualResolution
	);

NTSTATUS
NTAPI
HookedNtSetTimerResolution(
	IN ULONG RequestedResolution,
	IN BOOLEAN Set,
	OUT PULONG ActualResolution
	);


BOOLEAN InitTimeHooks();


#endif	/* __TIME_H__ */