-
Notifications
You must be signed in to change notification settings - Fork 43
/
NtTrace.cfg
5442 lines (4892 loc) · 105 KB
/
NtTrace.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// NTDLL Native Interface entry points
// @author Roger Orr <[email protected]>
// Copyright © 2002,2019.
// This software is distributed in the hope that it will be useful, but
// without WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// Permission is granted to anyone to make or distribute verbatim
// copies of this software provided that the copyright notice and
// this permission notice are preserved, and that the distributor
// grants the recipient permission for further distribution as permitted
// by this notice.
// Comments and suggestions are always welcome.
// Please report bugs to [email protected].
// $Id: NtTrace.cfg 2490 2024-12-16 23:56:21Z roger $
// Alternate name for LPC_MESSAGE
using PPORT_MESSAGE = PLPC_MESSAGE;
using PACCESS_MASK = PULONG;
using PCWNF_STATE_NAME = PULONG;
using PDEVICE_POWER_STATE = PULONG;
using PNTSTATUS = PULONG;
using PPROCESSOR_NUMBER = PULONG;
using PWNF_STATE_NAME = PULONG;
using PRTL_ATOM = PUSHORT;
using PALPC_CONTEXT_ATTR = PVOID;
using PALPC_INFO = PVOID;
using PALPC_MESSAGE_ATTRIBUTES = PVOID;
using PALPC_MESSAGE_VIEW = PVOID;
using PALPC_PORT_ATTRIBUTES = PVOID;
using PALPC_SECURITY_ATTR = PVOID;
using PBOOT_ENTRY = PVOID;
using PCONTEXT = PVOID;
using PDRIVER_ENTRY = PVOID;
using PEXCEPTION_RECORD = PVOID;
using PGENERIC_MAPPING = PVOID;
using PGROUP_AFFINITY = PVOID;
using PGUID = PVOID;
using PIO_APC_ROUTINE = PVOID;
using PIO_RING_STRUCTV1 = PVOID;
using PKTMOBJECT_CURSOR = PVOID;
using PLUID = PVOID;
using PNT_IORING_CAPABILITIES = PVOID;
using PNT_IORING_INFO = PVOID;
using POBJECT_TYPE_LIST = PVOID;
using PPLUGPLAY_EVENT_BLOCK = PVOID;
using PPORT_VIEW = PVOID;
using PPRIVILEGE_SET = PVOID;
using PPS_APC_ROUTINE = PVOID;
using PREMOTE_PORT_VIEW = PVOID;
using PSECURITY_ATTRIBUTES = PVOID;
using PSECURITY_DESCRIPTOR = PVOID;
using PSID = PVOID;
using PSID_AND_ATTRIBUTES = PVOID;
using PTIMER_APC_ROUTINE = PVOID;
using PTOKEN_DEFAULT_DACL = PVOID;
using PTOKEN_GROUPS = PVOID;
using PTOKEN_MANDATORY_POLICY = PVOID;
using PTOKEN_OWNER = PVOID;
using PTOKEN_PRIMARY_GROUP = PVOID;
using PTOKEN_PRIVILEGES = PVOID;
using PTOKEN_SECURITY_ATTRIBUTES_INFORMATION = PVOID;
using PTOKEN_SOURCE = PVOID;
using PTOKEN_USER = PVOID;
using PTRANSACTION_NOTIFICATION = PVOID;
using KAFFINITY = ULONG_PTR;
using RTL_ATOM = USHORT;
//[Atom]
NTSTATUS
NTAPI
NtAddAtom(
IN PWSTR AtomName,
IN ULONG AtomNameLength,
OUT PRTL_ATOM Atom
);
//[Atom]
NTSTATUS
NTAPI
NtAddAtomEx(
IN PWSTR AtomName,
IN ULONG AtomNameLength,
OUT PRTL_ATOM Atom,
ULONG Scope
);
//[Atom]
NTSTATUS
NTAPI
NtDeleteAtom(
IN RTL_ATOM Atom
);
//[Atom]
NTSTATUS
NTAPI
NtFindAtom(
IN PWSTR AtomName,
IN ULONG AtomNameLength,
OUT PRTL_ATOM Atom OPTIONAL
);
//[Atom]
NTSTATUS
NTAPI
NtQueryInformationAtom(
IN RTL_ATOM Atom,
IN ATOM_INFORMATION_CLASS AtomInformationClass,
OUT PVOID AtomInformation,
IN ULONG Length,
OUT PULONG ReturnLength OPTIONAL
);
//[Debug]
NTSTATUS
NTAPI
NtCreateProfile(
OUT PHANDLE ProfileHandle,
IN HANDLE Process,
IN PVOID ProfileBase,
IN ULONG ProfileSize,
IN ULONG BucketSize,
IN PULONG Buffer,
IN ULONG BufferSize,
IN KPROFILE_SOURCE ProfileSource,
IN KAFFINITY Affinity
);
//[Debug]
NTSTATUS
NTAPI
NtCreateProfileEx(
__out PHANDLE ProfileHandle,
__in_opt HANDLE Process,
__in PVOID ProfileBase,
__in ULONG ProfileSize,
__in ULONG BucketSize,
__in PULONG Buffer,
__in ULONG BufferSize,
__in ULONG ProfileSource,
__in ULONG GroupAffinityCount,
__in_opt PGROUP_AFFINITY GroupAffinity
);
//[Debug]
NTSTATUS
NTAPI
NtDebugActiveProcess(
IN HANDLE Process,
IN HANDLE DebugHandle
);
//[Debug]
NTSTATUS
NTAPI
NtDebugContinue(
IN HANDLE DebugHandle,
IN PCLIENT_ID ClientId,
IN NTSTATUS Status
);
//[Debug]
NTSTATUS
NTAPI
NtQueryDebugFilterState(
IN ULONG Component,
IN ULONG Level
);
//[Debug]
NTSTATUS
NTAPI
NtQueryIntervalProfile(
IN KPROFILE_SOURCE Source,
OUT PULONG Interval
);
//[Debug]
NTSTATUS
NTAPI
NtQueryPerformanceCounter(
OUT PLARGE_INTEGER Counter,
OUT PLARGE_INTEGER Freq OPTIONAL
);
//[Debug]
NTSTATUS
NTAPI
NtRegisterThreadTerminatePort(
IN HANDLE PortHandle
);
//[Debug]
NTSTATUS
NTAPI
NtRemoveProcessDebug(
IN HANDLE ProcessHandle,
IN HANDLE DebugHandle
);
//[Debug]
NTSTATUS
NTAPI
NtSetDebugFilterState(
IN ULONG Component,
IN ULONG Level,
IN BOOLEAN State
);
//[Debug]
NTSTATUS
NTAPI
NtSetInformationDebugObject(
IN HANDLE DebugHandle,
IN DEBUGOBJECTINFOCLASS Class,
IN PVOID Buffer,
IN ULONG Length,
OUT PULONG ReturnLength OPTIONAL
);
//[Debug]
NTSTATUS
NTAPI
NtSetIntervalProfile(
IN ULONG Interval,
IN KPROFILE_SOURCE Source
);
//[Debug]
NTSTATUS
NTAPI
NtStartProfile(
IN HANDLE ProfileHandle
);
//[Debug]
NTSTATUS
NTAPI
NtStopProfile(
IN HANDLE ProfileHandle
);
//[Debug]
NTSTATUS
NTAPI
NtSystemDebugControl(
IN SYSDBG_COMMAND Command,
IN PVOID InputBuffer,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer,
IN ULONG OutputBufferLength,
OUT PULONG ReturnLength
);
//[Debug]
NTSTATUS
NTAPI
NtTraceControl(
IN ULONG CtrlCode,
IN PVOID InputBuffer,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer,
IN ULONG OutputBufferLength,
OUT PULONG ReturnLength
);
//[Debug]
NTSTATUS
NTAPI
NtWaitForDebugEvent(
IN HANDLE DebugHandle,
IN BOOLEAN Alertable,
IN PLARGE_INTEGER Timeout OPTIONAL,
OUT PULONG Result
);
//[Device]
NTSTATUS
NTAPI
NtAddBootEntry(
IN PUNICODE_STRING Name,
IN PUNICODE_STRING Value
);
//[Device]
NTSTATUS
NTAPI
NtAddDriverEntry(
IN PUNICODE_STRING Name,
IN PUNICODE_STRING Path
);
//[Device]
NTSTATUS
NTAPI
NtCancelDeviceWakeupRequest(
IN HANDLE DeviceHandle
);
//[Device]
NTSTATUS
NTAPI
NtDeleteBootEntry(
IN PUNICODE_STRING Name
);
//[Device]
NTSTATUS
NTAPI
NtDeleteDriverEntry(
IN PUNICODE_STRING Name
);
//[Device]
NTSTATUS
NTAPI
NtDisableLastKnownGood(
);
//[Device]
NTSTATUS
NTAPI
NtEnableLastKnownGood(
);
//[Device]
NTSTATUS
NTAPI
NtEnumerateBootEntries(
IN PVOID Buffer,
IN PULONG BufferLength
);
//[Device]
NTSTATUS
NTAPI
NtEnumerateDriverEntries(
IN PVOID Buffer,
IN PULONG BufferLength
);
//[Device]
NTSTATUS
NTAPI
NtGetDevicePowerState(
IN HANDLE DeviceHandle,
OUT PDEVICE_POWER_STATE State
);
//[Device]
NTSTATUS
NTAPI
NtGetPlugPlayEvent(
__in HANDLE EventHandle,
__in_opt PVOID Context,
__out PPLUGPLAY_EVENT_BLOCK EventBlock,
__in ULONG EventBufferSize
);
//[Device]
NTSTATUS
NTAPI
NtInitiatePowerAction(
IN POWER_ACTION Action,
IN SYSTEM_POWER_STATE State,
IN ULONG Flags,
IN BOOLEAN Asynch
);
//[Device]
NTSTATUS
NTAPI
NtLoadDriver(
IN PUNICODE_STRING DriverName
);
//[Device]
NTSTATUS
NTAPI
NtModifyBootEntry(
IN PBOOT_ENTRY BootEntry
);
//[Device]
NTSTATUS
NTAPI
NtModifyDriverEntry(
IN PDRIVER_ENTRY DriverEntry
);
//[Device]
NTSTATUS
NTAPI
NtPlugPlayControl(
IN ULONG Class,
IN OUT PVOID Buffer,
IN ULONG BufferSize
);
//[Device]
NTSTATUS
NTAPI
NtPowerInformation(
IN POWER_INFORMATION_LEVEL InformationLevel,
IN PVOID InputBuffer OPTIONAL,
IN ULONG InputLength,
OUT PVOID OutputBuffer,
IN ULONG OutputLength
);
//[Device]
NTSTATUS
NTAPI
NtQueryBootEntryOrder(
IN PULONG OrderArray OPTIONAL,
IN OUT PULONG OrderCount
);
//[Device]
NTSTATUS
NTAPI
NtQueryBootOptions(
OUT PVOID Buffer OPTIONAL,
IN OUT PULONG BufferLength
);
//[Device]
NTSTATUS
NTAPI
NtQueryDriverEntryOrder(
OUT PULONG OrderArray OPTIONAL,
IN OUT PULONG OrderCount
);
//[Device]
NTSTATUS
NTAPI
NtReplacePartitionUnit(
__in PUNICODE_STRING TargetInstancePath,
__in PUNICODE_STRING SpareInstancePath,
__in ULONG Flags
);
//[Device]
NTSTATUS
NTAPI
NtRequestDeviceWakeup(
IN HANDLE DeviceHandle
);
//[Device]
NTSTATUS
NTAPI
NtRequestWakeupLatency(
IN ULONG LatencyTime
);
//[Device]
NTSTATUS
NTAPI
NtSerializeBoot(
);
//[Device]
NTSTATUS
NTAPI
NtSetBootEntryOrder(
IN PULONG OrderArray,
IN ULONG OrderCount
);
//[Device]
NTSTATUS
NTAPI
NtSetBootOptions(
IN PVOID Buffer,
IN ULONG BufferLength
);
//[Device]
NTSTATUS
NTAPI
NtSetDriverEntryOrder(
IN PULONG OrderArray,
IN ULONG OrderCount
);
//[Device]
NTSTATUS
NTAPI
NtSetSystemPowerState(
IN POWER_ACTION Action,
IN SYSTEM_POWER_STATE State,
IN ULONG Flags
);
//[Device]
NTSTATUS
NTAPI
NtSetThreadExecutionState(
IN ULONG State,
OUT PULONG PreviousState
);
//[Device]
NTSTATUS
NTAPI
NtUnloadDriver(
IN PUNICODE_STRING DriverName
);
//[Device]
NTSTATUS
NTAPI
NtVdmControl(
IN ULONG ControlCode,
IN PVOID ControlData
);
//[Environment]
NTSTATUS
NTAPI
NtCreateCpuPartition(
ULONG Unknown,
ULONG Unknown,
ULONG Unknown
);
//[Environment]
NTSTATUS
NTAPI
NtEnumerateSystemEnvironmentValuesEx(
IN ULONG Class,
OUT PVOID Buffer,
IN ULONG BufferLength
);
//[Environment]
ULONG
NTAPI
NtGetCurrentProcessorNumber(
);
//[Environment]
NTSTATUS
NTAPI
NtGetCurrentProcessorNumberEx(
__out_opt PULONG ProcNumber
);
//[Environment]
NTSTATUS
NTAPI
NtIsSystemResumeAutomatic(
);
//[Environment]
NTSTATUS
NTAPI
NtOpenCpuPartition(
ULONG Unknown,
ULONG Unknown,
ULONG Unknown
);
//[Environment]
NTSTATUS
NTAPI
NtQueryDefaultLocale(
IN BOOLEAN UserProfile,
OUT PLCID DefaultLocaleId
);
//[Environment]
NTSTATUS
NTAPI
NtQueryDefaultUILanguage(
OUT PULONG LanguageId
);
//[Environment]
NTSTATUS
NTAPI
NtQueryInformationCpuPartition(
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown
);
//[Environment]
NTSTATUS
NTAPI
NtQueryInstallUILanguage(
OUT PULONG LanguageId
);
//[Environment]
NTSTATUS
NTAPI
NtQuerySystemEnvironmentValue(
IN PUNICODE_STRING Name,
OUT PWSTR Value,
IN ULONG Length,
OUT PULONG ReturnLength OPTIONAL
);
//[Environment]
NTSTATUS
NTAPI
NtQuerySystemEnvironmentValueEx(
IN PUNICODE_STRING VariableName,
IN PVOID Guid,
OUT PVOID Buffer,
IN OUT PULONG BufferLength,
IN OUT PULONG Attributes
);
//[Environment]
NTSTATUS
NTAPI
NtQuerySystemInformation(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
OUT PVOID SystemInformation,
IN ULONG Length,
OUT PULONG ReturnLength OPTIONAL
);
//[Environment]
NTSTATUS
NTAPI
NtQuerySystemInformationEx(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
IN PULONG QueryType,
IN ULONG Alignment,
OUT PVOID SystemInformation,
IN ULONG Length,
OUT PULONG ReturnLength OPTIONAL
);
//[Environment]
NTSTATUS
NTAPI
NtSetDefaultLocale(
IN BOOLEAN UserProfile,
IN LCID LocaleId
);
//[Environment]
NTSTATUS
NTAPI
NtSetDefaultUILanguage(
IN ULONG LanguageId
);
//[Environment]
NTSTATUS
NTAPI
NtSetInformationCpuPartition(
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown,
ULONG Unknown
);
//[Environment]
NTSTATUS
NTAPI
NtSetSystemEnvironmentValue(
IN PUNICODE_STRING Name,
IN PUNICODE_STRING Value
);
//[Environment]
NTSTATUS
NTAPI
NtSetSystemEnvironmentValueEx(
IN PUNICODE_STRING Name,
IN PVOID Guid,
IN PVOID Buffer,
IN ULONG BufferLength,
IN ULONG Attributes
);
//[Environment]
NTSTATUS
NTAPI
NtSetSystemInformation(
IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
IN PVOID SystemInformation,
IN ULONG Length
);
//[Environment]
ULONG
NTAPI
NtWow64GetCurrentProcessorNumber(
);
ULONG
NTAPI
NtWow64GetCurrentProcessorNumberEx(
__out PPROCESSOR_NUMBER ProcNumber
);
//[File]
NTSTATUS
NTAPI
NtAreMappedFilesTheSame(
IN PVOID Address1,
IN PVOID Address2
);
//[File]
NTSTATUS
NTAPI
NtAssociateWaitCompletionPacket(
__in HANDLE WaitCompletionPacketHandle,
__in HANDLE IoCompletionHandle,
__in HANDLE TargetObjectHandle,
__in_opt PVOID KeyContext,
__in_opt PVOID ApcContext,
__in NTSTATUS IoStatus,
__in ULONG_PTR IoStatusInformation,
__out_opt PBOOLEAN AlreadySignaled
);
//[File]
NTSTATUS
NTAPI
NtCancelIoFile(
IN HANDLE FileHandle,
OUT PIO_STATUS_BLOCK IoStatusBlock
);
//[File]
NTSTATUS
NTAPI
NtCancelIoFileEx(
IN HANDLE hFile,
IN PIO_STATUS_BLOCK IoStatusBlockIn,
OUT PIO_STATUS_BLOCK IoStatusBlock
);
//[File]
NTSTATUS
NTAPI
NtCancelSynchronousIoFile(
IN HANDLE ThreadHandle,
IN PIO_STATUS_BLOCK IoStatusBlockIn OPTIONAL,
OUT PIO_STATUS_BLOCK IoStatusBlock
);
//[File]
NTSTATUS
NTAPI
NtCancelWaitCompletionPacket(
__in HANDLE CompletionHandle,
__in BOOLEAN Flag
);
//[File]
NTSTATUS
NTAPI
NtClose(
IN HANDLE Handle
);
//[File]
NTSTATUS
NTAPI
NtCopyFileChunk(
__in HANDLE SourceHandle,
__in HANDLE DestHandle,
__in_opt HANDLE EventHandle,
__out PIO_STATUS_BLOCK PioStatusBlock,
__in ULONG Length,
__in PLARGE_INTEGER SourceOffset,
__in PLARGE_INTEGER DestOffset,
__in_opt PVOID SourceKey,
__in_opt PVOID DestKey,
__in ULONG Flags
);
//[File]
NTSTATUS
NTAPI
NtCreateFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN PLARGE_INTEGER AllocationSize OPTIONAL,
IN ULONG FileAttributes,
IN ULONG ShareAccess,
IN ULONG CreateDisposition,
IN ULONG CreateOptions,
IN PVOID EaBuffer OPTIONAL,
IN ULONG EaLength
);
//[File]
NTSTATUS
NTAPI
NtCreateIoCompletion(
OUT PHANDLE IoHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
IN ULONG NumberOfConcurrentThreads
);
//[File]
NTSTATUS
NTAPI
NtCreateMailslotFile(
OUT PHANDLE Handle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG CreateOptions,
IN ULONG InBufferSize,
IN ULONG MaxMessageSize,
IN PLARGE_INTEGER ReadTimeout OPTIONAL
);
//[File]
NTSTATUS
NTAPI
NtCreateNamedPipeFile(
OUT PHANDLE NamedPipeHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG CreateDisposition,
IN ULONG CreateOptions,
IN BOOLEAN MessageType,
IN BOOLEAN MessageRead,
IN BOOLEAN NonBlocking,
IN ULONG MaxInstances,
IN ULONG InBufferSize,
IN ULONG OutBufferSize,
IN PLARGE_INTEGER Timeout OPTIONAL
);
//[File]
NTSTATUS
NTAPI
NtCreatePagingFile(
IN PUNICODE_STRING PageFileName,
IN PLARGE_INTEGER MinSize,
IN PLARGE_INTEGER MaxSize,
OUT PLARGE_INTEGER ActualSize OPTIONAL
);
//[File]
NTSTATUS
NTAPI
NtCreateWaitCompletionPacket(
__out PHANDLE WaitCompletionPacketHandle,
__in ACCESS_MASK DesiredAccess,
__in_opt POBJECT_ATTRIBUTES ObjectAttributes
);
//[File]
NTSTATUS
NTAPI
NtDeleteFile(
IN POBJECT_ATTRIBUTES ObjectAttributes
);
//[File]
NTSTATUS
NTAPI
NtDeviceIoControlFile(
IN HANDLE FileHandle,
IN HANDLE Event,
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
IN PVOID ApcContext OPTIONAL,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG IoControlCode,
IN PVOID InputBuffer,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer,
IN ULONG OutputBufferLength
);
//[File]
NTSTATUS
NTAPI
NtFlushBuffersFile(
IN HANDLE FileHandle,
OUT PIO_STATUS_BLOCK IoStatusBlock
);
//[File]
NTSTATUS
NTAPI
NtFlushBuffersFileEx(
IN HANDLE FileHandle,
IN ULONG Flags,
IN PVOID Parameters,
IN ULONG ParametersSize,
OUT PIO_STATUS_BLOCK IoStatusBlock
);
//[File]
NTSTATUS
NTAPI
NtFsControlFile(
IN HANDLE FileHandle,
IN HANDLE Event,
IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
IN PVOID UserApcContext OPTIONAL,
OUT PIO_STATUS_BLOCK UserIoStatus,
IN ULONG FsControlCode,
IN PVOID InputBuffer OPTIONAL,
IN ULONG InputBufferLength OPTIONAL,
OUT PVOID OutputBuffer OPTIONAL,
IN ULONG OutputBufferLength OPTIONAL
);
//[File]
NTSTATUS
NTAPI
NtLockFile(
IN HANDLE FileHandle,
IN HANDLE Event,
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
IN PVOID ApcContext OPTIONAL,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN PLARGE_INTEGER Offset,
IN PLARGE_INTEGER Length,
IN ULONG Key,
IN BOOLEAN FailImmediately,
IN BOOLEAN ExclusiveLock
);
//[File]
NTSTATUS
NTAPI
NtNotifyChangeDirectoryFile(
IN HANDLE DirectoryHandle,
IN HANDLE EventHandle,
IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
IN PVOID ApcContext OPTIONAL,
OUT PIO_STATUS_BLOCK IoStatusBlock,
OUT PVOID Buffer,
IN ULONG BufferLength,
IN ULONG CompletionFilter,
IN BOOLEAN Recursive
);
//[File]
NTSTATUS
NTAPI
NtNotifyChangeDirectoryFileEx(
_In_ HANDLE FileHandle,
_In_opt_ HANDLE Event,
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
_In_opt_ PVOID ApcContext,
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
_Out_ PVOID Buffer,
_In_ ULONG Length,
_In_ ULONG CompletionFilter,
_In_ BOOLEAN WatchTree,
_In_opt_ DIRECTORY_NOTIFY_INFORMATION_CLASS DirectoryNotifyInformationClass
);
//[File]
NTSTATUS
NTAPI
NtOpenFile(
OUT PHANDLE FileHandle,
IN ACCESS_MASK DesiredAccess,
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PIO_STATUS_BLOCK IoStatusBlock,
IN ULONG ShareAccess,
IN ULONG OpenOptions
);
//[File]
NTSTATUS
NTAPI
NtOpenIoCompletion(
OUT PHANDLE Handle,