Process Hacker
kphuser.h
Go to the documentation of this file.
1 #ifndef _PH_KPHUSER_H
2 #define _PH_KPHUSER_H
3 
4 #include <kphapi.h>
5 
6 typedef struct _KPH_PARAMETERS
7 {
11 
12 NTSTATUS
13 NTAPI
15  _In_opt_ PWSTR DeviceName
16  );
17 
18 NTSTATUS
19 NTAPI
21  _In_opt_ PWSTR DeviceName,
22  _In_ PWSTR FileName
23  );
24 
25 NTSTATUS
26 NTAPI
28  _In_opt_ PWSTR DeviceName,
29  _In_ PWSTR FileName,
30  _In_opt_ PKPH_PARAMETERS Parameters
31  );
32 
33 NTSTATUS
34 NTAPI
36  VOID
37  );
38 
39 BOOLEAN
40 NTAPI
42  VOID
43  );
44 
45 NTSTATUS
46 NTAPI
48  _In_opt_ PWSTR DeviceName,
49  _In_ PKPH_PARAMETERS Parameters
50  );
51 
52 NTSTATUS
53 NTAPI
55  _In_opt_ PWSTR DeviceName,
56  _In_ PWSTR FileName
57  );
58 
59 NTSTATUS
60 NTAPI
62  _In_opt_ PWSTR DeviceName,
63  _In_ PWSTR FileName,
64  _In_opt_ PKPH_PARAMETERS Parameters
65  );
66 
67 NTSTATUS
68 NTAPI
70  _In_opt_ PWSTR DeviceName
71  );
72 
73 NTSTATUS
74 NTAPI
76  _Out_ PULONG Features
77  );
78 
79 NTSTATUS
80 NTAPI
82  _Out_ PHANDLE ProcessHandle,
83  _In_ ACCESS_MASK DesiredAccess,
84  _In_ PCLIENT_ID ClientId
85  );
86 
87 NTSTATUS
88 NTAPI
90  _In_ HANDLE ProcessHandle,
91  _In_ ACCESS_MASK DesiredAccess,
92  _Out_ PHANDLE TokenHandle
93  );
94 
95 NTSTATUS
96 NTAPI
98  _In_ HANDLE ProcessHandle,
99  _In_ ACCESS_MASK DesiredAccess,
100  _Out_ PHANDLE JobHandle
101  );
102 
103 NTSTATUS
104 NTAPI
106  _In_ HANDLE ProcessHandle
107  );
108 
109 NTSTATUS
110 NTAPI
112  _In_ HANDLE ProcessHandle
113  );
114 
115 NTSTATUS
116 NTAPI
118  _In_ HANDLE ProcessHandle,
119  _In_ NTSTATUS ExitStatus
120  );
121 
122 NTSTATUS
123 NTAPI
125  _In_ HANDLE ProcessHandle,
126  _In_ PVOID BaseAddress,
127  _Out_writes_bytes_(BufferSize) PVOID Buffer,
128  _In_ SIZE_T BufferSize,
129  _Out_opt_ PSIZE_T NumberOfBytesRead
130  );
131 
132 NTSTATUS
133 NTAPI
135  _In_ HANDLE ProcessHandle,
136  _In_opt_ PVOID BaseAddress,
137  _In_reads_bytes_(BufferSize) PVOID Buffer,
138  _In_ SIZE_T BufferSize,
139  _Out_opt_ PSIZE_T NumberOfBytesWritten
140  );
141 
142 NTSTATUS
143 NTAPI
145  _In_opt_ HANDLE ProcessHandle,
146  _In_ PVOID BaseAddress,
147  _Out_writes_bytes_(BufferSize) PVOID Buffer,
148  _In_ SIZE_T BufferSize,
149  _Out_opt_ PSIZE_T NumberOfBytesRead
150  );
151 
152 NTSTATUS
153 NTAPI
155  _In_ HANDLE ProcessHandle,
156  _In_ KPH_PROCESS_INFORMATION_CLASS ProcessInformationClass,
157  _Out_writes_bytes_(ProcessInformationLength) PVOID ProcessInformation,
158  _In_ ULONG ProcessInformationLength,
159  _Out_opt_ PULONG ReturnLength
160  );
161 
162 NTSTATUS
163 NTAPI
165  _In_ HANDLE ProcessHandle,
166  _In_ KPH_PROCESS_INFORMATION_CLASS ProcessInformationClass,
167  _In_reads_bytes_(ProcessInformationLength) PVOID ProcessInformation,
168  _In_ ULONG ProcessInformationLength
169  );
170 
171 NTSTATUS
172 NTAPI
174  _Out_ PHANDLE ThreadHandle,
175  _In_ ACCESS_MASK DesiredAccess,
176  _In_ PCLIENT_ID ClientId
177  );
178 
179 NTSTATUS
180 NTAPI
182  _In_ HANDLE ThreadHandle,
183  _In_ ACCESS_MASK DesiredAccess,
184  _Out_ PHANDLE ProcessHandle
185  );
186 
187 NTSTATUS
188 NTAPI
190  _In_ HANDLE ThreadHandle,
191  _In_ NTSTATUS ExitStatus
192  );
193 
194 NTSTATUS
195 NTAPI
197  _In_ HANDLE ThreadHandle,
198  _In_ NTSTATUS ExitStatus
199  );
200 
201 NTSTATUS
202 NTAPI
204  _In_ HANDLE ThreadHandle,
205  _Inout_ PCONTEXT ThreadContext
206  );
207 
208 NTSTATUS
209 NTAPI
211  _In_ HANDLE ThreadHandle,
212  _In_ PCONTEXT ThreadContext
213  );
214 
215 NTSTATUS
216 NTAPI
218  _In_ HANDLE ThreadHandle,
219  _In_ ULONG FramesToSkip,
220  _In_ ULONG FramesToCapture,
221  _Out_writes_(FramesToCapture) PVOID *BackTrace,
222  _Out_opt_ PULONG CapturedFrames,
223  _Out_opt_ PULONG BackTraceHash
224  );
225 
226 NTSTATUS
227 NTAPI
229  _In_ HANDLE ThreadHandle,
230  _In_ KPH_THREAD_INFORMATION_CLASS ThreadInformationClass,
231  _Out_writes_bytes_(ThreadInformationLength) PVOID ThreadInformation,
232  _In_ ULONG ThreadInformationLength,
233  _Out_opt_ PULONG ReturnLength
234  );
235 
236 NTSTATUS
237 NTAPI
239  _In_ HANDLE ThreadHandle,
240  _In_ KPH_THREAD_INFORMATION_CLASS ThreadInformationClass,
241  _In_reads_bytes_(ThreadInformationLength) PVOID ThreadInformation,
242  _In_ ULONG ThreadInformationLength
243  );
244 
245 NTSTATUS
246 NTAPI
248  _In_ HANDLE ProcessHandle,
249  _Out_writes_bytes_(BufferLength) PVOID Buffer,
250  _In_opt_ ULONG BufferLength,
251  _Out_opt_ PULONG ReturnLength
252  );
253 
254 NTSTATUS
255 NTAPI
257  _In_ HANDLE ProcessHandle,
258  _Out_ PKPH_PROCESS_HANDLE_INFORMATION *Handles
259  );
260 
261 NTSTATUS
262 NTAPI
264  _In_ HANDLE ProcessHandle,
265  _In_ HANDLE Handle,
266  _In_ KPH_OBJECT_INFORMATION_CLASS ObjectInformationClass,
267  _Out_writes_bytes_(ObjectInformationLength) PVOID ObjectInformation,
268  _In_ ULONG ObjectInformationLength,
269  _Out_opt_ PULONG ReturnLength
270  );
271 
272 NTSTATUS
273 NTAPI
275  _In_ HANDLE ProcessHandle,
276  _In_ HANDLE Handle,
277  _In_ KPH_OBJECT_INFORMATION_CLASS ObjectInformationClass,
278  _In_reads_bytes_(ObjectInformationLength) PVOID ObjectInformation,
279  _In_ ULONG ObjectInformationLength
280  );
281 
282 NTSTATUS
283 NTAPI
285  _In_ HANDLE SourceProcessHandle,
286  _In_ HANDLE SourceHandle,
287  _In_opt_ HANDLE TargetProcessHandle,
288  _Out_opt_ PHANDLE TargetHandle,
289  _In_ ACCESS_MASK DesiredAccess,
290  _In_ ULONG HandleAttributes,
291  _In_ ULONG Options
292  );
293 
294 NTSTATUS
295 NTAPI
297  _Out_ PHANDLE DriverHandle,
298  _In_ POBJECT_ATTRIBUTES ObjectAttributes
299  );
300 
301 NTSTATUS
302 NTAPI
304  _In_ HANDLE DriverHandle,
305  _In_ DRIVER_INFORMATION_CLASS DriverInformationClass,
306  _Out_writes_bytes_(DriverInformationLength) PVOID DriverInformation,
307  _In_ ULONG DriverInformationLength,
308  _Out_opt_ PULONG ReturnLength
309  );
310 
311 // kphdata
312 
313 NTSTATUS
314 NTAPI
316  _Out_ PKPH_DYN_PACKAGE Package
317  );
318 
319 #endif