From 2acec63b2ed75bf4b71ad257db573c4b8f9639e7 Mon Sep 17 00:00:00 2001 From: tumagonx Date: Tue, 8 Aug 2017 10:54:53 +0700 Subject: initial commit --- time.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 time.h (limited to 'time.h') diff --git a/time.h b/time.h new file mode 100644 index 0000000..76ccc36 --- /dev/null +++ b/time.h @@ -0,0 +1,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 + + +/* + * 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__ */ -- cgit v1.3