Process Hacker
phnt.h
Go to the documentation of this file.
1 #ifndef _PH_PHNT_H
2 #define _PH_PHNT_H
3 
4 // This header file provides access to NT APIs.
5 
6 // Definitions are annotated to indicate their source.
7 // If a definition is not annotated, it has been retrieved
8 // from an official Microsoft source (NT headers, DDK headers, winnt.h).
9 
10 // "winbase" indicates that a definition has been reconstructed from
11 // a Win32-ized NT definition in winbase.h.
12 // "rev" indicates that a definition has been reverse-engineered.
13 // "dbg" indicates that a definition has been obtained from a debug
14 // message or assertion in a checked build of the kernel or file.
15 
16 // Reliability:
17 // 1. No annotation.
18 // 2. dbg.
19 // 3. symbols, private. Types may be incorrect.
20 // 4. winbase. Names and types may be incorrect.
21 // 5. rev.
22 
23 // Mode
24 #define PHNT_MODE_KERNEL 0
25 #define PHNT_MODE_USER 1
26 
27 // Version
28 #define PHNT_WIN2K 50
29 #define PHNT_WINXP 51
30 #define PHNT_WS03 52
31 #define PHNT_VISTA 60
32 #define PHNT_WIN7 61
33 #define PHNT_WIN8 62
34 #define PHNT_WINBLUE 63
35 #define PHNT_THRESHOLD 100
36 
37 #ifndef PHNT_MODE
38 #define PHNT_MODE PHNT_MODE_USER
39 #endif
40 
41 #ifndef PHNT_VERSION
42 #define PHNT_VERSION PHNT_WINXP
43 #endif
44 
45 // Options
46 
47 //#define PHNT_NO_INLINE_INIT_STRING
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 #if (PHNT_MODE != PHNT_MODE_KERNEL)
54 #include <ntbasic.h>
55 #include <ntnls.h>
56 #include <ntkeapi.h>
57 #endif
58 
59 #include <ntldr.h>
60 #include <ntexapi.h>
61 
62 #if (PHNT_MODE != PHNT_MODE_KERNEL)
63 #include <ntmmapi.h>
64 #endif
65 
66 #include <ntobapi.h>
67 #include <ntpsapi.h>
68 
69 #if (PHNT_MODE != PHNT_MODE_KERNEL)
70 #include <ntcm.h>
71 #include <ntdbg.h>
72 #include <ntioapi.h>
73 #include <ntlpcapi.h>
74 #include <ntpfapi.h>
75 #include <ntpnpapi.h>
76 #include <ntpoapi.h>
77 #include <ntregapi.h>
78 #include <ntrtl.h>
79 #endif
80 
81 #if (PHNT_MODE != PHNT_MODE_KERNEL)
82 
83 #include <ntseapi.h>
84 #include <nttmapi.h>
85 #include <nttp.h>
86 #include <ntxcapi.h>
87 
88 #include <ntwow64.h>
89 
90 #include <ntlsa.h>
91 #include <ntsam.h>
92 
93 #include <ntmisc.h>
94 
95 #include <ntzwapi.h>
96 
97 #endif
98 
99 #ifdef __cplusplus
100 }
101 #endif
102 
103 #endif