diff options
| author | tumagonx | 2017-08-08 10:54:53 +0700 |
|---|---|---|
| committer | tumagonx | 2017-08-08 10:54:53 +0700 |
| commit | 2acec63b2ed75bf4b71ad257db573c4b8f9639e7 (patch) | |
| tree | a8bea139ddd26116d44ea182b0b8436f2162e6e3 /time.h | |
initial commit
Diffstat (limited to 'time.h')
| -rw-r--r-- | time.h | 68 |
1 files changed, 68 insertions, 0 deletions
| @@ -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 | |||
| 33 | typedef NTSTATUS (*fpZwSetSystemTime)( | ||
| 34 | IN PLARGE_INTEGER NewTime, | ||
| 35 | OUT PLARGE_INTEGER OldTime OPTIONAL | ||
| 36 | ); | ||
| 37 | |||
| 38 | NTSTATUS | ||
| 39 | NTAPI | ||
| 40 | HookedNtSetSystemTime( | ||
| 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 | |||
| 50 | typedef NTSTATUS (*fpZwSetTimerResolution)( | ||
| 51 | IN ULONG RequestedResolution, | ||
| 52 | IN BOOLEAN Set, | ||
| 53 | OUT PULONG ActualResolution | ||
| 54 | ); | ||
| 55 | |||
| 56 | NTSTATUS | ||
| 57 | NTAPI | ||
| 58 | HookedNtSetTimerResolution( | ||
| 59 | IN ULONG RequestedResolution, | ||
| 60 | IN BOOLEAN Set, | ||
| 61 | OUT PULONG ActualResolution | ||
| 62 | ); | ||
| 63 | |||
| 64 | |||
| 65 | BOOLEAN InitTimeHooks(); | ||
| 66 | |||
| 67 | |||
| 68 | #endif /* __TIME_H__ */ | ||
