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 /driverobj.h | |
initial commit
Diffstat (limited to 'driverobj.h')
| -rw-r--r-- | driverobj.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/driverobj.h b/driverobj.h new file mode 100644 index 0000000..ea7d276 --- /dev/null +++ b/driverobj.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2004 Security Architects Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * Module Name: | ||
| 5 | * | ||
| 6 | * driverobj.h | ||
| 7 | * | ||
| 8 | * Abstract: | ||
| 9 | * | ||
| 10 | * This module defines various types used by driver object hooking routines. | ||
| 11 | * | ||
| 12 | * Author: | ||
| 13 | * | ||
| 14 | * Eugene Tsyrklevich 06-Apr-2004 | ||
| 15 | * | ||
| 16 | * Revision History: | ||
| 17 | * | ||
| 18 | * None. | ||
| 19 | */ | ||
| 20 | |||
| 21 | |||
| 22 | #ifndef __DRIVEROBJ_H__ | ||
| 23 | #define __DRIVEROBJ_H__ | ||
| 24 | |||
| 25 | |||
| 26 | #include <NTDDK.h> | ||
| 27 | #include "policy.h" | ||
| 28 | #include "pathproc.h" | ||
| 29 | #include "hookproc.h" | ||
| 30 | #include "accessmask.h" | ||
| 31 | #include "learn.h" | ||
| 32 | #include "log.h" | ||
| 33 | |||
| 34 | |||
| 35 | /* | ||
| 36 | * ZwLoadDriver loads a device driver. [NAR] | ||
| 37 | */ | ||
| 38 | |||
| 39 | typedef NTSTATUS (*fpZwLoadDriver) ( | ||
| 40 | IN PUNICODE_STRING DriverServiceName | ||
| 41 | ); | ||
| 42 | |||
| 43 | NTSTATUS | ||
| 44 | NTAPI | ||
| 45 | HookedNtLoadDriver( | ||
| 46 | IN PUNICODE_STRING DriverServiceName | ||
| 47 | ); | ||
| 48 | |||
| 49 | |||
| 50 | /* | ||
| 51 | * ZwUnloadDriver unloads a device driver. [NAR] | ||
| 52 | */ | ||
| 53 | |||
| 54 | typedef NTSTATUS (*fpZwUnloadDriver) ( | ||
| 55 | IN PUNICODE_STRING DriverServiceName | ||
| 56 | ); | ||
| 57 | |||
| 58 | NTSTATUS | ||
| 59 | NTAPI | ||
| 60 | HookedNtUnloadDriver( | ||
| 61 | IN PUNICODE_STRING DriverServiceName | ||
| 62 | ); | ||
| 63 | |||
| 64 | |||
| 65 | BOOLEAN InitDriverObjectHooks(); | ||
| 66 | |||
| 67 | |||
| 68 | #endif /* __DRIVEROBJ_H__ */ | ||
