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 /atom.h | |
initial commit
Diffstat (limited to 'atom.h')
| -rw-r--r-- | atom.h | 78 |
1 files changed, 78 insertions, 0 deletions
| @@ -0,0 +1,78 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2004 Security Architects Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * Module Name: | ||
| 5 | * | ||
| 6 | * atom.h | ||
| 7 | * | ||
| 8 | * Abstract: | ||
| 9 | * | ||
| 10 | * This module defines various types used by atom 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 __ATOM_H__ | ||
| 23 | #define __ATOM_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 | * ZwAddAtom adds an atom to the global atom table. [NAR] | ||
| 37 | */ | ||
| 38 | |||
| 39 | typedef NTSTATUS (*fpZwAddAtom) ( | ||
| 40 | IN PWSTR String, | ||
| 41 | IN ULONG StringLength, | ||
| 42 | OUT PUSHORT Atom | ||
| 43 | ); | ||
| 44 | |||
| 45 | NTSTATUS | ||
| 46 | NTAPI | ||
| 47 | HookedNtAddAtom( | ||
| 48 | IN PWSTR String, | ||
| 49 | IN ULONG StringLength, | ||
| 50 | OUT PUSHORT Atom | ||
| 51 | ); | ||
| 52 | |||
| 53 | |||
| 54 | |||
| 55 | /* | ||
| 56 | * ZwFindAtom searches for an atom in the global atom table. [NAR] | ||
| 57 | */ | ||
| 58 | |||
| 59 | |||
| 60 | typedef NTSTATUS (*fpZwFindAtom) ( | ||
| 61 | IN PWSTR String, | ||
| 62 | IN ULONG StringLength, | ||
| 63 | OUT PUSHORT Atom | ||
| 64 | ); | ||
| 65 | |||
| 66 | NTSTATUS | ||
| 67 | NTAPI | ||
| 68 | HookedNtFindAtom( | ||
| 69 | IN PWSTR String, | ||
| 70 | IN ULONG StringLength, | ||
| 71 | OUT PUSHORT Atom | ||
| 72 | ); | ||
| 73 | |||
| 74 | |||
| 75 | BOOLEAN InitAtomHooks(); | ||
| 76 | |||
| 77 | |||
| 78 | #endif /* __ATOM_H__ */ | ||
