From 2acec63b2ed75bf4b71ad257db573c4b8f9639e7 Mon Sep 17 00:00:00 2001 From: tumagonx Date: Tue, 8 Aug 2017 10:54:53 +0700 Subject: initial commit --- driverobj.h | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 driverobj.h (limited to 'driverobj.h') diff --git a/driverobj.h b/driverobj.h new file mode 100644 index 0000000..ea7d276 --- /dev/null +++ b/driverobj.h @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2004 Security Architects Corporation. All rights reserved. + * + * Module Name: + * + * driverobj.h + * + * Abstract: + * + * This module defines various types used by driver object hooking routines. + * + * Author: + * + * Eugene Tsyrklevich 06-Apr-2004 + * + * Revision History: + * + * None. + */ + + +#ifndef __DRIVEROBJ_H__ +#define __DRIVEROBJ_H__ + + +#include +#include "policy.h" +#include "pathproc.h" +#include "hookproc.h" +#include "accessmask.h" +#include "learn.h" +#include "log.h" + + +/* + * ZwLoadDriver loads a device driver. [NAR] + */ + +typedef NTSTATUS (*fpZwLoadDriver) ( + IN PUNICODE_STRING DriverServiceName + ); + +NTSTATUS +NTAPI +HookedNtLoadDriver( + IN PUNICODE_STRING DriverServiceName + ); + + +/* + * ZwUnloadDriver unloads a device driver. [NAR] + */ + +typedef NTSTATUS (*fpZwUnloadDriver) ( + IN PUNICODE_STRING DriverServiceName + ); + +NTSTATUS +NTAPI +HookedNtUnloadDriver( + IN PUNICODE_STRING DriverServiceName + ); + + +BOOLEAN InitDriverObjectHooks(); + + +#endif /* __DRIVEROBJ_H__ */ -- cgit v1.3