Process Hacker
nttmapi.h
Go to the documentation of this file.
1 #ifndef _NTTMAPI_H
2 #define _NTTMAPI_H
3 
4 #if (PHNT_VERSION >= PHNT_VISTA)
5 NTSYSCALLAPI
6 NTSTATUS
7 NTAPI
9  _Out_ PHANDLE TmHandle,
10  _In_ ACCESS_MASK DesiredAccess,
11  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
12  _In_opt_ PUNICODE_STRING LogFileName,
13  _In_opt_ ULONG CreateOptions,
14  _In_opt_ ULONG CommitStrength
15  );
16 #endif
17 
18 #if (PHNT_VERSION >= PHNT_VISTA)
19 NTSYSCALLAPI
20 NTSTATUS
21 NTAPI
23  _Out_ PHANDLE TmHandle,
24  _In_ ACCESS_MASK DesiredAccess,
25  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
26  _In_opt_ PUNICODE_STRING LogFileName,
27  _In_opt_ LPGUID TmIdentity,
28  _In_opt_ ULONG OpenOptions
29  );
30 #endif
31 
32 #if (PHNT_VERSION >= PHNT_VISTA)
33 NTSYSCALLAPI
34 NTSTATUS
35 NTAPI
37  _In_ PUNICODE_STRING LogFileName,
38  _In_ LPGUID ExistingTransactionManagerGuid
39  );
40 #endif
41 
42 #if (PHNT_VERSION >= PHNT_VISTA)
43 NTSYSCALLAPI
44 NTSTATUS
45 NTAPI
47  _In_ HANDLE TransactionManagerHandle,
48  _In_opt_ PLARGE_INTEGER TmVirtualClock
49  );
50 #endif
51 
52 #if (PHNT_VERSION >= PHNT_VISTA)
53 NTSYSCALLAPI
54 NTSTATUS
55 NTAPI
57  _In_ HANDLE TransactionManagerHandle
58  );
59 #endif
60 
61 #if (PHNT_VERSION >= PHNT_VISTA)
62 NTSYSCALLAPI
63 NTSTATUS
64 NTAPI
66  _In_ HANDLE TransactionManagerHandle,
67  _In_ TRANSACTIONMANAGER_INFORMATION_CLASS TransactionManagerInformationClass,
68  _Out_writes_bytes_(TransactionManagerInformationLength) PVOID TransactionManagerInformation,
69  _In_ ULONG TransactionManagerInformationLength,
70  _Out_opt_ PULONG ReturnLength
71  );
72 #endif
73 
74 #if (PHNT_VERSION >= PHNT_VISTA)
75 NTSYSCALLAPI
76 NTSTATUS
77 NTAPI
79  _In_opt_ HANDLE TmHandle,
80  _In_ TRANSACTIONMANAGER_INFORMATION_CLASS TransactionManagerInformationClass,
81  _In_reads_bytes_(TransactionManagerInformationLength) PVOID TransactionManagerInformation,
82  _In_ ULONG TransactionManagerInformationLength
83  );
84 #endif
85 
86 #if (PHNT_VERSION >= PHNT_VISTA)
87 NTSYSCALLAPI
88 NTSTATUS
89 NTAPI
91  _In_opt_ HANDLE RootObjectHandle,
92  _In_ KTMOBJECT_TYPE QueryType,
93  _Inout_updates_bytes_(ObjectCursorLength) PKTMOBJECT_CURSOR ObjectCursor,
94  _In_ ULONG ObjectCursorLength,
95  _Out_ PULONG ReturnLength
96  );
97 #endif
98 
99 #if (PHNT_VERSION >= PHNT_VISTA)
100 NTSYSCALLAPI
101 NTSTATUS
102 NTAPI
104  _Out_ PHANDLE TransactionHandle,
105  _In_ ACCESS_MASK DesiredAccess,
106  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
107  _In_opt_ LPGUID Uow,
108  _In_opt_ HANDLE TmHandle,
109  _In_opt_ ULONG CreateOptions,
110  _In_opt_ ULONG IsolationLevel,
111  _In_opt_ ULONG IsolationFlags,
112  _In_opt_ PLARGE_INTEGER Timeout,
113  _In_opt_ PUNICODE_STRING Description
114  );
115 #endif
116 
117 #if (PHNT_VERSION >= PHNT_VISTA)
118 NTSYSCALLAPI
119 NTSTATUS
120 NTAPI
122  _Out_ PHANDLE TransactionHandle,
123  _In_ ACCESS_MASK DesiredAccess,
124  _In_ POBJECT_ATTRIBUTES ObjectAttributes,
125  _In_ LPGUID Uow,
126  _In_opt_ HANDLE TmHandle
127  );
128 #endif
129 
130 #if (PHNT_VERSION >= PHNT_VISTA)
131 NTSYSCALLAPI
132 NTSTATUS
133 NTAPI
135  _In_ HANDLE TransactionHandle,
136  _In_ TRANSACTION_INFORMATION_CLASS TransactionInformationClass,
137  _Out_writes_bytes_(TransactionInformationLength) PVOID TransactionInformation,
138  _In_ ULONG TransactionInformationLength,
139  _Out_opt_ PULONG ReturnLength
140  );
141 #endif
142 
143 #if (PHNT_VERSION >= PHNT_VISTA)
144 NTSYSCALLAPI
145 NTSTATUS
146 NTAPI
148  _In_ HANDLE TransactionHandle,
149  _In_ TRANSACTION_INFORMATION_CLASS TransactionInformationClass,
150  _In_reads_bytes_(TransactionInformationLength) PVOID TransactionInformation,
151  _In_ ULONG TransactionInformationLength
152  );
153 #endif
154 
155 #if (PHNT_VERSION >= PHNT_VISTA)
156 NTSYSCALLAPI
157 NTSTATUS
158 NTAPI
160  _In_ HANDLE TransactionHandle,
161  _In_ BOOLEAN Wait
162  );
163 #endif
164 
165 #if (PHNT_VERSION >= PHNT_VISTA)
166 NTSYSCALLAPI
167 NTSTATUS
168 NTAPI
170  _In_ HANDLE TransactionHandle,
171  _In_ BOOLEAN Wait
172  );
173 #endif
174 
175 #if (PHNT_VERSION >= PHNT_VISTA)
176 NTSYSCALLAPI
177 NTSTATUS
178 NTAPI
180  _Out_ PHANDLE EnlistmentHandle,
181  _In_ ACCESS_MASK DesiredAccess,
182  _In_ HANDLE ResourceManagerHandle,
183  _In_ HANDLE TransactionHandle,
184  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
185  _In_opt_ ULONG CreateOptions,
186  _In_ NOTIFICATION_MASK NotificationMask,
187  _In_opt_ PVOID EnlistmentKey
188  );
189 #endif
190 
191 #if (PHNT_VERSION >= PHNT_VISTA)
192 NTSYSCALLAPI
193 NTSTATUS
194 NTAPI
196  _Out_ PHANDLE EnlistmentHandle,
197  _In_ ACCESS_MASK DesiredAccess,
198  _In_ HANDLE ResourceManagerHandle,
199  _In_ LPGUID EnlistmentGuid,
200  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes
201  );
202 #endif
203 
204 #if (PHNT_VERSION >= PHNT_VISTA)
205 NTSYSCALLAPI
206 NTSTATUS
207 NTAPI
209  _In_ HANDLE EnlistmentHandle,
210  _In_ ENLISTMENT_INFORMATION_CLASS EnlistmentInformationClass,
211  _Out_writes_bytes_(EnlistmentInformationLength) PVOID EnlistmentInformation,
212  _In_ ULONG EnlistmentInformationLength,
213  _Out_opt_ PULONG ReturnLength
214  );
215 #endif
216 
217 #if (PHNT_VERSION >= PHNT_VISTA)
218 NTSYSCALLAPI
219 NTSTATUS
220 NTAPI
222  _In_opt_ HANDLE EnlistmentHandle,
223  _In_ ENLISTMENT_INFORMATION_CLASS EnlistmentInformationClass,
224  _In_reads_bytes_(EnlistmentInformationLength) PVOID EnlistmentInformation,
225  _In_ ULONG EnlistmentInformationLength
226  );
227 #endif
228 
229 #if (PHNT_VERSION >= PHNT_VISTA)
230 NTSYSCALLAPI
231 NTSTATUS
232 NTAPI
234  _In_ HANDLE EnlistmentHandle,
235  _In_opt_ PVOID EnlistmentKey
236  );
237 #endif
238 
239 #if (PHNT_VERSION >= PHNT_VISTA)
240 NTSYSCALLAPI
241 NTSTATUS
242 NTAPI
244  _In_ HANDLE EnlistmentHandle,
245  _In_opt_ PLARGE_INTEGER TmVirtualClock
246  );
247 #endif
248 
249 #if (PHNT_VERSION >= PHNT_VISTA)
250 NTSYSCALLAPI
251 NTSTATUS
252 NTAPI
254  _In_ HANDLE EnlistmentHandle,
255  _In_opt_ PLARGE_INTEGER TmVirtualClock
256  );
257 #endif
258 
259 #if (PHNT_VERSION >= PHNT_VISTA)
260 NTSYSCALLAPI
261 NTSTATUS
262 NTAPI
264  _In_ HANDLE EnlistmentHandle,
265  _In_opt_ PLARGE_INTEGER TmVirtualClock
266  );
267 #endif
268 
269 #if (PHNT_VERSION >= PHNT_VISTA)
270 NTSYSCALLAPI
271 NTSTATUS
272 NTAPI
274  _In_ HANDLE EnlistmentHandle,
275  _In_opt_ PLARGE_INTEGER TmVirtualClock
276  );
277 #endif
278 
279 #if (PHNT_VERSION >= PHNT_VISTA)
280 NTSYSCALLAPI
281 NTSTATUS
282 NTAPI
284  _In_ HANDLE EnlistmentHandle,
285  _In_opt_ PLARGE_INTEGER TmVirtualClock
286  );
287 #endif
288 
289 #if (PHNT_VERSION >= PHNT_VISTA)
290 NTSYSCALLAPI
291 NTSTATUS
292 NTAPI
294  _In_ HANDLE EnlistmentHandle,
295  _In_opt_ PLARGE_INTEGER TmVirtualClock
296  );
297 #endif
298 
299 #if (PHNT_VERSION >= PHNT_VISTA)
300 NTSYSCALLAPI
301 NTSTATUS
302 NTAPI
304  _In_ HANDLE EnlistmentHandle,
305  _In_opt_ PLARGE_INTEGER TmVirtualClock
306  );
307 #endif
308 
309 #if (PHNT_VERSION >= PHNT_VISTA)
310 NTSYSCALLAPI
311 NTSTATUS
312 NTAPI
314  _In_ HANDLE EnlistmentHandle,
315  _In_opt_ PLARGE_INTEGER TmVirtualClock
316  );
317 #endif
318 
319 #if (PHNT_VERSION >= PHNT_VISTA)
320 NTSYSCALLAPI
321 NTSTATUS
322 NTAPI
324  _In_ HANDLE EnlistmentHandle,
325  _In_opt_ PLARGE_INTEGER TmVirtualClock
326  );
327 #endif
328 
329 #if (PHNT_VERSION >= PHNT_VISTA)
330 NTSYSCALLAPI
331 NTSTATUS
332 NTAPI
334  _In_ HANDLE EnlistmentHandle,
335  _In_opt_ PLARGE_INTEGER TmVirtualClock
336  );
337 #endif
338 
339 #if (PHNT_VERSION >= PHNT_VISTA)
340 NTSYSCALLAPI
341 NTSTATUS
342 NTAPI
344  _Out_ PHANDLE ResourceManagerHandle,
345  _In_ ACCESS_MASK DesiredAccess,
346  _In_ HANDLE TmHandle,
347  _In_ LPGUID RmGuid,
348  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
349  _In_opt_ ULONG CreateOptions,
350  _In_opt_ PUNICODE_STRING Description
351  );
352 #endif
353 
354 #if (PHNT_VERSION >= PHNT_VISTA)
355 NTSYSCALLAPI
356 NTSTATUS
357 NTAPI
359  _Out_ PHANDLE ResourceManagerHandle,
360  _In_ ACCESS_MASK DesiredAccess,
361  _In_ HANDLE TmHandle,
362  _In_opt_ LPGUID ResourceManagerGuid,
363  _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes
364  );
365 #endif
366 
367 #if (PHNT_VERSION >= PHNT_VISTA)
368 NTSYSCALLAPI
369 NTSTATUS
370 NTAPI
372  _In_ HANDLE ResourceManagerHandle
373  );
374 #endif
375 
376 #if (PHNT_VERSION >= PHNT_VISTA)
377 NTSYSCALLAPI
378 NTSTATUS
379 NTAPI
381  _In_ HANDLE ResourceManagerHandle,
382  _Out_ PTRANSACTION_NOTIFICATION TransactionNotification,
383  _In_ ULONG NotificationLength,
384  _In_opt_ PLARGE_INTEGER Timeout,
385  _Out_opt_ PULONG ReturnLength,
386  _In_ ULONG Asynchronous,
387  _In_opt_ ULONG_PTR AsynchronousContext
388  );
389 #endif
390 
391 #if (PHNT_VERSION >= PHNT_VISTA)
392 NTSYSCALLAPI
393 NTSTATUS
394 NTAPI
396  _In_ HANDLE ResourceManagerHandle,
397  _In_ RESOURCEMANAGER_INFORMATION_CLASS ResourceManagerInformationClass,
398  _Out_writes_bytes_(ResourceManagerInformationLength) PVOID ResourceManagerInformation,
399  _In_ ULONG ResourceManagerInformationLength,
400  _Out_opt_ PULONG ReturnLength
401  );
402 #endif
403 
404 #if (PHNT_VERSION >= PHNT_VISTA)
405 NTSYSCALLAPI
406 NTSTATUS
407 NTAPI
409  _In_ HANDLE ResourceManagerHandle,
410  _In_ RESOURCEMANAGER_INFORMATION_CLASS ResourceManagerInformationClass,
411  _In_reads_bytes_(ResourceManagerInformationLength) PVOID ResourceManagerInformation,
412  _In_ ULONG ResourceManagerInformationLength
413  );
414 #endif
415 
416 #if (PHNT_VERSION >= PHNT_VISTA)
417 NTSYSCALLAPI
418 NTSTATUS
419 NTAPI
421  _In_ HANDLE ResourceManager,
422  _In_ PCRM_PROTOCOL_ID ProtocolId,
423  _In_ ULONG ProtocolInformationSize,
424  _In_ PVOID ProtocolInformation,
425  _In_opt_ ULONG CreateOptions
426  );
427 #endif
428 
429 #if (PHNT_VERSION >= PHNT_VISTA)
430 NTSYSCALLAPI
431 NTSTATUS
432 NTAPI
434  _In_ HANDLE ResourceManagerHandle,
435  _In_ ULONG RequestCookie,
436  _In_ ULONG BufferLength,
437  _In_ PVOID Buffer
438  );
439 #endif
440 
441 #if (PHNT_VERSION >= PHNT_VISTA)
442 NTSYSCALLAPI
443 NTSTATUS
444 NTAPI
446  _In_ HANDLE ResourceManagerHandle,
447  _In_ ULONG RequestCookie,
448  _In_ NTSTATUS PropStatus
449  );
450 #endif
451 
452 #if (PHNT_VERSION >= PHNT_VISTA)
453 // private
454 NTSYSCALLAPI
455 NTSTATUS
456 NTAPI
458  _In_ PLARGE_INTEGER FreezeTimeout,
459  _In_ PLARGE_INTEGER ThawTimeout
460  );
461 #endif
462 
463 #if (PHNT_VERSION >= PHNT_VISTA)
464 // private
465 NTSYSCALLAPI
466 NTSTATUS
467 NTAPI
469  VOID
470  );
471 #endif
472 
473 #endif