summaryrefslogtreecommitdiff
path: root/atom.h
diff options
context:
space:
mode:
Diffstat (limited to 'atom.h')
-rw-r--r--atom.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/atom.h b/atom.h
new file mode 100644
index 0000000..68af7f8
--- /dev/null
+++ b/atom.h
@@ -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
39typedef NTSTATUS (*fpZwAddAtom) (
40 IN PWSTR String,
41 IN ULONG StringLength,
42 OUT PUSHORT Atom
43 );
44
45NTSTATUS
46NTAPI
47HookedNtAddAtom(
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
60typedef NTSTATUS (*fpZwFindAtom) (
61 IN PWSTR String,
62 IN ULONG StringLength,
63 OUT PUSHORT Atom
64 );
65
66NTSTATUS
67NTAPI
68HookedNtFindAtom(
69 IN PWSTR String,
70 IN ULONG StringLength,
71 OUT PUSHORT Atom
72 );
73
74
75BOOLEAN InitAtomHooks();
76
77
78#endif /* __ATOM_H__ */