fixed a typo in the NtAccessCheck declaration
[reactos.git] / reactos / include / ndk / zwfuncs.h
1 /*
2 * PROJECT: ReactOS Native Headers
3 * FILE: include/ndk/zwfuncs.h
4 * PURPOSE: Defintions for Native Functions not defined in DDK/IFS
5 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
6 * UPDATE HISTORY:
7 * Created 06/10/04
8 */
9 #ifndef _ZWFUNCS_H
10 #define _ZWFUNCS_H
11
12 /* DEPENDENCIES **************************************************************/
13 #define _WMIKM_
14 #include <evntrace.h>
15
16 /* FUNCTION TYPES ************************************************************/
17
18 /* PROTOTYPES ****************************************************************/
19
20 NTSTATUS
21 NTAPI
22 NtAcceptConnectPort(
23 PHANDLE PortHandle,
24 PVOID PortContext OPTIONAL,
25 PPORT_MESSAGE ConnectionRequest,
26 BOOLEAN AcceptConnection,
27 PPORT_VIEW ServerView OPTIONAL,
28 PREMOTE_PORT_VIEW ClientView OPTIONAL
29 );
30
31 NTSYSAPI
32 NTSTATUS
33 NTAPI
34 ZwAcceptConnectPort(
35 PHANDLE PortHandle,
36 PVOID PortContext OPTIONAL,
37 PPORT_MESSAGE ConnectionRequest,
38 BOOLEAN AcceptConnection,
39 PPORT_VIEW ServerView OPTIONAL,
40 PREMOTE_PORT_VIEW ClientView OPTIONAL
41 );
42
43 NTSTATUS
44 NTAPI
45 NtAccessCheck(
46 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
47 IN HANDLE ClientToken,
48 IN ACCESS_MASK DesiredAccess,
49 IN PGENERIC_MAPPING GenericMapping,
50 OUT PPRIVILEGE_SET PrivilegeSet,
51 OUT PULONG ReturnLength,
52 OUT PACCESS_MASK GrantedAccess,
53 OUT PNTSTATUS AccessStatus
54 );
55
56 NTSYSAPI
57 NTSTATUS
58 NTAPI
59 ZwAccessCheck(
60 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
61 IN HANDLE ClientToken,
62 IN ACCESS_MASK DesiredAccess,
63 IN PGENERIC_MAPPING GenericMapping,
64 OUT PPRIVILEGE_SET PrivilegeSet,
65 OUT PULONG ReturnLength,
66 OUT PACCESS_MASK GrantedAccess,
67 OUT PNTSTATUS AccessStatus
68 );
69
70 NTSYSCALLAPI
71 NTSTATUS
72 NTAPI
73 NtAccessCheckAndAuditAlarm(
74 IN PUNICODE_STRING SubsystemName,
75 IN PVOID HandleId,
76 IN PUNICODE_STRING ObjectTypeName,
77 IN PUNICODE_STRING ObjectName,
78 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
79 IN ACCESS_MASK DesiredAccess,
80 IN PGENERIC_MAPPING GenericMapping,
81 IN BOOLEAN ObjectCreation,
82 OUT PACCESS_MASK GrantedAccess,
83 OUT PNTSTATUS AccessStatus,
84 OUT PBOOLEAN GenerateOnClose
85 );
86
87 NTSTATUS
88 NTAPI
89 NtAddAtom(
90 IN PWSTR AtomName,
91 IN ULONG AtomNameLength,
92 IN OUT PRTL_ATOM Atom
93 );
94
95 NTSYSAPI
96 NTSTATUS
97 NTAPI
98 ZwAddAtom(
99 IN PWSTR AtomName,
100 IN ULONG AtomNameLength,
101 IN OUT PRTL_ATOM Atom
102 );
103
104 NTSTATUS
105 NTAPI
106 NtAddBootEntry(
107 IN PUNICODE_STRING EntryName,
108 IN PUNICODE_STRING EntryValue
109 );
110
111 NTSYSAPI
112 NTSTATUS
113 NTAPI
114 ZwAddBootEntry(
115 IN PUNICODE_STRING EntryName,
116 IN PUNICODE_STRING EntryValue
117 );
118
119 NTSYSCALLAPI
120 NTSTATUS
121 NTAPI
122 NtAdjustGroupsToken(
123 IN HANDLE TokenHandle,
124 IN BOOLEAN ResetToDefault,
125 IN PTOKEN_GROUPS NewState,
126 IN ULONG BufferLength,
127 OUT PTOKEN_GROUPS PreviousState OPTIONAL,
128 OUT PULONG ReturnLength
129 );
130
131 NTSYSAPI
132 NTSTATUS
133 NTAPI
134 ZwAdjustGroupsToken(
135 IN HANDLE TokenHandle,
136 IN BOOLEAN ResetToDefault,
137 IN PTOKEN_GROUPS NewState,
138 IN ULONG BufferLength,
139 OUT PTOKEN_GROUPS PreviousState,
140 OUT PULONG ReturnLength
141 );
142
143 NTSYSCALLAPI
144 NTSTATUS
145 NTAPI
146 NtAdjustPrivilegesToken(
147 IN HANDLE TokenHandle,
148 IN BOOLEAN DisableAllPrivileges,
149 IN PTOKEN_PRIVILEGES NewState,
150 IN ULONG BufferLength,
151 OUT PTOKEN_PRIVILEGES PreviousState,
152 OUT PULONG ReturnLength
153 );
154
155 NTSYSAPI
156 NTSTATUS
157 NTAPI
158 ZwAdjustPrivilegesToken(
159 IN HANDLE TokenHandle,
160 IN BOOLEAN DisableAllPrivileges,
161 IN PTOKEN_PRIVILEGES NewState,
162 IN ULONG BufferLength,
163 OUT PTOKEN_PRIVILEGES PreviousState,
164 OUT PULONG ReturnLength
165 );
166
167 NTSTATUS
168 NTAPI
169 NtAlertResumeThread(
170 IN HANDLE ThreadHandle,
171 OUT PULONG SuspendCount
172 );
173
174 NTSYSAPI
175 NTSTATUS
176 NTAPI
177 ZwAlertResumeThread(
178 IN HANDLE ThreadHandle,
179 OUT PULONG SuspendCount
180 );
181
182 NTSTATUS
183 NTAPI
184 NtAlertThread(
185 IN HANDLE ThreadHandle
186 );
187
188 NTSYSAPI
189 NTSTATUS
190 NTAPI
191 ZwAlertThread(
192 IN HANDLE ThreadHandle
193 );
194
195 NTSTATUS
196 NTAPI
197 NtAllocateLocallyUniqueId(
198 OUT LUID *LocallyUniqueId
199 );
200
201 NTSYSAPI
202 NTSTATUS
203 NTAPI
204 ZwAllocateLocallyUniqueId(
205 OUT PLUID Luid
206 );
207
208 NTSTATUS
209 NTAPI
210 NtAllocateUuids(
211 PULARGE_INTEGER Time,
212 PULONG Range,
213 PULONG Sequence,
214 PUCHAR Seed
215 );
216
217 NTSYSAPI
218 NTSTATUS
219 NTAPI
220 ZwAllocateUuids(
221 PULARGE_INTEGER Time,
222 PULONG Range,
223 PULONG Sequence,
224 PUCHAR Seed
225 );
226
227 NTSYSCALLAPI
228 NTSTATUS
229 NTAPI
230 NtAllocateVirtualMemory(
231 IN HANDLE ProcessHandle,
232 IN OUT PVOID *BaseAddress,
233 IN ULONG ZeroBits,
234 IN OUT PULONG RegionSize,
235 IN ULONG AllocationType,
236 IN ULONG Protect
237 );
238
239 NTSYSAPI
240 NTSTATUS
241 NTAPI
242 ZwAllocateVirtualMemory(
243 IN HANDLE ProcessHandle,
244 IN OUT PVOID *BaseAddress,
245 IN ULONG ZeroBits,
246 IN OUT PULONG RegionSize,
247 IN ULONG AllocationType,
248 IN ULONG Protect
249 );
250
251 NTSTATUS
252 NTAPI
253 NtAssignProcessToJobObject(
254 HANDLE JobHandle,
255 HANDLE ProcessHandle
256 );
257
258 NTSYSAPI
259 NTSTATUS
260 NTAPI
261 ZwAssignProcessToJobObject(
262 HANDLE JobHandle,
263 HANDLE ProcessHandle
264 );
265
266 NTSTATUS
267 NTAPI
268 NtCallbackReturn(
269 PVOID Result,
270 ULONG ResultLength,
271 NTSTATUS Status
272 );
273
274 NTSYSAPI
275 NTSTATUS
276 NTAPI
277 ZwCallbackReturn(
278 PVOID Result,
279 ULONG ResultLength,
280 NTSTATUS Status
281 );
282
283 NTSTATUS
284 NTAPI
285 NtCancelIoFile(
286 IN HANDLE FileHandle,
287 OUT PIO_STATUS_BLOCK IoStatusBlock
288 );
289
290 NTSYSAPI
291 NTSTATUS
292 NTAPI
293 ZwCancelIoFile(
294 IN HANDLE FileHandle,
295 OUT PIO_STATUS_BLOCK IoStatusBlock
296 );
297
298 NTSTATUS
299 NTAPI
300 NtCancelTimer(
301 IN HANDLE TimerHandle,
302 OUT PBOOLEAN CurrentState OPTIONAL
303 );
304
305 NTSTATUS
306 NTAPI
307 NtClearEvent(
308 IN HANDLE EventHandle
309 );
310
311 NTSYSAPI
312 NTSTATUS
313 NTAPI
314 ZwClearEvent(
315 IN HANDLE EventHandle
316 );
317
318 NTSYSCALLAPI
319 NTSTATUS
320 NTAPI
321 NtCreateDebugObject(
322 OUT PHANDLE DebugHandle,
323 IN ACCESS_MASK DesiredAccess,
324 IN POBJECT_ATTRIBUTES ObjectAttributes,
325 IN BOOLEAN KillProcessOnExit
326 );
327
328 NTSYSAPI
329 NTSTATUS
330 NTAPI
331 ZwCreateDebugObject(
332 OUT PHANDLE DebugHandle,
333 IN ACCESS_MASK DesiredAccess,
334 IN POBJECT_ATTRIBUTES ObjectAttributes,
335 IN BOOLEAN KillProcessOnExit
336 );
337
338 NTSTATUS
339 NTAPI
340 NtCreateJobObject(
341 PHANDLE JobHandle,
342 ACCESS_MASK DesiredAccess,
343 POBJECT_ATTRIBUTES ObjectAttributes
344 );
345
346 NTSYSAPI
347 NTSTATUS
348 NTAPI
349 ZwCreateJobObject(
350 PHANDLE JobHandle,
351 ACCESS_MASK DesiredAccess,
352 POBJECT_ATTRIBUTES ObjectAttributes
353 );
354
355 NTSYSCALLAPI
356 NTSTATUS
357 NTAPI
358 NtClose(
359 IN HANDLE Handle
360 );
361
362 NTSYSAPI
363 NTSTATUS
364 NTAPI
365 ZwClose(
366 IN HANDLE Handle
367 );
368
369 NTSYSCALLAPI
370 NTSTATUS
371 NTAPI
372 NtCloseObjectAuditAlarm(
373 IN PUNICODE_STRING SubsystemName,
374 IN PVOID HandleId,
375 IN BOOLEAN GenerateOnClose
376 );
377
378 NTSYSAPI
379 NTSTATUS
380 NTAPI
381 ZwCloseObjectAuditAlarm(
382 IN PUNICODE_STRING SubsystemName,
383 IN PVOID HandleId,
384 IN BOOLEAN GenerateOnClose
385 );
386
387 NTSTATUS
388 NTAPI
389 NtCompleteConnectPort(
390 HANDLE PortHandle
391 );
392
393 NTSYSAPI
394 NTSTATUS
395 NTAPI
396 ZwCompleteConnectPort(
397 HANDLE PortHandle
398 );
399
400 NTSYSCALLAPI
401 NTSTATUS
402 NTAPI
403 NtConnectPort(
404 PHANDLE PortHandle,
405 PUNICODE_STRING PortName,
406 PSECURITY_QUALITY_OF_SERVICE SecurityQos,
407 PPORT_VIEW ClientView OPTIONAL,
408 PREMOTE_PORT_VIEW ServerView OPTIONAL,
409 PULONG MaxMessageLength OPTIONAL,
410 PVOID ConnectionInformation OPTIONAL,
411 PULONG ConnectionInformationLength OPTIONAL
412 );
413
414 NTSYSAPI
415 NTSTATUS
416 NTAPI
417 ZwConnectPort(
418 PHANDLE PortHandle,
419 PUNICODE_STRING PortName,
420 PSECURITY_QUALITY_OF_SERVICE SecurityQos,
421 PPORT_VIEW ClientView OPTIONAL,
422 PREMOTE_PORT_VIEW ServerView OPTIONAL,
423 PULONG MaxMessageLength OPTIONAL,
424 PVOID ConnectionInformation OPTIONAL,
425 PULONG ConnectionInformationLength OPTIONAL
426 );
427
428 NTSTATUS
429 NTAPI
430 NtContinue(
431 IN PCONTEXT Context,
432 IN BOOLEAN TestAlert
433 );
434
435 NTSYSAPI
436 NTSTATUS
437 NTAPI
438 ZwContinue(
439 IN PCONTEXT Context,
440 IN BOOLEAN TestAlert
441 );
442
443 NTSTATUS
444 NTAPI
445 NtCreateDirectoryObject(
446 OUT PHANDLE DirectoryHandle,
447 IN ACCESS_MASK DesiredAccess,
448 IN POBJECT_ATTRIBUTES ObjectAttributes
449 );
450
451 NTSYSAPI
452 NTSTATUS
453 NTAPI
454 ZwCreateDirectoryObject(
455 OUT PHANDLE DirectoryHandle,
456 IN ACCESS_MASK DesiredAccess,
457 IN POBJECT_ATTRIBUTES ObjectAttributes
458 );
459
460 NTSTATUS
461 NTAPI
462 NtCreateEvent(
463 OUT PHANDLE EventHandle,
464 IN ACCESS_MASK DesiredAccess,
465 IN POBJECT_ATTRIBUTES ObjectAttributes,
466 IN EVENT_TYPE EventType,
467 IN BOOLEAN InitialState
468 );
469
470 NTSYSAPI
471 NTSTATUS
472 NTAPI
473 ZwCreateEvent(
474 OUT PHANDLE EventHandle,
475 IN ACCESS_MASK DesiredAccess,
476 IN POBJECT_ATTRIBUTES ObjectAttributes,
477 IN EVENT_TYPE EventType,
478 IN BOOLEAN InitialState
479 );
480
481 NTSTATUS
482 NTAPI
483 NtCreateEventPair(
484 OUT PHANDLE EventPairHandle,
485 IN ACCESS_MASK DesiredAccess,
486 IN POBJECT_ATTRIBUTES ObjectAttributes
487 );
488
489 NTSYSAPI
490 NTSTATUS
491 NTAPI
492 ZwCreateEventPair(
493 OUT PHANDLE EventPairHandle,
494 IN ACCESS_MASK DesiredAccess,
495 IN POBJECT_ATTRIBUTES ObjectAttributes
496 );
497
498 NTSYSCALLAPI
499 NTSTATUS
500 NTAPI
501 NtCreateFile(
502 OUT PHANDLE FileHandle,
503 IN ACCESS_MASK DesiredAccess,
504 IN POBJECT_ATTRIBUTES ObjectAttributes,
505 OUT PIO_STATUS_BLOCK IoStatusBlock,
506 IN PLARGE_INTEGER AllocationSize OPTIONAL,
507 IN ULONG FileAttributes,
508 IN ULONG ShareAccess,
509 IN ULONG CreateDisposition,
510 IN ULONG CreateOptions,
511 IN PVOID EaBuffer OPTIONAL,
512 IN ULONG EaLength
513 );
514
515 NTSYSAPI
516 NTSTATUS
517 NTAPI
518 ZwCreateFile(
519 OUT PHANDLE FileHandle,
520 IN ACCESS_MASK DesiredAccess,
521 IN POBJECT_ATTRIBUTES ObjectAttributes,
522 OUT PIO_STATUS_BLOCK IoStatusBlock,
523 IN PLARGE_INTEGER AllocationSize OPTIONAL,
524 IN ULONG FileAttributes,
525 IN ULONG ShareAccess,
526 IN ULONG CreateDisposition,
527 IN ULONG CreateOptions,
528 IN PVOID EaBuffer OPTIONAL,
529 IN ULONG EaLength
530 );
531
532 NTSTATUS
533 NTAPI
534 NtCreateIoCompletion(
535 OUT PHANDLE IoCompletionHandle,
536 IN ACCESS_MASK DesiredAccess,
537 IN POBJECT_ATTRIBUTES ObjectAttributes,
538 IN ULONG NumberOfConcurrentThreads
539 );
540
541 NTSYSAPI
542 NTSTATUS
543 NTAPI
544 ZwCreateIoCompletion(
545 OUT PHANDLE IoCompletionHandle,
546 IN ACCESS_MASK DesiredAccess,
547 IN POBJECT_ATTRIBUTES ObjectAttributes,
548 IN ULONG NumberOfConcurrentThreads
549 );
550
551 NTSTATUS
552 NTAPI
553 NtCreateKey(
554 OUT PHANDLE KeyHandle,
555 IN ACCESS_MASK DesiredAccess,
556 IN POBJECT_ATTRIBUTES ObjectAttributes,
557 IN ULONG TitleIndex,
558 IN PUNICODE_STRING Class OPTIONAL,
559 IN ULONG CreateOptions,
560 IN PULONG Disposition OPTIONAL
561 );
562
563 NTSYSAPI
564 NTSTATUS
565 NTAPI
566 ZwCreateKey(
567 OUT PHANDLE KeyHandle,
568 IN ACCESS_MASK DesiredAccess,
569 IN POBJECT_ATTRIBUTES ObjectAttributes,
570 IN ULONG TitleIndex,
571 IN PUNICODE_STRING Class OPTIONAL,
572 IN ULONG CreateOptions,
573 IN PULONG Disposition OPTIONAL
574 );
575
576 NTSTATUS
577 NTAPI
578 NtCreateMailslotFile(
579 OUT PHANDLE MailSlotFileHandle,
580 IN ACCESS_MASK DesiredAccess,
581 IN POBJECT_ATTRIBUTES ObjectAttributes,
582 OUT PIO_STATUS_BLOCK IoStatusBlock,
583 IN ULONG FileAttributes,
584 IN ULONG ShareAccess,
585 IN ULONG MaxMessageSize,
586 IN PLARGE_INTEGER TimeOut
587 );
588
589 NTSYSAPI
590 NTSTATUS
591 NTAPI
592 ZwCreateMailslotFile(
593 OUT PHANDLE MailSlotFileHandle,
594 IN ACCESS_MASK DesiredAccess,
595 IN POBJECT_ATTRIBUTES ObjectAttributes,
596 OUT PIO_STATUS_BLOCK IoStatusBlock,
597 IN ULONG FileAttributes,
598 IN ULONG ShareAccess,
599 IN ULONG MaxMessageSize,
600 IN PLARGE_INTEGER TimeOut
601 );
602
603 NTSTATUS
604 NTAPI
605 NtCreateMutant(
606 OUT PHANDLE MutantHandle,
607 IN ACCESS_MASK DesiredAccess,
608 IN POBJECT_ATTRIBUTES ObjectAttributes,
609 IN BOOLEAN InitialOwner
610 );
611
612 NTSYSAPI
613 NTSTATUS
614 NTAPI
615 ZwCreateMutant(
616 OUT PHANDLE MutantHandle,
617 IN ACCESS_MASK DesiredAccess,
618 IN POBJECT_ATTRIBUTES ObjectAttributes,
619 IN BOOLEAN InitialOwner
620 );
621
622 NTSTATUS
623 NTAPI
624 NtCreateNamedPipeFile(
625 OUT PHANDLE NamedPipeFileHandle,
626 IN ACCESS_MASK DesiredAccess,
627 IN POBJECT_ATTRIBUTES ObjectAttributes,
628 OUT PIO_STATUS_BLOCK IoStatusBlock,
629 IN ULONG ShareAccess,
630 IN ULONG CreateDisposition,
631 IN ULONG CreateOptions,
632 IN ULONG WriteModeMessage,
633 IN ULONG ReadModeMessage,
634 IN ULONG NonBlocking,
635 IN ULONG MaxInstances,
636 IN ULONG InBufferSize,
637 IN ULONG OutBufferSize,
638 IN PLARGE_INTEGER DefaultTimeOut
639 );
640
641 NTSYSAPI
642 NTSTATUS
643 NTAPI
644 ZwCreateNamedPipeFile(
645 OUT PHANDLE NamedPipeFileHandle,
646 IN ACCESS_MASK DesiredAccess,
647 IN POBJECT_ATTRIBUTES ObjectAttributes,
648 OUT PIO_STATUS_BLOCK IoStatusBlock,
649 IN ULONG ShareAccess,
650 IN ULONG CreateDisposition,
651 IN ULONG CreateOptions,
652 IN ULONG WriteModeMessage,
653 IN ULONG ReadModeMessage,
654 IN ULONG NonBlocking,
655 IN ULONG MaxInstances,
656 IN ULONG InBufferSize,
657 IN ULONG OutBufferSize,
658 IN PLARGE_INTEGER DefaultTimeOut
659 );
660
661 NTSTATUS
662 NTAPI
663 NtCreatePagingFile(
664 IN PUNICODE_STRING FileName,
665 IN PLARGE_INTEGER InitialSize,
666 IN PLARGE_INTEGER MaxiumSize,
667 IN ULONG Reserved
668 );
669
670 NTSYSAPI
671 NTSTATUS
672 NTAPI
673 ZwCreatePagingFile(
674 IN PUNICODE_STRING FileName,
675 IN PLARGE_INTEGER InitialSize,
676 IN PLARGE_INTEGER MaxiumSize,
677 IN ULONG Reserved
678 );
679
680 NTSTATUS
681 NTAPI
682 NtCreatePort(
683 PHANDLE PortHandle,
684 POBJECT_ATTRIBUTES ObjectAttributes,
685 ULONG MaxConnectionInfoLength,
686 ULONG MaxMessageLength,
687 ULONG MaxPoolUsage
688 );
689
690 NTSYSAPI
691 NTSTATUS
692 NTAPI
693 ZwCreatePort(
694 PHANDLE PortHandle,
695 POBJECT_ATTRIBUTES ObjectAttributes,
696 ULONG MaxConnectionInfoLength,
697 ULONG MaxMessageLength,
698 ULONG MaxPoolUsage
699 );
700
701 NTSTATUS
702 NTAPI
703 NtCreateProcess(
704 OUT PHANDLE ProcessHandle,
705 IN ACCESS_MASK DesiredAccess,
706 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
707 IN HANDLE ParentProcess,
708 IN BOOLEAN InheritObjectTable,
709 IN HANDLE SectionHandle OPTIONAL,
710 IN HANDLE DebugPort OPTIONAL,
711 IN HANDLE ExceptionPort OPTIONAL
712 );
713
714 NTSYSAPI
715 NTSTATUS
716 NTAPI
717 ZwCreateProcess(
718 OUT PHANDLE ProcessHandle,
719 IN ACCESS_MASK DesiredAccess,
720 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
721 IN HANDLE ParentProcess,
722 IN BOOLEAN InheritObjectTable,
723 IN HANDLE SectionHandle OPTIONAL,
724 IN HANDLE DebugPort OPTIONAL,
725 IN HANDLE ExceptionPort OPTIONAL
726 );
727
728 NTSTATUS
729 NTAPI
730 NtCreateProfile(
731 OUT PHANDLE ProfileHandle,
732 IN HANDLE ProcessHandle,
733 IN PVOID ImageBase,
734 IN ULONG ImageSize,
735 IN ULONG Granularity,
736 OUT PVOID Buffer,
737 IN ULONG ProfilingSize,
738 IN KPROFILE_SOURCE Source,
739 IN KAFFINITY ProcessorMask
740 );
741
742 NTSYSAPI
743 NTSTATUS
744 NTAPI
745 ZwCreateProfile(
746 OUT PHANDLE ProfileHandle,
747 IN POBJECT_ATTRIBUTES ObjectAttributes,
748 IN ULONG ImageBase,
749 IN ULONG ImageSize,
750 IN ULONG Granularity,
751 OUT PVOID Buffer,
752 IN ULONG ProfilingSize,
753 IN ULONG ClockSource,
754 IN ULONG ProcessorMask
755 );
756
757 NTSYSCALLAPI
758 NTSTATUS
759 NTAPI
760 NtCreateSection(
761 OUT PHANDLE SectionHandle,
762 IN ACCESS_MASK DesiredAccess,
763 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
764 IN PLARGE_INTEGER MaximumSize OPTIONAL,
765 IN ULONG SectionPageProtection OPTIONAL,
766 IN ULONG AllocationAttributes,
767 IN HANDLE FileHandle OPTIONAL
768 );
769
770 NTSYSAPI
771 NTSTATUS
772 NTAPI
773 ZwCreateSection(
774 OUT PHANDLE SectionHandle,
775 IN ACCESS_MASK DesiredAccess,
776 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
777 IN PLARGE_INTEGER MaximumSize OPTIONAL,
778 IN ULONG SectionPageProtection OPTIONAL,
779 IN ULONG AllocationAttributes,
780 IN HANDLE FileHandle OPTIONAL
781 );
782
783 NTSTATUS
784 NTAPI
785 NtCreateSemaphore(
786 OUT PHANDLE SemaphoreHandle,
787 IN ACCESS_MASK DesiredAccess,
788 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
789 IN LONG InitialCount,
790 IN LONG MaximumCount
791 );
792
793 NTSYSAPI
794 NTSTATUS
795 NTAPI
796 ZwCreateSemaphore(
797 OUT PHANDLE SemaphoreHandle,
798 IN ACCESS_MASK DesiredAccess,
799 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
800 IN LONG InitialCount,
801 IN LONG MaximumCount
802 );
803
804 NTSTATUS
805 NTAPI
806 NtCreateSymbolicLinkObject(
807 OUT PHANDLE SymbolicLinkHandle,
808 IN ACCESS_MASK DesiredAccess,
809 IN POBJECT_ATTRIBUTES ObjectAttributes,
810 IN PUNICODE_STRING Name
811 );
812
813 NTSYSAPI
814 NTSTATUS
815 NTAPI
816 ZwCreateSymbolicLinkObject(
817 OUT PHANDLE SymbolicLinkHandle,
818 IN ACCESS_MASK DesiredAccess,
819 IN POBJECT_ATTRIBUTES ObjectAttributes,
820 IN PUNICODE_STRING Name
821 );
822
823 NTSTATUS
824 NTAPI
825 NtCreateThread(
826 OUT PHANDLE ThreadHandle,
827 IN ACCESS_MASK DesiredAccess,
828 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
829 IN HANDLE ProcessHandle,
830 OUT PCLIENT_ID ClientId,
831 IN PCONTEXT ThreadContext,
832 IN PINITIAL_TEB UserStack,
833 IN BOOLEAN CreateSuspended
834 );
835
836 NTSYSAPI
837 NTSTATUS
838 NTAPI
839 ZwCreateThread(
840 OUT PHANDLE ThreadHandle,
841 IN ACCESS_MASK DesiredAccess,
842 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
843 IN HANDLE ProcessHandle,
844 OUT PCLIENT_ID ClientId,
845 IN PCONTEXT ThreadContext,
846 IN PINITIAL_TEB UserStack,
847 IN BOOLEAN CreateSuspended
848 );
849
850 NTSTATUS
851 NTAPI
852 NtCreateTimer(
853 OUT PHANDLE TimerHandle,
854 IN ACCESS_MASK DesiredAccess,
855 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
856 IN TIMER_TYPE TimerType
857 );
858
859 #ifdef NTOS_MODE_USER
860 NTSYSAPI
861 NTSTATUS
862 NTAPI
863 ZwCreateTimer(
864 OUT PHANDLE TimerHandle,
865 IN ACCESS_MASK DesiredAccess,
866 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
867 IN TIMER_TYPE TimerType
868 );
869 #endif
870
871 NTSTATUS
872 NTAPI
873 NtCreateToken(
874 OUT PHANDLE TokenHandle,
875 IN ACCESS_MASK DesiredAccess,
876 IN POBJECT_ATTRIBUTES ObjectAttributes,
877 IN TOKEN_TYPE TokenType,
878 IN PLUID AuthenticationId,
879 IN PLARGE_INTEGER ExpirationTime,
880 IN PTOKEN_USER TokenUser,
881 IN PTOKEN_GROUPS TokenGroups,
882 IN PTOKEN_PRIVILEGES TokenPrivileges,
883 IN PTOKEN_OWNER TokenOwner,
884 IN PTOKEN_PRIMARY_GROUP TokenPrimaryGroup,
885 IN PTOKEN_DEFAULT_DACL TokenDefaultDacl,
886 IN PTOKEN_SOURCE TokenSource
887 );
888
889 NTSYSAPI
890 NTSTATUS
891 NTAPI
892 ZwCreateToken(
893 OUT PHANDLE TokenHandle,
894 IN ACCESS_MASK DesiredAccess,
895 IN POBJECT_ATTRIBUTES ObjectAttributes,
896 IN TOKEN_TYPE TokenType,
897 IN PLUID AuthenticationId,
898 IN PLARGE_INTEGER ExpirationTime,
899 IN PTOKEN_USER TokenUser,
900 IN PTOKEN_GROUPS TokenGroups,
901 IN PTOKEN_PRIVILEGES TokenPrivileges,
902 IN PTOKEN_OWNER TokenOwner,
903 IN PTOKEN_PRIMARY_GROUP TokenPrimaryGroup,
904 IN PTOKEN_DEFAULT_DACL TokenDefaultDacl,
905 IN PTOKEN_SOURCE TokenSource
906 );
907
908 NTSTATUS
909 NTAPI
910 NtCreateWaitablePort(
911 PHANDLE PortHandle,
912 POBJECT_ATTRIBUTES ObjectAttributes,
913 ULONG MaxConnectInfoLength,
914 ULONG MaxDataLength,
915 ULONG NPMessageQueueSize OPTIONAL
916 );
917
918 NTSYSAPI
919 NTSTATUS
920 NTAPI
921 ZwCreateWaitablePort(
922 PHANDLE PortHandle,
923 POBJECT_ATTRIBUTES ObjectAttributes,
924 ULONG MaxConnectInfoLength,
925 ULONG MaxDataLength,
926 ULONG NPMessageQueueSize OPTIONAL
927 );
928
929 NTSYSCALLAPI
930 NTSTATUS
931 NTAPI
932 NtQueryDebugFilterState(
933 ULONG ComponentId,
934 ULONG Level
935 );
936
937 NTSYSCALLAPI
938 NTSTATUS
939 NTAPI
940 NtDebugContinue(
941 IN HANDLE DebugObject,
942 IN PCLIENT_ID AppClientId,
943 IN NTSTATUS ContinueStatus
944 );
945
946 NTSYSAPI
947 NTSTATUS
948 NTAPI
949 ZwDebugContinue(
950 IN HANDLE DebugObject,
951 IN PCLIENT_ID AppClientId,
952 IN NTSTATUS ContinueStatus
953 );
954
955 NTSTATUS
956 NTAPI
957 NtDelayExecution(
958 IN BOOLEAN Alertable,
959 IN LARGE_INTEGER *Interval
960 );
961
962 NTSYSAPI
963 NTSTATUS
964 NTAPI
965 ZwDelayExecution(
966 IN BOOLEAN Alertable,
967 IN LARGE_INTEGER *Interval
968 );
969
970 NTSTATUS
971 NTAPI
972 NtDeleteAtom(
973 IN RTL_ATOM Atom
974 );
975
976 NTSYSAPI
977 NTSTATUS
978 NTAPI
979 ZwDeleteAtom(
980 IN RTL_ATOM Atom
981 );
982
983 NTSTATUS
984 NTAPI
985 NtDeleteBootEntry(
986 IN PUNICODE_STRING EntryName,
987 IN PUNICODE_STRING EntryValue
988 );
989
990 NTSYSAPI
991 NTSTATUS
992 NTAPI
993 ZwDeleteBootEntry(
994 IN PUNICODE_STRING EntryName,
995 IN PUNICODE_STRING EntryValue
996 );
997
998 NTSTATUS
999 NTAPI
1000 NtDeleteFile(
1001 IN POBJECT_ATTRIBUTES ObjectAttributes
1002 );
1003
1004 NTSYSAPI
1005 NTSTATUS
1006 NTAPI
1007 ZwDeleteFile(
1008 IN POBJECT_ATTRIBUTES ObjectAttributes
1009 );
1010
1011 NTSTATUS
1012 NTAPI
1013 NtDeleteKey(
1014 IN HANDLE KeyHandle
1015 );
1016
1017 NTSYSAPI
1018 NTSTATUS
1019 NTAPI
1020 ZwDeleteKey(
1021 IN HANDLE KeyHandle
1022 );
1023
1024 NTSYSAPI
1025 NTSTATUS
1026 NTAPI
1027 NtDeleteObjectAuditAlarm(
1028 IN PUNICODE_STRING SubsystemName,
1029 IN PVOID HandleId,
1030 IN BOOLEAN GenerateOnClose
1031 );
1032
1033 NTSYSAPI
1034 NTSTATUS
1035 NTAPI
1036 ZwDeleteObjectAuditAlarm(
1037 IN PUNICODE_STRING SubsystemName,
1038 IN PVOID HandleId,
1039 IN BOOLEAN GenerateOnClose
1040 );
1041
1042 NTSTATUS
1043 NTAPI
1044 NtDeleteValueKey(
1045 IN HANDLE KeyHandle,
1046 IN PUNICODE_STRING ValueName
1047 );
1048
1049 NTSYSAPI
1050 NTSTATUS
1051 NTAPI
1052 ZwDeleteValueKey(
1053 IN HANDLE KeyHandle,
1054 IN PUNICODE_STRING ValueName
1055 );
1056
1057 NTSYSCALLAPI
1058 NTSTATUS
1059 NTAPI
1060 NtDeviceIoControlFile(
1061 IN HANDLE DeviceHandle,
1062 IN HANDLE Event OPTIONAL,
1063 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
1064 IN PVOID UserApcContext OPTIONAL,
1065 OUT PIO_STATUS_BLOCK IoStatusBlock,
1066 IN ULONG IoControlCode,
1067 IN PVOID InputBuffer,
1068 IN ULONG InputBufferSize,
1069 OUT PVOID OutputBuffer,
1070 IN ULONG OutputBufferSize
1071 );
1072
1073 NTSYSAPI
1074 NTSTATUS
1075 NTAPI
1076 ZwDeviceIoControlFile(
1077 IN HANDLE DeviceHandle,
1078 IN HANDLE Event OPTIONAL,
1079 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
1080 IN PVOID UserApcContext OPTIONAL,
1081 OUT PIO_STATUS_BLOCK IoStatusBlock,
1082 IN ULONG IoControlCode,
1083 IN PVOID InputBuffer,
1084 IN ULONG InputBufferSize,
1085 OUT PVOID OutputBuffer,
1086 IN ULONG OutputBufferSize
1087 );
1088
1089 NTSTATUS
1090 NTAPI
1091 NtDisplayString(
1092 IN PUNICODE_STRING DisplayString
1093 );
1094
1095 NTSYSAPI
1096 NTSTATUS
1097 NTAPI
1098 ZwDisplayString(
1099 IN PUNICODE_STRING DisplayString
1100 );
1101
1102 NTSTATUS
1103 NTAPI
1104 NtDuplicateObject(
1105 IN HANDLE SourceProcessHandle,
1106 IN HANDLE SourceHandle,
1107 IN HANDLE TargetProcessHandle,
1108 OUT PHANDLE TargetHandle,
1109 IN ACCESS_MASK DesiredAccess,
1110 IN ULONG HandleAttributes,
1111 IN ULONG Options
1112 );
1113
1114 NTSYSAPI
1115 NTSTATUS
1116 NTAPI
1117 ZwDuplicateObject(
1118 IN HANDLE SourceProcessHandle,
1119 IN HANDLE SourceHandle,
1120 IN HANDLE TargetProcessHandle,
1121 OUT PHANDLE TargetHandle,
1122 IN ACCESS_MASK DesiredAccess,
1123 IN ULONG HandleAttributes,
1124 IN ULONG Options
1125 );
1126
1127 NTSYSCALLAPI
1128 NTSTATUS
1129 NTAPI
1130 NtDuplicateToken(
1131 IN HANDLE ExistingTokenHandle,
1132 IN ACCESS_MASK DesiredAccess,
1133 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
1134 IN BOOLEAN EffectiveOnly,
1135 IN TOKEN_TYPE TokenType,
1136 OUT PHANDLE NewTokenHandle
1137 );
1138
1139 NTSYSAPI
1140 NTSTATUS
1141 NTAPI
1142 ZwDuplicateToken(
1143 IN HANDLE ExistingTokenHandle,
1144 IN ACCESS_MASK DesiredAccess,
1145 IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
1146 IN BOOLEAN EffectiveOnly,
1147 IN TOKEN_TYPE TokenType,
1148 OUT PHANDLE NewTokenHandle
1149 );
1150
1151 NTSTATUS
1152 NTAPI
1153 NtEnumerateBootEntries(
1154 IN ULONG Unknown1,
1155 IN ULONG Unknown2
1156 );
1157
1158 NTSYSAPI
1159 NTSTATUS
1160 NTAPI
1161 ZwEnumerateBootEntries(
1162 IN ULONG Unknown1,
1163 IN ULONG Unknown2
1164 );
1165
1166 NTSTATUS
1167 NTAPI
1168 NtEnumerateKey(
1169 IN HANDLE KeyHandle,
1170 IN ULONG Index,
1171 IN KEY_INFORMATION_CLASS KeyInformationClass,
1172 OUT PVOID KeyInformation,
1173 IN ULONG Length,
1174 OUT PULONG ResultLength
1175 );
1176
1177 NTSYSAPI
1178 NTSTATUS
1179 NTAPI
1180 ZwEnumerateKey(
1181 IN HANDLE KeyHandle,
1182 IN ULONG Index,
1183 IN KEY_INFORMATION_CLASS KeyInformationClass,
1184 OUT PVOID KeyInformation,
1185 IN ULONG Length,
1186 OUT PULONG ResultLength
1187 );
1188
1189 NTSTATUS
1190 NTAPI
1191 NtEnumerateValueKey(
1192 IN HANDLE KeyHandle,
1193 IN ULONG Index,
1194 IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
1195 OUT PVOID KeyValueInformation,
1196 IN ULONG Length,
1197 OUT PULONG ResultLength
1198 );
1199
1200 NTSYSAPI
1201 NTSTATUS
1202 NTAPI
1203 ZwEnumerateValueKey(
1204 IN HANDLE KeyHandle,
1205 IN ULONG Index,
1206 IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
1207 OUT PVOID KeyValueInformation,
1208 IN ULONG Length,
1209 OUT PULONG ResultLength
1210 );
1211
1212 NTSTATUS
1213 NTAPI
1214 NtExtendSection(
1215 IN HANDLE SectionHandle,
1216 IN PLARGE_INTEGER NewMaximumSize
1217 );
1218
1219 NTSYSAPI
1220 NTSTATUS
1221 NTAPI
1222 ZwExtendSection(
1223 IN HANDLE SectionHandle,
1224 IN PLARGE_INTEGER NewMaximumSize
1225 );
1226
1227 NTSTATUS
1228 NTAPI
1229 NtFindAtom(
1230 IN PWSTR AtomName,
1231 IN ULONG AtomNameLength,
1232 OUT PRTL_ATOM Atom OPTIONAL
1233 );
1234
1235 NTSYSAPI
1236 NTSTATUS
1237 NTAPI
1238 ZwFindAtom(
1239 IN PWSTR AtomName,
1240 IN ULONG AtomNameLength,
1241 OUT PRTL_ATOM Atom OPTIONAL
1242 );
1243
1244 NTSTATUS
1245 NTAPI
1246 NtFlushBuffersFile(
1247 IN HANDLE FileHandle,
1248 OUT PIO_STATUS_BLOCK IoStatusBlock
1249 );
1250
1251 #ifdef NTOS_MODE_USER
1252 NTSYSAPI
1253 NTSTATUS
1254 NTAPI
1255 ZwFlushBuffersFile(
1256 IN HANDLE FileHandle,
1257 OUT PIO_STATUS_BLOCK IoStatusBlock
1258 );
1259 #endif
1260
1261 NTSTATUS
1262 NTAPI
1263 NtFlushInstructionCache(
1264 IN HANDLE ProcessHandle,
1265 IN PVOID BaseAddress,
1266 IN ULONG NumberOfBytesToFlush
1267 );
1268
1269 NTSTATUS
1270 NTAPI
1271 NtFlushKey(
1272 IN HANDLE KeyHandle
1273 );
1274
1275 NTSYSAPI
1276 NTSTATUS
1277 NTAPI
1278 ZwFlushKey(
1279 IN HANDLE KeyHandle
1280 );
1281
1282 NTSTATUS
1283 NTAPI
1284 NtFlushVirtualMemory(
1285 IN HANDLE ProcessHandle,
1286 IN PVOID BaseAddress,
1287 IN ULONG NumberOfBytesToFlush,
1288 OUT PULONG NumberOfBytesFlushed OPTIONAL
1289 );
1290
1291 NTSTATUS
1292 NTAPI
1293 NtFlushWriteBuffer(VOID);
1294
1295 NTSYSAPI
1296 NTSTATUS
1297 NTAPI
1298 ZwFlushWriteBuffer(VOID);
1299
1300 NTSYSCALLAPI
1301 NTSTATUS
1302 NTAPI
1303 NtFreeVirtualMemory(
1304 IN HANDLE ProcessHandle,
1305 IN PVOID *BaseAddress,
1306 IN PULONG RegionSize,
1307 IN ULONG FreeType
1308 );
1309
1310 NTSYSAPI
1311 NTSTATUS
1312 NTAPI
1313 ZwFreeVirtualMemory(
1314 IN HANDLE ProcessHandle,
1315 IN PVOID *BaseAddress,
1316 IN PULONG RegionSize,
1317 IN ULONG FreeType
1318 );
1319
1320 NTSYSCALLAPI
1321 NTSTATUS
1322 NTAPI
1323 NtFsControlFile(
1324 IN HANDLE DeviceHandle,
1325 IN HANDLE Event OPTIONAL,
1326 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1327 IN PVOID ApcContext OPTIONAL,
1328 OUT PIO_STATUS_BLOCK IoStatusBlock,
1329 IN ULONG IoControlCode,
1330 IN PVOID InputBuffer,
1331 IN ULONG InputBufferSize,
1332 OUT PVOID OutputBuffer,
1333 IN ULONG OutputBufferSize
1334 );
1335
1336 NTSYSAPI
1337 NTSTATUS
1338 NTAPI
1339 ZwFsControlFile(
1340 IN HANDLE DeviceHandle,
1341 IN HANDLE Event OPTIONAL,
1342 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1343 IN PVOID ApcContext OPTIONAL,
1344 OUT PIO_STATUS_BLOCK IoStatusBlock,
1345 IN ULONG IoControlCode,
1346 IN PVOID InputBuffer,
1347 IN ULONG InputBufferSize,
1348 OUT PVOID OutputBuffer,
1349 IN ULONG OutputBufferSize
1350 );
1351
1352 NTSTATUS
1353 NTAPI
1354 NtGetContextThread(
1355 IN HANDLE ThreadHandle,
1356 OUT PCONTEXT Context
1357 );
1358
1359 NTSYSAPI
1360 NTSTATUS
1361 NTAPI
1362 ZwGetContextThread(
1363 IN HANDLE ThreadHandle,
1364 OUT PCONTEXT Context
1365 );
1366
1367 NTSTATUS
1368 NTAPI
1369 NtGetPlugPlayEvent(
1370 IN ULONG Reserved1,
1371 IN ULONG Reserved2,
1372 OUT PPLUGPLAY_EVENT_BLOCK Buffer,
1373 IN ULONG BufferSize
1374 );
1375
1376 ULONG
1377 NTAPI
1378 NtGetTickCount(
1379 VOID
1380 );
1381
1382 NTSYSAPI
1383 ULONG
1384 NTAPI
1385 ZwGetTickCount(
1386 VOID
1387 );
1388
1389 NTSTATUS
1390 NTAPI
1391 NtImpersonateClientOfPort(
1392 HANDLE PortHandle,
1393 PPORT_MESSAGE ClientMessage
1394 );
1395
1396 NTSYSAPI
1397 NTSTATUS
1398 NTAPI
1399 ZwImpersonateClientOfPort(
1400 HANDLE PortHandle,
1401 PPORT_MESSAGE ClientMessage
1402 );
1403
1404 NTSTATUS
1405 NTAPI
1406 NtImpersonateThread(
1407 IN HANDLE ThreadHandle,
1408 IN HANDLE ThreadToImpersonate,
1409 IN PSECURITY_QUALITY_OF_SERVICE SecurityQualityOfService
1410 );
1411
1412 NTSYSAPI
1413 NTSTATUS
1414 NTAPI
1415 ZwImpersonateThread(
1416 IN HANDLE ThreadHandle,
1417 IN HANDLE ThreadToImpersonate,
1418 IN PSECURITY_QUALITY_OF_SERVICE SecurityQualityOfService
1419 );
1420
1421 NTSYSCALLAPI
1422 NTSTATUS
1423 NTAPI
1424 NtInitiatePowerAction(
1425 POWER_ACTION SystemAction,
1426 SYSTEM_POWER_STATE MinSystemState,
1427 ULONG Flags,
1428 BOOLEAN Asynchronous
1429 );
1430
1431 NTSYSAPI
1432 NTSTATUS
1433 NTAPI
1434 ZwInitiatePowerAction(
1435 POWER_ACTION SystemAction,
1436 SYSTEM_POWER_STATE MinSystemState,
1437 ULONG Flags,
1438 BOOLEAN Asynchronous
1439 );
1440
1441 NTSTATUS
1442 NTAPI
1443 NtInitializeRegistry(
1444 BOOLEAN SetUpBoot
1445 );
1446
1447 NTSYSAPI
1448 NTSTATUS
1449 NTAPI
1450 ZwInitializeRegistry(
1451 BOOLEAN SetUpBoot
1452 );
1453
1454 NTSTATUS
1455 NTAPI
1456 NtIsProcessInJob(
1457 IN HANDLE ProcessHandle,
1458 IN HANDLE JobHandle OPTIONAL
1459 );
1460
1461 NTSYSAPI
1462 NTSTATUS
1463 NTAPI
1464 ZwIsProcessInJob(
1465 IN HANDLE ProcessHandle,
1466 IN HANDLE JobHandle OPTIONAL
1467 );
1468
1469 NTSTATUS
1470 NTAPI
1471 NtListenPort(HANDLE PortHandle,
1472 PPORT_MESSAGE ConnectionRequest
1473 );
1474
1475 NTSYSAPI
1476 NTSTATUS
1477 NTAPI
1478 ZwListenPort(HANDLE PortHandle,
1479 PPORT_MESSAGE ConnectionRequest
1480 );
1481
1482 NTSTATUS
1483 NTAPI
1484 NtLoadDriver(
1485 IN PUNICODE_STRING DriverServiceName
1486 );
1487
1488 NTSYSAPI
1489 NTSTATUS
1490 NTAPI
1491 ZwLoadDriver(
1492 IN PUNICODE_STRING DriverServiceName
1493 );
1494
1495 NTSTATUS
1496 NTAPI
1497 NtLoadKey(
1498 IN POBJECT_ATTRIBUTES KeyObjectAttributes,
1499 IN POBJECT_ATTRIBUTES FileObjectAttributes
1500 );
1501
1502 NTSYSAPI
1503 NTSTATUS
1504 NTAPI
1505 ZwLoadKey(
1506 IN POBJECT_ATTRIBUTES KeyObjectAttributes,
1507 IN POBJECT_ATTRIBUTES FileObjectAttributes
1508 );
1509
1510 NTSTATUS
1511 NTAPI
1512 NtLoadKey2(
1513 IN POBJECT_ATTRIBUTES KeyObjectAttributes,
1514 IN POBJECT_ATTRIBUTES FileObjectAttributes,
1515 IN ULONG Flags
1516 );
1517
1518 NTSYSAPI
1519 NTSTATUS
1520 NTAPI
1521 ZwLoadKey2(
1522 IN POBJECT_ATTRIBUTES KeyObjectAttributes,
1523 IN POBJECT_ATTRIBUTES FileObjectAttributes,
1524 IN ULONG Flags
1525 );
1526
1527 NTSYSCALLAPI
1528 NTSTATUS
1529 NTAPI
1530 NtLockFile(
1531 IN HANDLE FileHandle,
1532 IN HANDLE Event OPTIONAL,
1533 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1534 IN PVOID ApcContext OPTIONAL,
1535 OUT PIO_STATUS_BLOCK IoStatusBlock,
1536 IN PLARGE_INTEGER ByteOffset,
1537 IN PLARGE_INTEGER Length,
1538 IN ULONG Key,
1539 IN BOOLEAN FailImmediatedly,
1540 IN BOOLEAN ExclusiveLock
1541 );
1542
1543
1544 NTSYSAPI
1545 NTSTATUS
1546 NTAPI
1547 ZwLockFile(
1548 IN HANDLE FileHandle,
1549 IN HANDLE Event OPTIONAL,
1550 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1551 IN PVOID ApcContext OPTIONAL,
1552 OUT PIO_STATUS_BLOCK IoStatusBlock,
1553 IN PLARGE_INTEGER ByteOffset,
1554 IN PLARGE_INTEGER Length,
1555 IN ULONG Key,
1556 IN BOOLEAN FailImmediatedly,
1557 IN BOOLEAN ExclusiveLock
1558 );
1559
1560 NTSTATUS
1561 NTAPI
1562 NtLockVirtualMemory(
1563 HANDLE ProcessHandle,
1564 PVOID BaseAddress,
1565 ULONG NumberOfBytesToLock,
1566 PULONG NumberOfBytesLocked
1567 );
1568
1569 NTSYSAPI
1570 NTSTATUS
1571 NTAPI
1572 ZwLockVirtualMemory(
1573 HANDLE ProcessHandle,
1574 PVOID BaseAddress,
1575 ULONG NumberOfBytesToLock,
1576 PULONG NumberOfBytesLocked
1577 );
1578
1579 NTSTATUS
1580 NTAPI
1581 NtMakePermanentObject(
1582 IN HANDLE Object
1583 );
1584
1585 NTSYSAPI
1586 NTSTATUS
1587 NTAPI
1588 ZwMakePermanentObject(
1589 IN HANDLE Object
1590 );
1591
1592 NTSTATUS
1593 NTAPI
1594 NtMakeTemporaryObject(
1595 IN HANDLE Handle
1596 );
1597
1598 NTSYSAPI
1599 NTSTATUS
1600 NTAPI
1601 ZwMakeTemporaryObject(
1602 IN HANDLE Handle
1603 );
1604
1605 NTSTATUS
1606 NTAPI
1607 NtMapViewOfSection(
1608 IN HANDLE SectionHandle,
1609 IN HANDLE ProcessHandle,
1610 IN OUT PVOID *BaseAddress,
1611 IN ULONG ZeroBits,
1612 IN ULONG CommitSize,
1613 IN OUT PLARGE_INTEGER SectionOffset OPTIONAL,
1614 IN OUT PULONG ViewSize,
1615 IN SECTION_INHERIT InheritDisposition,
1616 IN ULONG AllocationType,
1617 IN ULONG AccessProtection
1618 );
1619
1620 NTSYSAPI
1621 NTSTATUS
1622 NTAPI
1623 ZwMapViewOfSection(
1624 IN HANDLE SectionHandle,
1625 IN HANDLE ProcessHandle,
1626 IN OUT PVOID *BaseAddress,
1627 IN ULONG ZeroBits,
1628 IN ULONG CommitSize,
1629 IN OUT PLARGE_INTEGER SectionOffset OPTIONAL,
1630 IN OUT PULONG ViewSize,
1631 IN SECTION_INHERIT InheritDisposition,
1632 IN ULONG AllocationType,
1633 IN ULONG AccessProtection
1634 );
1635
1636 NTSTATUS
1637 NTAPI
1638 NtNotifyChangeDirectoryFile(
1639 IN HANDLE FileHandle,
1640 IN HANDLE Event OPTIONAL,
1641 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1642 IN PVOID ApcContext OPTIONAL,
1643 OUT PIO_STATUS_BLOCK IoStatusBlock,
1644 OUT PVOID Buffer,
1645 IN ULONG BufferSize,
1646 IN ULONG CompletionFilter,
1647 IN BOOLEAN WatchTree
1648 );
1649
1650 NTSYSAPI
1651 NTSTATUS
1652 NTAPI
1653 ZwNotifyChangeDirectoryFile(
1654 IN HANDLE FileHandle,
1655 IN HANDLE Event OPTIONAL,
1656 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1657 IN PVOID ApcContext OPTIONAL,
1658 OUT PIO_STATUS_BLOCK IoStatusBlock,
1659 OUT PVOID Buffer,
1660 IN ULONG BufferSize,
1661 IN ULONG CompletionFilter,
1662 IN BOOLEAN WatchTree
1663 );
1664
1665 NTSTATUS
1666 NTAPI
1667 NtNotifyChangeKey(
1668 IN HANDLE KeyHandle,
1669 IN HANDLE Event,
1670 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1671 IN PVOID ApcContext OPTIONAL,
1672 OUT PIO_STATUS_BLOCK IoStatusBlock,
1673 IN ULONG CompletionFilter,
1674 IN BOOLEAN Asynchroneous,
1675 OUT PVOID ChangeBuffer,
1676 IN ULONG Length,
1677 IN BOOLEAN WatchSubtree
1678 );
1679
1680 NTSYSAPI
1681 NTSTATUS
1682 NTAPI
1683 ZwNotifyChangeKey(
1684 IN HANDLE KeyHandle,
1685 IN HANDLE Event,
1686 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
1687 IN PVOID ApcContext OPTIONAL,
1688 OUT PIO_STATUS_BLOCK IoStatusBlock,
1689 IN ULONG CompletionFilter,
1690 IN BOOLEAN Asynchroneous,
1691 OUT PVOID ChangeBuffer,
1692 IN ULONG Length,
1693 IN BOOLEAN WatchSubtree
1694 );
1695
1696 NTSTATUS
1697 NTAPI
1698 NtOpenDirectoryObject(
1699 OUT PHANDLE FileHandle,
1700 IN ACCESS_MASK DesiredAccess,
1701 IN POBJECT_ATTRIBUTES ObjectAttributes
1702 );
1703
1704 NTSYSAPI
1705 NTSTATUS
1706 NTAPI
1707 ZwOpenDirectoryObject(
1708 OUT PHANDLE FileHandle,
1709 IN ACCESS_MASK DesiredAccess,
1710 IN POBJECT_ATTRIBUTES ObjectAttributes
1711 );
1712
1713 NTSTATUS
1714 NTAPI
1715 NtOpenEvent(
1716 OUT PHANDLE EventHandle,
1717 IN ACCESS_MASK DesiredAccess,
1718 IN POBJECT_ATTRIBUTES ObjectAttributes
1719 );
1720
1721 NTSYSAPI
1722 NTSTATUS
1723 NTAPI
1724 ZwOpenEvent(
1725 OUT PHANDLE EventHandle,
1726 IN ACCESS_MASK DesiredAccess,
1727 IN POBJECT_ATTRIBUTES ObjectAttributes
1728 );
1729
1730 NTSTATUS
1731 NTAPI
1732 NtOpenEventPair(
1733 OUT PHANDLE EventPairHandle,
1734 IN ACCESS_MASK DesiredAccess,
1735 IN POBJECT_ATTRIBUTES ObjectAttributes
1736 );
1737
1738 NTSYSAPI
1739 NTSTATUS
1740 NTAPI
1741 ZwOpenEventPair(
1742 OUT PHANDLE EventPairHandle,
1743 IN ACCESS_MASK DesiredAccess,
1744 IN POBJECT_ATTRIBUTES ObjectAttributes
1745 );
1746
1747 NTSYSCALLAPI
1748 NTSTATUS
1749 NTAPI
1750 NtOpenFile(
1751 OUT PHANDLE FileHandle,
1752 IN ACCESS_MASK DesiredAccess,
1753 IN POBJECT_ATTRIBUTES ObjectAttributes,
1754 OUT PIO_STATUS_BLOCK IoStatusBlock,
1755 IN ULONG ShareAccess,
1756 IN ULONG OpenOptions
1757 );
1758
1759 NTSYSAPI
1760 NTSTATUS
1761 NTAPI
1762 ZwOpenFile(
1763 OUT PHANDLE FileHandle,
1764 IN ACCESS_MASK DesiredAccess,
1765 IN POBJECT_ATTRIBUTES ObjectAttributes,
1766 OUT PIO_STATUS_BLOCK IoStatusBlock,
1767 IN ULONG ShareAccess,
1768 IN ULONG OpenOptions
1769 );
1770
1771 NTSTATUS
1772 NTAPI
1773 NtOpenIoCompletion(
1774 OUT PHANDLE CompetionPort,
1775 IN ACCESS_MASK DesiredAccess,
1776 IN POBJECT_ATTRIBUTES ObjectAttributes
1777 );
1778
1779 NTSYSAPI
1780 NTSTATUS
1781 NTAPI
1782 ZwOpenIoCompletion(
1783 OUT PHANDLE CompetionPort,
1784 IN ACCESS_MASK DesiredAccess,
1785 IN POBJECT_ATTRIBUTES ObjectAttributes
1786 );
1787
1788 NTSTATUS
1789 NTAPI
1790 NtOpenJobObject(
1791 PHANDLE JobHandle,
1792 ACCESS_MASK DesiredAccess,
1793 POBJECT_ATTRIBUTES ObjectAttributes
1794 );
1795
1796 NTSYSAPI
1797 NTSTATUS
1798 NTAPI
1799 ZwOpenJobObject(
1800 PHANDLE JobHandle,
1801 ACCESS_MASK DesiredAccess,
1802 POBJECT_ATTRIBUTES ObjectAttributes
1803 );
1804
1805 NTSTATUS
1806 NTAPI
1807 NtOpenKey(
1808 OUT PHANDLE KeyHandle,
1809 IN ACCESS_MASK DesiredAccess,
1810 IN POBJECT_ATTRIBUTES ObjectAttributes
1811 );
1812
1813 NTSYSAPI
1814 NTSTATUS
1815 NTAPI
1816 ZwOpenKey(
1817 OUT PHANDLE KeyHandle,
1818 IN ACCESS_MASK DesiredAccess,
1819 IN POBJECT_ATTRIBUTES ObjectAttributes
1820 );
1821
1822 NTSTATUS
1823 NTAPI
1824 NtOpenMutant(
1825 OUT PHANDLE MutantHandle,
1826 IN ACCESS_MASK DesiredAccess,
1827 IN POBJECT_ATTRIBUTES ObjectAttributes
1828 );
1829
1830 NTSYSAPI
1831 NTSTATUS
1832 NTAPI
1833 ZwOpenMutant(
1834 OUT PHANDLE MutantHandle,
1835 IN ACCESS_MASK DesiredAccess,
1836 IN POBJECT_ATTRIBUTES ObjectAttributes
1837 );
1838
1839 NTSYSCALLAPI
1840 NTSTATUS
1841 NTAPI
1842 NtOpenObjectAuditAlarm(
1843 IN PUNICODE_STRING SubsystemName,
1844 IN PVOID HandleId,
1845 IN PUNICODE_STRING ObjectTypeName,
1846 IN PUNICODE_STRING ObjectName,
1847 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
1848 IN HANDLE ClientToken,
1849 IN ULONG DesiredAccess,
1850 IN ULONG GrantedAccess,
1851 IN PPRIVILEGE_SET Privileges,
1852 IN BOOLEAN ObjectCreation,
1853 IN BOOLEAN AccessGranted,
1854 OUT PBOOLEAN GenerateOnClose
1855 );
1856
1857 NTSYSAPI
1858 NTSTATUS
1859 NTAPI
1860 ZwOpenObjectAuditAlarm(
1861 IN PUNICODE_STRING SubsystemName,
1862 IN PVOID HandleId,
1863 IN PUNICODE_STRING ObjectTypeName,
1864 IN PUNICODE_STRING ObjectName,
1865 IN PSECURITY_DESCRIPTOR SecurityDescriptor,
1866 IN HANDLE ClientToken,
1867 IN ULONG DesiredAccess,
1868 IN ULONG GrantedAccess,
1869 IN PPRIVILEGE_SET Privileges,
1870 IN BOOLEAN ObjectCreation,
1871 IN BOOLEAN AccessGranted,
1872 OUT PBOOLEAN GenerateOnClose
1873 );
1874
1875 NTSYSCALLAPI
1876 NTSTATUS
1877 NTAPI
1878 NtOpenProcess(
1879 OUT PHANDLE ProcessHandle,
1880 IN ACCESS_MASK DesiredAccess,
1881 IN POBJECT_ATTRIBUTES ObjectAttributes,
1882 IN PCLIENT_ID ClientId
1883 );
1884
1885 NTSYSAPI
1886 NTSTATUS
1887 NTAPI
1888 ZwOpenProcess(
1889 OUT PHANDLE ProcessHandle,
1890 IN ACCESS_MASK DesiredAccess,
1891 IN POBJECT_ATTRIBUTES ObjectAttributes,
1892 IN PCLIENT_ID ClientId
1893 );
1894
1895 NTSYSCALLAPI
1896 NTSTATUS
1897 NTAPI
1898 NtOpenProcessToken(
1899 IN HANDLE ProcessHandle,
1900 IN ACCESS_MASK DesiredAccess,
1901 OUT PHANDLE TokenHandle
1902 );
1903
1904 NTSYSAPI
1905 NTSTATUS
1906 NTAPI
1907 ZwOpenProcessToken(
1908 IN HANDLE ProcessHandle,
1909 IN ACCESS_MASK DesiredAccess,
1910 OUT PHANDLE TokenHandle
1911 );
1912
1913 NTSYSCALLAPI
1914 NTSTATUS
1915 NTAPI
1916 NtOpenProcessTokenEx(
1917 IN HANDLE ProcessHandle,
1918 IN ACCESS_MASK DesiredAccess,
1919 IN ULONG HandleAttributes,
1920 OUT PHANDLE TokenHandle
1921 );
1922
1923 NTSYSAPI
1924 NTSTATUS
1925 NTAPI
1926 ZwOpenProcessTokenEx(
1927 IN HANDLE ProcessHandle,
1928 IN ACCESS_MASK DesiredAccess,
1929 IN ULONG HandleAttributes,
1930 OUT PHANDLE TokenHandle
1931 );
1932
1933 NTSTATUS
1934 NTAPI
1935 NtOpenSection(
1936 OUT PHANDLE SectionHandle,
1937 IN ACCESS_MASK DesiredAccess,
1938 IN POBJECT_ATTRIBUTES ObjectAttributes
1939 );
1940
1941 NTSYSAPI
1942 NTSTATUS
1943 NTAPI
1944 ZwOpenSection(
1945 OUT PHANDLE SectionHandle,
1946 IN ACCESS_MASK DesiredAccess,
1947 IN POBJECT_ATTRIBUTES ObjectAttributes
1948 );
1949
1950 NTSTATUS
1951 NTAPI
1952 NtOpenSemaphore(
1953 OUT PHANDLE SemaphoreHandle,
1954 IN ACCESS_MASK DesiredAcces,
1955 IN POBJECT_ATTRIBUTES ObjectAttributes
1956 );
1957
1958 NTSYSAPI
1959 NTSTATUS
1960 NTAPI
1961 ZwOpenSemaphore(
1962 OUT PHANDLE SemaphoreHandle,
1963 IN ACCESS_MASK DesiredAcces,
1964 IN POBJECT_ATTRIBUTES ObjectAttributes
1965 );
1966
1967 NTSTATUS
1968 NTAPI
1969 NtOpenSymbolicLinkObject(
1970 OUT PHANDLE SymbolicLinkHandle,
1971 IN ACCESS_MASK DesiredAccess,
1972 IN POBJECT_ATTRIBUTES ObjectAttributes
1973 );
1974
1975 NTSYSAPI
1976 NTSTATUS
1977 NTAPI
1978 ZwOpenSymbolicLinkObject(
1979 OUT PHANDLE SymbolicLinkHandle,
1980 IN ACCESS_MASK DesiredAccess,
1981 IN POBJECT_ATTRIBUTES ObjectAttributes
1982 );
1983
1984 NTSTATUS
1985 NTAPI
1986 NtOpenThread(
1987 OUT PHANDLE ThreadHandle,
1988 IN ACCESS_MASK DesiredAccess,
1989 IN POBJECT_ATTRIBUTES ObjectAttributes,
1990 IN PCLIENT_ID ClientId
1991 );
1992
1993 NTSYSAPI
1994 NTSTATUS
1995 NTAPI
1996 ZwOpenThread(
1997 OUT PHANDLE ThreadHandle,
1998 IN ACCESS_MASK DesiredAccess,
1999 IN POBJECT_ATTRIBUTES ObjectAttributes,
2000 IN PCLIENT_ID ClientId
2001 );
2002
2003 NTSYSCALLAPI
2004 NTSTATUS
2005 NTAPI
2006 NtOpenThreadToken(
2007 IN HANDLE ThreadHandle,
2008 IN ACCESS_MASK DesiredAccess,
2009 IN BOOLEAN OpenAsSelf,
2010 OUT PHANDLE TokenHandle
2011 );
2012
2013 NTSYSAPI
2014 NTSTATUS
2015 NTAPI
2016 ZwOpenThreadToken(
2017 IN HANDLE ThreadHandle,
2018 IN ACCESS_MASK DesiredAccess,
2019 IN BOOLEAN OpenAsSelf,
2020 OUT PHANDLE TokenHandle
2021 );
2022
2023 NTSYSCALLAPI
2024 NTSTATUS
2025 NTAPI
2026 NtOpenThreadTokenEx(
2027 IN HANDLE ThreadHandle,
2028 IN ACCESS_MASK DesiredAccess,
2029 IN BOOLEAN OpenAsSelf,
2030 IN ULONG HandleAttributes,
2031 OUT PHANDLE TokenHandle
2032 );
2033
2034 NTSYSAPI
2035 NTSTATUS
2036 NTAPI
2037 ZwOpenThreadTokenEx(
2038 IN HANDLE ThreadHandle,
2039 IN ACCESS_MASK DesiredAccess,
2040 IN BOOLEAN OpenAsSelf,
2041 IN ULONG HandleAttributes,
2042 OUT PHANDLE TokenHandle
2043 );
2044
2045 NTSTATUS
2046 NTAPI
2047 NtOpenTimer(
2048 OUT PHANDLE TimerHandle,
2049 IN ACCESS_MASK DesiredAccess,
2050 IN POBJECT_ATTRIBUTES ObjectAttributes
2051 );
2052
2053 #ifdef NTOS_MODE_USER
2054 NTSYSAPI
2055 NTSTATUS
2056 NTAPI
2057 ZwOpenTimer(
2058 OUT PHANDLE TimerHandle,
2059 IN ACCESS_MASK DesiredAccess,
2060 IN POBJECT_ATTRIBUTES ObjectAttributes
2061 );
2062 #endif
2063
2064 NTSTATUS
2065 NTAPI
2066 NtPlugPlayControl(
2067 IN PLUGPLAY_CONTROL_CLASS PlugPlayControlClass,
2068 IN OUT PVOID Buffer,
2069 IN ULONG BufferSize
2070 );
2071
2072 NTSYSCALLAPI
2073 NTSTATUS
2074 NTAPI
2075 NtPowerInformation(
2076 POWER_INFORMATION_LEVEL PowerInformationLevel,
2077 PVOID InputBuffer,
2078 ULONG InputBufferLength,
2079 PVOID OutputBuffer,
2080 ULONG OutputBufferLength
2081 );
2082
2083 NTSYSAPI
2084 NTSTATUS
2085 NTAPI
2086 ZwPowerInformation(
2087 POWER_INFORMATION_LEVEL PowerInformationLevel,
2088 PVOID InputBuffer,
2089 ULONG InputBufferLength,
2090 PVOID OutputBuffer,
2091 ULONG OutputBufferLength
2092 );
2093
2094 NTSYSCALLAPI
2095 NTSTATUS
2096 NTAPI
2097 NtPrivilegeCheck(
2098 IN HANDLE ClientToken,
2099 IN PPRIVILEGE_SET RequiredPrivileges,
2100 IN PBOOLEAN Result
2101 );
2102
2103 NTSYSAPI
2104 NTSTATUS
2105 NTAPI
2106 ZwPrivilegeCheck(
2107 IN HANDLE ClientToken,
2108 IN PPRIVILEGE_SET RequiredPrivileges,
2109 IN PBOOLEAN Result
2110 );
2111
2112 NTSYSCALLAPI
2113 NTSTATUS
2114 NTAPI
2115 NtPrivilegedServiceAuditAlarm(
2116 IN PUNICODE_STRING SubsystemName,
2117 IN PUNICODE_STRING ServiceName,
2118 IN HANDLE ClientToken,
2119 IN PPRIVILEGE_SET Privileges,
2120 IN BOOLEAN AccessGranted
2121 );
2122
2123 NTSYSAPI
2124 NTSTATUS
2125 NTAPI
2126 ZwPrivilegedServiceAuditAlarm(
2127 IN PUNICODE_STRING SubsystemName,
2128 IN PUNICODE_STRING ServiceName,
2129 IN HANDLE ClientToken,
2130 IN PPRIVILEGE_SET Privileges,
2131 IN BOOLEAN AccessGranted
2132 );
2133
2134 NTSYSCALLAPI
2135 NTSTATUS
2136 NTAPI
2137 NtPrivilegeObjectAuditAlarm(
2138 IN PUNICODE_STRING SubsystemName,
2139 IN PVOID HandleId,
2140 IN HANDLE ClientToken,
2141 IN ULONG DesiredAccess,
2142 IN PPRIVILEGE_SET Privileges,
2143 IN BOOLEAN AccessGranted
2144 );
2145
2146 NTSYSAPI
2147 NTSTATUS
2148 NTAPI
2149 ZwPrivilegeObjectAuditAlarm(
2150 IN PUNICODE_STRING SubsystemName,
2151 IN PVOID HandleId,
2152 IN HANDLE ClientToken,
2153 IN ULONG DesiredAccess,
2154 IN PPRIVILEGE_SET Privileges,
2155 IN BOOLEAN AccessGranted
2156 );
2157
2158 NTSTATUS
2159 NTAPI
2160 NtProtectVirtualMemory(
2161 IN HANDLE ProcessHandle,
2162 IN PVOID *BaseAddress,
2163 IN ULONG *NumberOfBytesToProtect,
2164 IN ULONG NewAccessProtection,
2165 OUT PULONG OldAccessProtection
2166 );
2167
2168 NTSYSAPI
2169 NTSTATUS
2170 NTAPI
2171 ZwProtectVirtualMemory(
2172 IN HANDLE ProcessHandle,
2173 IN PVOID *BaseAddress,
2174 IN ULONG *NumberOfBytesToProtect,
2175 IN ULONG NewAccessProtection,
2176 OUT PULONG OldAccessProtection
2177 );
2178
2179 NTSTATUS
2180 NTAPI
2181 NtPulseEvent(
2182 IN HANDLE EventHandle,
2183 IN PLONG PulseCount OPTIONAL
2184 );
2185
2186 NTSYSAPI
2187 NTSTATUS
2188 NTAPI
2189 ZwPulseEvent(
2190 IN HANDLE EventHandle,
2191 IN PLONG PulseCount OPTIONAL
2192 );
2193
2194 NTSTATUS
2195 NTAPI
2196 NtQueryAttributesFile(
2197 IN POBJECT_ATTRIBUTES ObjectAttributes,
2198 OUT PFILE_BASIC_INFORMATION FileInformation
2199 );
2200
2201 NTSYSAPI
2202 NTSTATUS
2203 NTAPI
2204 ZwQueryAttributesFile(
2205 IN POBJECT_ATTRIBUTES ObjectAttributes,
2206 OUT PFILE_BASIC_INFORMATION FileInformation
2207 );
2208
2209
2210 NTSTATUS
2211 NTAPI
2212 NtQueryBootEntryOrder(
2213 IN ULONG Unknown1,
2214 IN ULONG Unknown2
2215 );
2216
2217 NTSYSAPI
2218 NTSTATUS
2219 NTAPI
2220 ZwQueryBootEntryOrder(
2221 IN ULONG Unknown1,
2222 IN ULONG Unknown2
2223 );
2224
2225 NTSTATUS
2226 NTAPI
2227 NtQueryBootOptions(
2228 IN ULONG Unknown1,
2229 IN ULONG Unknown2
2230 );
2231
2232 NTSYSAPI
2233 NTSTATUS
2234 NTAPI
2235 ZwQueryBootOptions(
2236 IN ULONG Unknown1,
2237 IN ULONG Unknown2
2238 );
2239
2240 NTSTATUS
2241 NTAPI
2242 NtQueryDefaultLocale(
2243 IN BOOLEAN UserProfile,
2244 OUT PLCID DefaultLocaleId
2245 );
2246
2247 NTSYSAPI
2248 NTSTATUS
2249 NTAPI
2250 ZwQueryDefaultLocale(
2251 IN BOOLEAN UserProfile,
2252 OUT PLCID DefaultLocaleId
2253 );
2254
2255 NTSTATUS
2256 NTAPI
2257 NtQueryDefaultUILanguage(
2258 PLANGID LanguageId
2259 );
2260
2261 NTSYSAPI
2262 NTSTATUS
2263 NTAPI
2264 ZwQueryDefaultUILanguage(
2265 PLANGID LanguageId
2266 );
2267
2268 NTSYSCALLAPI
2269 NTSTATUS
2270 NTAPI
2271 NtQueryDirectoryFile(
2272 IN HANDLE FileHandle,
2273 IN HANDLE Event OPTIONAL,
2274 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
2275 IN PVOID ApcContext OPTIONAL,
2276 OUT PIO_STATUS_BLOCK IoStatusBlock,
2277 OUT PVOID FileInformation,
2278 IN ULONG Length,
2279 IN FILE_INFORMATION_CLASS FileInformationClass,
2280 IN BOOLEAN ReturnSingleEntry,
2281 IN PUNICODE_STRING FileName OPTIONAL,
2282 IN BOOLEAN RestartScan
2283 );
2284
2285 NTSYSAPI
2286 NTSTATUS
2287 NTAPI
2288 ZwQueryDirectoryFile(
2289 IN HANDLE FileHandle,
2290 IN HANDLE Event OPTIONAL,
2291 IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
2292 IN PVOID ApcContext OPTIONAL,
2293 OUT PIO_STATUS_BLOCK IoStatusBlock,
2294 OUT PVOID FileInformation,
2295 IN ULONG Length,
2296 IN FILE_INFORMATION_CLASS FileInformationClass,
2297 IN BOOLEAN ReturnSingleEntry,
2298 IN PUNICODE_STRING FileName OPTIONAL,
2299 IN BOOLEAN RestartScan
2300 );
2301
2302 NTSTATUS
2303 NTAPI
2304 NtQueryDirectoryObject(
2305 IN HANDLE DirectoryHandle,
2306 OUT PVOID Buffer,
2307 IN ULONG BufferLength,
2308 IN BOOLEAN ReturnSingleEntry,
2309 IN BOOLEAN RestartScan,
2310 IN OUT PULONG Context,
2311 OUT PULONG ReturnLength OPTIONAL
2312 );
2313
2314 NTSYSAPI
2315 NTSTATUS
2316 NTAPI
2317 ZwQueryDirectoryObject(
2318 IN HANDLE DirectoryHandle,
2319 OUT PVOID Buffer,
2320 IN ULONG BufferLength,
2321 IN BOOLEAN ReturnSingleEntry,
2322 IN BOOLEAN RestartScan,
2323 IN OUT PULONG Context,
2324 OUT PULONG ReturnLength OPTIONAL
2325 );
2326
2327 NTSTATUS
2328 NTAPI
2329 NtQueryEaFile(
2330 IN HANDLE FileHandle,
2331 OUT PIO_STATUS_BLOCK IoStatusBlock,
2332 OUT PVOID Buffer,
2333 IN ULONG Length,
2334 IN BOOLEAN ReturnSingleEntry,
2335 IN PVOID EaList OPTIONAL,
2336 IN ULONG EaListLength,
2337 IN PULONG EaIndex OPTIONAL,
2338 IN BOOLEAN RestartScan
2339 );
2340
2341 #ifdef NTOS_MODE_USER
2342 NTSYSAPI
2343 NTSTATUS
2344 NTAPI
2345 ZwQueryEaFile(
2346 IN HANDLE FileHandle,
2347 OUT PIO_STATUS_BLOCK IoStatusBlock,
2348 OUT PVOID Buffer,
2349 IN ULONG Length,
2350 IN BOOLEAN ReturnSingleEntry,
2351 IN PVOID EaList OPTIONAL,
2352 IN ULONG EaListLength,
2353 IN PULONG EaIndex OPTIONAL,
2354 IN BOOLEAN RestartScan
2355 );
2356 #endif
2357
2358 NTSTATUS
2359 NTAPI
2360 NtQueryEvent(
2361 IN HANDLE EventHandle,
2362 IN EVENT_INFORMATION_CLASS EventInformationClass,
2363 OUT PVOID EventInformation,
2364 IN ULONG EventInformationLength,
2365 OUT PULONG ReturnLength
2366 );
2367
2368 NTSYSAPI
2369 NTSTATUS
2370 NTAPI
2371 ZwQueryEvent(
2372 IN HANDLE EventHandle,
2373 IN EVENT_INFORMATION_CLASS EventInformationClass,
2374 OUT PVOID EventInformation,
2375 IN ULONG EventInformationLength,
2376 OUT PULONG ReturnLength
2377 );
2378
2379 NTSTATUS
2380 NTAPI
2381 NtQueryFullAttributesFile(
2382 IN POBJECT_ATTRIBUTES ObjectAttributes,
2383 OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation
2384 );
2385
2386 NTSYSAPI
2387 NTSTATUS
2388 NTAPI
2389 ZwQueryFullAttributesFile(
2390 IN POBJECT_ATTRIBUTES ObjectAttributes,
2391 OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation
2392 );
2393
2394 NTSTATUS
2395 NTAPI
2396 NtQueryInformationAtom(
2397 IN RTL_ATOM Atom,
2398 IN ATOM_INFORMATION_CLASS AtomInformationClass,
2399 OUT PVOID AtomInformation,
2400 IN ULONG AtomInformationLength,
2401 OUT PULONG ReturnLength OPTIONAL
2402 );
2403
2404 NTSYSAPI
2405 NTSTATUS
2406 NTAPI
2407 ZwQueryInformationAtom(
2408 IN RTL_ATOM Atom,
2409 IN ATOM_INFORMATION_CLASS AtomInformationClass,
2410 OUT PVOID AtomInformation,
2411 IN ULONG AtomInformationLength,
2412 OUT PULONG ReturnLength OPTIONAL
2413 );
2414
2415 NTSYSCALLAPI
2416 NTSTATUS
2417 NTAPI
2418 NtQueryInformationFile(
2419 IN HANDLE FileHandle,
2420 OUT PIO_STATUS_BLOCK IoStatusBlock,
2421 OUT PVOID FileInformation,
2422 IN ULONG Length,
2423 IN FILE_INFORMATION_CLASS FileInformationClass
2424 );
2425
2426 NTSYSAPI
2427 NTSTATUS
2428 NTAPI
2429 ZwQueryInformationFile(
2430 HANDLE FileHandle,
2431 PIO_STATUS_BLOCK IoStatusBlock,
2432 PVOID FileInformation,
2433 ULONG Length,
2434 FILE_INFORMATION_CLASS FileInformationClass
2435 );
2436
2437 NTSTATUS
2438 NTAPI
2439 NtQueryInformationJobObject(
2440 HANDLE JobHandle,
2441 JOBOBJECTINFOCLASS JobInformationClass,
2442 PVOID JobInformation,
2443 ULONG JobInformationLength,
2444 PULONG ReturnLength
2445 );
2446
2447 NTSYSAPI
2448 NTSTATUS
2449 NTAPI
2450 ZwQueryInformationJobObject(
2451 HANDLE JobHandle,
2452 JOBOBJECTINFOCLASS JobInformationClass,
2453 PVOID JobInformation,
2454 ULONG JobInformationLength,
2455 PULONG ReturnLength
2456 );
2457
2458 NTSTATUS
2459 NTAPI
2460 NtQueryInformationPort(
2461 HANDLE PortHandle,
2462 PORT_INFORMATION_CLASS PortInformationClass,
2463 PVOID PortInformation,
2464 ULONG PortInformationLength,
2465 PULONG ReturnLength
2466 );
2467
2468 NTSYSAPI
2469 NTSTATUS
2470 NTAPI
2471 ZwQueryInformationPort(
2472 HANDLE PortHandle,
2473 PORT_INFORMATION_CLASS PortInformationClass,
2474 PVOID PortInformation,
2475 ULONG PortInformationLength,
2476 PULONG ReturnLength
2477 );
2478
2479 #ifndef _NTDDK_
2480 NTSTATUS
2481 NTAPI
2482 NtQueryInformationProcess(
2483 IN HANDLE ProcessHandle,
2484 IN PROCESSINFOCLASS ProcessInformationClass,
2485 OUT PVOID ProcessInformation,
2486 IN ULONG ProcessInformationLength,
2487 OUT PULONG ReturnLength OPTIONAL
2488 );
2489
2490 NTSYSAPI
2491 NTSTATUS
2492 NTAPI
2493 ZwQueryInformationProcess(
2494 IN HANDLE ProcessHandle,
2495 IN PROCESSINFOCLASS ProcessInformationClass,
2496 OUT PVOID ProcessInformation,
2497 IN ULONG ProcessInformationLength,
2498 OUT PULONG ReturnLength OPTIONAL
2499 );
2500 #endif
2501
2502 NTSTATUS
2503 NTAPI
2504 NtQueryInformationThread(
2505 IN HANDLE ThreadHandle,
2506 IN THREADINFOCLASS ThreadInformationClass,
2507 OUT PVOID ThreadInformation,
2508 IN ULONG ThreadInformationLength,
2509 OUT PULONG ReturnLength
2510 );
2511
2512 NTSYSAPI
2513 NTSTATUS
2514 NTAPI
2515 ZwQueryInformationThread(
2516 IN HANDLE ThreadHandle,
2517 IN THREADINFOCLASS ThreadInformationClass,
2518 OUT PVOID ThreadInformation,
2519 IN ULONG ThreadInformationLength,
2520 OUT PULONG ReturnLength
2521 );
2522
2523 NTSYSCALLAPI
2524 NTSTATUS
2525 NTAPI
2526 NtQueryInformationToken(
2527 IN HANDLE TokenHandle,
2528 IN TOKEN_INFORMATION_CLASS TokenInformationClass,
2529 OUT PVOID TokenInformation,
2530 IN ULONG TokenInformationLength,
2531 OUT PULONG ReturnLength
2532 );
2533
2534 NTSYSAPI
2535 NTSTATUS
2536 NTAPI
2537 ZwQueryInformationToken(
2538 IN HANDLE TokenHandle,
2539 IN TOKEN_INFORMATION_CLASS TokenInformationClass,
2540 OUT PVOID TokenInformation,
2541 IN ULONG TokenInformationLength,
2542 OUT PULONG ReturnLength
2543 );
2544
2545 NTSTATUS
2546 NTAPI
2547 NtQueryInstallUILanguage(
2548 PLANGID LanguageId
2549 );
2550
2551 NTSYSAPI
2552 NTSTATUS
2553 NTAPI
2554 ZwQueryInstallUILanguage(
2555 PLANGID LanguageId
2556 );
2557
2558 NTSTATUS
2559 NTAPI
2560 NtQueryIntervalProfile(
2561 IN KPROFILE_SOURCE ProfileSource,
2562 OUT PULONG Interval
2563 );
2564
2565 NTSYSAPI
2566 NTSTATUS
2567 NTAPI
2568 ZwQueryIntervalProfile(
2569 OUT PULONG Interval,
2570 OUT KPROFILE_SOURCE ClockSource
2571 );
2572
2573 NTSTATUS
2574 NTAPI
2575 NtQueryIoCompletion(
2576 IN HANDLE IoCompletionHandle,
2577 IN IO_COMPLETION_INFORMATION_CLASS IoCompletionInformationClass,
2578 OUT PVOID IoCompletionInformation,
2579 IN ULONG IoCompletionInformationLength,
2580 OUT PULONG ResultLength OPTIONAL
2581 );
2582
2583 NTSYSAPI
2584 NTSTATUS
2585 NTAPI
2586 ZwQueryIoCompletion(
2587 IN HANDLE IoCompletionHandle,
2588 IN IO_COMPLETION_INFORMATION_CLASS IoCompletionInformationClass,
2589 OUT PVOID IoCompletionInformation,
2590 IN ULONG IoCompletionInformationLength,
2591 OUT PULONG ResultLength OPTIONAL
2592 );
2593
2594 NTSTATUS
2595 NTAPI
2596 NtQueryKey(
2597 IN HANDLE KeyHandle,
2598 IN KEY_INFORMATION_CLASS KeyInformationClass,
2599 OUT PVOID KeyInformation,
2600 IN ULONG Length,
2601 OUT PULONG ResultLength
2602 );
2603
2604 NTSYSAPI
2605 NTSTATUS
2606 NTAPI
2607 ZwQueryKey(
2608 IN HANDLE KeyHandle,
2609 IN KEY_INFORMATION_CLASS KeyInformationClass,
2610 OUT PVOID KeyInformation,
2611 IN ULONG Length,
2612 OUT PULONG ResultLength
2613 );
2614
2615 NTSYSCALLAPI
2616 NTSTATUS
2617 NTAPI
2618 NtQueryQuotaInformationFile(
2619 IN HANDLE FileHandle,
2620 OUT PIO_STATUS_BLOCK IoStatusBlock,
2621 OUT PVOID Buffer,
2622 IN ULONG Length,
2623 IN BOOLEAN ReturnSingleEntry,
2624 IN PVOID SidList OPTIONAL,
2625 IN ULONG SidListLength,
2626 IN PSID StartSid OPTIONAL,
2627 IN BOOLEAN RestartScan
2628 );
2629
2630 NTSYSAPI
2631 NTSTATUS
2632 NTAPI
2633 ZwQueryQuotaInformationFile(
2634 IN HANDLE FileHandle,
2635 OUT PIO_STATUS_BLOCK IoStatusBlock,
2636 OUT PVOID Buffer,
2637 IN ULONG Length,
2638 IN BOOLEAN ReturnSingleEntry,
2639 IN PVOID SidList OPTIONAL,
2640 IN ULONG SidListLength,
2641 IN PSID StartSid OPTIONAL,
2642 IN BOOLEAN RestartScan
2643 );
2644
2645 NTSTATUS
2646 NTAPI
2647 NtQueryMultipleValueKey(
2648 IN HANDLE KeyHandle,
2649 IN OUT PKEY_VALUE_ENTRY ValueList,
2650 IN ULONG NumberOfValues,
2651 OUT PVOID Buffer,
2652 IN OUT PULONG Length,
2653 OUT PULONG ReturnLength
2654 );
2655
2656 NTSYSAPI
2657 NTSTATUS
2658 NTAPI
2659 ZwQueryMultipleValueKey(
2660 IN HANDLE KeyHandle,
2661 IN OUT PKEY_VALUE_ENTRY ValueList,
2662 IN ULONG NumberOfValues,
2663 OUT PVOID Buffer,
2664 IN OUT PULONG Length,
2665 OUT PULONG ReturnLength
2666 );
2667
2668 NTSTATUS
2669 NTAPI
2670 NtQueryMutant(
2671 IN HANDLE MutantHandle,
2672 IN MUTANT_INFORMATION_CLASS MutantInformationClass,
2673 OUT PVOID MutantInformation,
2674 IN ULONG Length,
2675 OUT PULONG ResultLength
2676 );
2677
2678 NTSYSAPI
2679 NTSTATUS
2680 NTAPI
2681 ZwQueryMutant(
2682 IN HANDLE MutantHandle,
2683 IN MUTANT_INFORMATION_CLASS MutantInformationClass,
2684 OUT PVOID MutantInformation,
2685 IN ULONG Length,
2686 OUT PULONG ResultLength
2687 );
2688
2689 NTSTATUS
2690 NTAPI
2691 NtQueryObject(
2692 IN HANDLE ObjectHandle,
2693 IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
2694 OUT PVOID ObjectInformation,
2695 IN ULONG Length,
2696 OUT PULONG ResultLength OPTIONAL
2697 );
2698
2699 NTSYSAPI
2700 NTSTATUS
2701 NTAPI
2702 ZwQueryObject(
2703 IN HANDLE ObjectHandle,
2704 IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
2705 OUT PVOID ObjectInformation,
2706 IN ULONG Length,
2707 OUT PULONG ResultLength OPTIONAL
2708 );
2709
2710 NTSTATUS
2711 NTAPI
2712 NtQueryPerformanceCounter(
2713 IN PLARGE_INTEGER Counter,
2714 IN PLARGE_INTEGER Frequency
2715 );
2716
2717 NTSYSAPI
2718 NTSTATUS
2719 NTAPI
2720 ZwQueryPerformanceCounter(
2721 IN PLARGE_INTEGER Counter,
2722 IN PLARGE_INTEGER Frequency
2723 );
2724
2725 NTSTATUS
2726 NTAPI
2727 NtQuerySection(
2728 IN HANDLE SectionHandle,
2729 IN SECTION_INFORMATION_CLASS SectionInformationClass,
2730 OUT PVOID SectionInformation,
2731 IN ULONG Length,
2732 OUT PULONG ResultLength
2733 );
2734
2735 NTSYSAPI
2736 NTSTATUS
2737 NTAPI
2738 ZwQuerySection(
2739 IN HANDLE SectionHandle,
2740 IN SECTION_INFORMATION_CLASS SectionInformationClass,
2741 OUT PVOID SectionInformation,
2742 IN ULONG Length,
2743 OUT PULONG ResultLength
2744 );
2745
2746 NTSYSCALLAPI
2747 NTSTATUS
2748 NTAPI
2749 NtQuerySecurityObject(
2750 IN HANDLE Handle,
2751 IN SECURITY_INFORMATION SecurityInformation,
2752 OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
2753 IN ULONG Length,
2754 OUT PULONG ResultLength
2755 );
2756
2757 NTSYSAPI
2758 NTSTATUS
2759 NTAPI
2760 ZwQuerySecurityObject(
2761 IN HANDLE Handle,
2762 IN SECURITY_INFORMATION SecurityInformation,
2763 OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
2764 IN ULONG Length,
2765 OUT PULONG ResultLength
2766 );
2767
2768 NTSTATUS
2769 NTAPI
2770 NtQuerySemaphore(
2771 IN HANDLE SemaphoreHandle,
2772 IN SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
2773 OUT PVOID SemaphoreInformation,
2774 IN ULONG Length,
2775 OUT PULONG ReturnLength
2776 );
2777
2778 NTSYSAPI
2779 NTSTATUS
2780 NTAPI
2781 ZwQuerySemaphore(
2782 IN HANDLE SemaphoreHandle,
2783 IN SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
2784 OUT PVOID SemaphoreInformation,
2785 IN ULONG Length,
2786 OUT PULONG ReturnLength
2787 );
2788
2789 NTSTATUS
2790 NTAPI
2791 NtQuerySymbolicLinkObject(
2792 IN HANDLE SymLinkObjHandle,
2793 OUT PUNICODE_STRING LinkTarget,
2794 OUT PULONG DataWritten OPTIONAL
2795 );
2796
2797 NTSYSAPI
2798 NTSTATUS
2799 NTAPI
2800 ZwQuerySymbolicLinkObject(
2801 IN HANDLE SymLinkObjHandle,
2802 OUT PUNICODE_STRING LinkName,
2803 OUT PULONG DataWritten OPTIONAL
2804 );
2805
2806 NTSTATUS
2807 NTAPI
2808 NtQuerySystemEnvironmentValue(
2809 IN PUNICODE_STRING Name,
2810 OUT PWSTR Value,
2811 ULONG Length,
2812 PULONG ReturnLength
2813 );
2814
2815 NTSYSAPI
2816 NTSTATUS
2817 NTAPI
2818 ZwQuerySystemEnvironmentValue(
2819 IN PUNICODE_STRING Name,
2820 OUT PVOID Value,
2821 ULONG Length,
2822 PULONG ReturnLength
2823 );
2824
2825 NTSTATUS
2826 NTAPI
2827 NtQuerySystemInformation(
2828 IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
2829 OUT PVOID SystemInformation,
2830 IN ULONG Length,
2831 OUT PULONG ResultLength
2832 );
2833
2834 NTSYSAPI
2835 NTSTATUS
2836 NTAPI
2837 ZwQuerySystemInformation(
2838 IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
2839 OUT PVOID SystemInformation,
2840 IN ULONG Length,
2841 OUT PULONG ResultLength
2842 );
2843
2844 NTSTATUS
2845 NTAPI
2846 NtQuerySystemTime(
2847 OUT PLARGE_INTEGER CurrentTime
2848 );
2849
2850 NTSYSAPI
2851 NTSTATUS
2852 NTAPI
2853 ZwQuerySystemTime(
2854 OUT PLARGE_INTEGER CurrentTime
2855 );
2856
2857 NTSTATUS
2858 NTAPI
2859 NtQueryTimer(
2860 IN HANDLE TimerHandle,
2861 IN TIMER_INFORMATION_CLASS TimerInformationClass,
2862 OUT PVOID TimerInformation,
2863 IN ULONG Length,
2864 OUT PULONG ResultLength
2865 );
2866
2867 NTSYSAPI
2868 NTSTATUS
2869 NTAPI
2870 ZwQueryTimer(
2871 IN HANDLE TimerHandle,
2872 IN TIMER_INFORMATION_CLASS TimerInformationClass,
2873 OUT PVOID TimerInformation,
2874 IN ULONG Length,
2875 OUT PULONG ResultLength
2876 );
2877
2878 NTSTATUS
2879 NTAPI
2880 NtQueryTimerResolution(
2881 OUT PULONG MinimumResolution,
2882 OUT PULONG MaximumResolution,
2883 OUT PULONG ActualResolution
2884 );
2885
2886 NTSYSAPI
2887 NTSTATUS
2888 NTAPI
2889 ZwQueryTimerResolution(
2890 OUT PULONG MinimumResolution,
2891 OUT PULONG MaximumResolution,
2892 OUT PULONG ActualResolution
2893 );
2894
2895 NTSTATUS
2896 NTAPI
2897 NtQueryValueKey(
2898 IN HANDLE KeyHandle,
2899 IN PUNICODE_STRING ValueName,
2900 IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
2901 OUT PVOID KeyValueInformation,
2902 IN ULONG Length,
2903 OUT PULONG ResultLength
2904 );
2905
2906 NTSYSAPI
2907 NTSTATUS
2908 NTAPI
2909 ZwQueryValueKey(
2910 IN HANDLE KeyHandle,
2911 IN PUNICODE_STRING ValueName,
2912 IN KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass,
2913 OUT PVOID KeyValueInformation,
2914 IN ULONG Length,
2915 OUT PULONG ResultLength
2916 );
2917
2918 NTSTATUS
2919 NTAPI
2920 NtQueryVirtualMemory(
2921 IN HANDLE ProcessHandle,
2922 IN PVOID Address,
2923 IN MEMORY_INFORMATION_CLASS VirtualMemoryInformationClass,
2924 OUT PVOID VirtualMemoryInformation,
2925 IN ULONG Length,
2926 OUT PULONG ResultLength
2927 );
2928
2929 NTSYSAPI
2930 NTSTATUS
2931 NTAPI
2932 ZwQueryVirtualMemory(
2933 IN HANDLE ProcessHandle,
2934 IN PVOID Address,
2935 IN MEMORY_INFORMATION_CLASS VirtualMemoryInformationClass,
2936 OUT PVOID VirtualMemoryInformation,
2937 IN ULONG Length,
2938 OUT PULONG ResultLength
2939 );
2940
2941 NTSYSCALLAPI
2942 NTSTATUS
2943 NTAPI
2944 NtQueryVolumeInformationFile(
2945 IN HANDLE FileHandle,
2946 OUT PIO_STATUS_BLOCK IoStatusBlock,
2947 OUT PVOID FsInformation,
2948 IN ULONG Length,
2949 IN FS_INFORMATION_CLASS FsInformationClass
2950 );
2951
2952 NTSYSAPI
2953 NTSTATUS
2954 NTAPI
2955 ZwQueryVolumeInformationFile(
2956 IN HANDLE FileHandle,
2957 OUT PIO_STATUS_BLOCK IoStatusBlock,
2958 OUT PVOID FsInformation,
2959 IN ULONG Length,
2960 IN FS_INFORMATION_CLASS FsInformationClass
2961 );
2962
2963 NTSTATUS
2964 NTAPI
2965 NtQueueApcThread(
2966 HANDLE ThreadHandle,
2967 PKNORMAL_ROUTINE ApcRoutine,
2968 PVOID NormalContext,
2969 PVOID SystemArgument1,
2970 PVOID SystemArgument2
2971 );
2972
2973 NTSYSAPI
2974 NTSTATUS
2975 NTAPI
2976 ZwQueueApcThread(
2977 HANDLE ThreadHandle,
2978 PKNORMAL_ROUTINE ApcRoutine,
2979 PVOID NormalContext,
2980 PVOID SystemArgument1,
2981 PVOID SystemArgument2
2982 );
2983
2984 NTSTATUS
2985 NTAPI
2986 NtRaiseException(
2987 IN PEXCEPTION_RECORD ExceptionRecord,
2988 IN PCONTEXT Context,
2989 IN BOOLEAN SearchFrames
2990 );
2991
2992 NTSYSAPI
2993 NTSTATUS
2994 NTAPI
2995 ZwRaiseException(
2996 IN PEXCEPTION_RECORD ExceptionRecord,
2997 IN PCONTEXT Context,
2998 IN BOOLEAN SearchFrames
2999 );
3000
3001 NTSTATUS
3002 NTAPI
3003 NtRaiseHardError(
3004 IN NTSTATUS ErrorStatus,
3005 IN ULONG NumberOfParameters,
3006 IN ULONG UnicodeStringParameterMask,
3007 IN PULONG_PTR Parameters,
3008 IN ULONG ValidResponseOptions,
3009 OUT PULONG Response
3010 );
3011
3012 NTSYSAPI
3013 NTSTATUS
3014 NTAPI
3015 ZwRaiseHardError(
3016 IN NTSTATUS ErrorStatus,
3017 IN ULONG NumberOfParameters,
3018 IN PUNICODE_STRING UnicodeStringParameterMask OPTIONAL,
3019 IN PVOID *Parameters,
3020 IN HARDERROR_RESPONSE_OPTION ResponseOption,
3021 OUT PHARDERROR_RESPONSE Response
3022 );
3023
3024 NTSYSCALLAPI
3025 NTSTATUS
3026 NTAPI
3027 NtReadFile(
3028 IN HANDLE FileHandle,
3029 IN HANDLE Event OPTIONAL,
3030 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
3031 IN PVOID UserApcContext OPTIONAL,
3032 OUT PIO_STATUS_BLOCK IoStatusBlock,
3033 OUT PVOID Buffer,
3034 IN ULONG BufferLength,
3035 IN PLARGE_INTEGER ByteOffset OPTIONAL,
3036 IN PULONG Key OPTIONAL
3037 );
3038
3039 NTSYSAPI
3040 NTSTATUS
3041 NTAPI
3042 ZwReadFile(
3043 IN HANDLE FileHandle,
3044 IN HANDLE Event OPTIONAL,
3045 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
3046 IN PVOID UserApcContext OPTIONAL,
3047 OUT PIO_STATUS_BLOCK IoStatusBlock,
3048 OUT PVOID Buffer,
3049 IN ULONG BufferLength,
3050 IN PLARGE_INTEGER ByteOffset OPTIONAL,
3051 IN PULONG Key OPTIONAL
3052 );
3053
3054 NTSTATUS
3055 NTAPI
3056 NtReadFileScatter(
3057 IN HANDLE FileHandle,
3058 IN HANDLE Event OPTIONAL,
3059 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
3060 IN PVOID UserApcContext OPTIONAL,
3061 OUT PIO_STATUS_BLOCK UserIoStatusBlock,
3062 IN FILE_SEGMENT_ELEMENT BufferDescription[],
3063 IN ULONG BufferLength,
3064 IN PLARGE_INTEGER ByteOffset,
3065 IN PULONG Key OPTIONAL
3066 );
3067
3068 NTSYSAPI
3069 NTSTATUS
3070 NTAPI
3071 ZwReadFileScatter(
3072 IN HANDLE FileHandle,
3073 IN HANDLE Event OPTIONAL,
3074 IN PIO_APC_ROUTINE UserApcRoutine OPTIONAL,
3075 IN PVOID UserApcContext OPTIONAL,
3076 OUT PIO_STATUS_BLOCK UserIoStatusBlock,
3077 IN FILE_SEGMENT_ELEMENT BufferDescription[],
3078 IN ULONG BufferLength,
3079 IN PLARGE_INTEGER ByteOffset,
3080 IN PULONG Key OPTIONAL
3081 );
3082
3083 NTSTATUS
3084 NTAPI
3085 NtReadRequestData(
3086 HANDLE PortHandle,
3087 PPORT_MESSAGE Message,
3088 ULONG Index,
3089 PVOID Buffer,
3090 ULONG BufferLength,
3091 PULONG ReturnLength
3092 );
3093
3094 NTSYSAPI
3095 NTSTATUS
3096 NTAPI
3097 ZwReadRequestData(
3098 HANDLE PortHandle,
3099 PPORT_MESSAGE Message,
3100 ULONG Index,
3101 PVOID Buffer,
3102 ULONG BufferLength,
3103 PULONG ReturnLength
3104 );
3105
3106 NTSTATUS
3107 NTAPI
3108 NtReadVirtualMemory(
3109 IN HANDLE ProcessHandle,
3110 IN PVOID BaseAddress,
3111 OUT PVOID Buffer,
3112 IN ULONG NumberOfBytesToRead,
3113 OUT PULONG NumberOfBytesRead
3114 );
3115
3116 NTSYSAPI
3117 NTSTATUS
3118 NTAPI
3119 ZwReadVirtualMemory(
3120 IN HANDLE ProcessHandle,
3121 IN PVOID BaseAddress,
3122 OUT PVOID Buffer,
3123 IN ULONG NumberOfBytesToRead,
3124 OUT PULONG NumberOfBytesRead
3125 );
3126
3127 NTSTATUS
3128 NTAPI
3129 NtRegisterThreadTerminatePort(
3130 HANDLE TerminationPort
3131 );
3132
3133 NTSYSAPI
3134 NTSTATUS
3135 NTAPI
3136 ZwRegisterThreadTerminatePort(
3137 HANDLE TerminationPort
3138 );
3139
3140 NTSTATUS
3141 NTAPI
3142 NtReleaseMutant(
3143 IN HANDLE MutantHandle,
3144 IN PLONG ReleaseCount OPTIONAL
3145 );
3146
3147 NTSYSAPI
3148 NTSTATUS
3149 NTAPI
3150 ZwReleaseMutant(
3151 IN HANDLE MutantHandle,
3152 IN PLONG ReleaseCount OPTIONAL
3153 );
3154
3155 NTSTATUS
3156 NTAPI
3157 NtReleaseSemaphore(
3158 IN HANDLE SemaphoreHandle,
3159 IN LONG ReleaseCount,
3160 OUT PLONG PreviousCount
3161 );
3162
3163 NTSYSAPI
3164 NTSTATUS
3165 NTAPI
3166 ZwReleaseSemaphore(
3167 IN HANDLE SemaphoreHandle,
3168 IN LONG ReleaseCount,
3169 OUT PLONG PreviousCount
3170 );
3171
3172 NTSTATUS
3173 NTAPI
3174 NtRemoveIoCompletion(
3175 IN HANDLE IoCompletionHandle,
3176 OUT PVOID *CompletionKey,
3177 OUT PVOID *CompletionContext,
3178 OUT PIO_STATUS_BLOCK IoStatusBlock,
3179 IN PLARGE_INTEGER Timeout OPTIONAL
3180 );
3181
3182 NTSYSAPI
3183 NTSTATUS
3184 NTAPI
3185 ZwRemoveIoCompletion(
3186 IN HANDLE IoCompletionHandle,
3187 OUT PVOID *CompletionKey,
3188 OUT PVOID *CompletionContext,
3189 OUT PIO_STATUS_BLOCK IoStatusBlock,
3190 IN PLARGE_INTEGER Timeout OPTIONAL
3191 );
3192
3193 NTSTATUS
3194 NTAPI
3195 NtReplaceKey(
3196 IN POBJECT_ATTRIBUTES ObjectAttributes,
3197 IN HANDLE Key,
3198 IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
3199 );
3200
3201 NTSYSAPI
3202 NTSTATUS
3203 NTAPI
3204 ZwReplaceKey(
3205 IN POBJECT_ATTRIBUTES ObjectAttributes,
3206 IN HANDLE Key,
3207 IN POBJECT_ATTRIBUTES ReplacedObjectAttributes
3208 );
3209
3210 NTSTATUS
3211 NTAPI
3212 NtReplyPort(
3213 HANDLE PortHandle,
3214 PPORT_MESSAGE LpcReply
3215 );
3216
3217 NTSYSAPI
3218 NTSTATUS
3219 NTAPI
3220 ZwReplyPort(
3221 HANDLE PortHandle,
3222 PPORT_MESSAGE LpcReply
3223 );
3224
3225 NTSTATUS
3226 NTAPI
3227 NtReplyWaitReceivePort(
3228 HANDLE PortHandle,
3229 PVOID *PortContext OPTIONAL,
3230 PPORT_MESSAGE ReplyMessage OPTIONAL,
3231 PPORT_MESSAGE ReceiveMessage
3232 );
3233
3234 NTSYSAPI
3235 NTSTATUS
3236 NTAPI
3237 ZwReplyWaitReceivePort(
3238 HANDLE PortHandle,
3239 PVOID *PortContext OPTIONAL,
3240 PPORT_MESSAGE ReplyMessage,
3241 PPORT_MESSAGE ReceiveMessage
3242 );
3243
3244 NTSTATUS
3245 NTAPI
3246 NtReplyWaitReplyPort(
3247 HANDLE PortHandle,
3248 PPORT_MESSAGE ReplyMessage
3249 );
3250
3251 NTSYSAPI
3252 NTSTATUS
3253 NTAPI
3254 ZwReplyWaitReplyPort(
3255 HANDLE PortHandle,
3256 PPORT_MESSAGE ReplyMessage
3257 );
3258
3259 NTSTATUS
3260 NTAPI
3261 NtRequestPort(
3262 HANDLE PortHandle,
3263 PPORT_MESSAGE LpcMessage);
3264
3265 NTSYSAPI
3266 NTSTATUS
3267 NTAPI
3268 ZwRequestPort(
3269 HANDLE PortHandle,
3270 PPORT_MESSAGE LpcMessage
3271 );
3272
3273 NTSYSCALLAPI
3274 NTSTATUS
3275 NTAPI
3276 NtRequestWaitReplyPort(
3277 HANDLE PortHandle,
3278 PPORT_MESSAGE LpcReply,
3279 PPORT_MESSAGE LpcRequest
3280 );
3281
3282 NTSYSAPI
3283 NTSTATUS
3284 NTAPI
3285 ZwRequestWaitReplyPort(
3286 HANDLE PortHandle,
3287 PPORT_MESSAGE LpcReply,
3288 PPORT_MESSAGE LpcRequest
3289 );
3290
3291 NTSTATUS
3292 NTAPI
3293 NtResetEvent(
3294 HANDLE EventHandle,
3295 PLONG NumberOfWaitingThreads OPTIONAL
3296 );
3297
3298 NTSYSAPI
3299 NTSTATUS
3300 NTAPI
3301 ZwResetEvent(
3302 HANDLE EventHandle,
3303 PLONG NumberOfWaitingThreads OPTIONAL
3304 );
3305
3306 NTSTATUS
3307 NTAPI
3308 NtRestoreKey(
3309 HANDLE KeyHandle,
3310 HANDLE FileHandle,
3311 ULONG RestoreFlags
3312 );
3313
3314 NTSYSAPI
3315 NTSTATUS
3316 NTAPI
3317 ZwRestoreKey(
3318 HANDLE KeyHandle,
3319 HANDLE FileHandle,
3320 ULONG RestoreFlags
3321 );
3322
3323 NTSTATUS
3324 NTAPI
3325 NtResumeThread(
3326 IN HANDLE ThreadHandle,
3327 OUT PULONG SuspendCount
3328 );
3329
3330 NTSYSAPI
3331 NTSTATUS
3332 NTAPI
3333 ZwResumeThread(
3334 IN HANDLE ThreadHandle,
3335 OUT PULONG SuspendCount
3336 );
3337
3338 NTSTATUS
3339 NTAPI
3340 NtResumeProcess(
3341 IN HANDLE ProcessHandle
3342 );
3343
3344 NTSYSAPI
3345 NTSTATUS
3346 NTAPI
3347 ZwResumeProcess(
3348 IN HANDLE ProcessHandle
3349 );
3350
3351 NTSTATUS
3352 NTAPI
3353 NtSaveKey(
3354 IN HANDLE KeyHandle,
3355 IN HANDLE FileHandle
3356 );
3357
3358 NTSYSAPI
3359 NTSTATUS
3360 NTAPI
3361 ZwSaveKey(
3362 IN HANDLE KeyHandle,
3363 IN HANDLE FileHandle
3364 );
3365
3366 NTSTATUS
3367 NTAPI
3368 NtSaveKeyEx(
3369 IN HANDLE KeyHandle,
3370 IN HANDLE FileHandle,
3371 IN ULONG Flags
3372 );
3373
3374 NTSYSAPI
3375 NTSTATUS
3376 NTAPI
3377 ZwSaveKeyEx(
3378 IN HANDLE KeyHandle,
3379 IN HANDLE FileHandle,
3380 IN ULONG Flags
3381 );
3382
3383
3384 NTSYSCALLAPI
3385 NTSTATUS
3386 NTAPI
3387 NtSecureConnectPort(
3388 PHANDLE PortHandle,
3389 PUNICODE_STRING PortName,
3390 PSECURITY_QUALITY_OF_SERVICE SecurityQos,
3391 PPORT_VIEW ClientView OPTIONAL,
3392 PSID Sid OPTIONAL,
3393 PREMOTE_PORT_VIEW ServerView OPTIONAL,
3394 PULONG MaxMessageLength OPTIONAL,
3395 PVOID ConnectionInformation OPTIONAL,
3396 PULONG ConnectionInformationLength OPTIONAL
3397 );
3398
3399 NTSYSAPI
3400 NTSTATUS
3401 NTAPI
3402 ZwSecureConnectPort(
3403 PHANDLE PortHandle,
3404 PUNICODE_STRING PortName,
3405 PSECURITY_QUALITY_OF_SERVICE SecurityQos,
3406 PPORT_VIEW ClientView OPTIONAL,
3407 PSID Sid OPTIONAL,
3408 PREMOTE_PORT_VIEW ServerView OPTIONAL,
3409 PULONG MaxMessageLength OPTIONAL,
3410 PVOID ConnectionInformation OPTIONAL,
3411 PULONG ConnectionInformationLength OPTIONAL
3412 );
3413
3414 NTSTATUS
3415 NTAPI
3416 NtSetBootEntryOrder(
3417 IN ULONG Unknown1,
3418 IN ULONG Unknown2
3419 );
3420
3421 NTSYSAPI
3422 NTSTATUS
3423 NTAPI
3424 ZwSetBootEntryOrder(
3425 IN ULONG Unknown1,
3426 IN ULONG Unknown2
3427 );
3428
3429 NTSTATUS
3430 NTAPI
3431 NtSetBootOptions(
3432 ULONG Unknown1,
3433 ULONG Unknown2
3434 );
3435
3436 NTSYSAPI
3437 NTSTATUS
3438 NTAPI
3439 ZwSetBootOptions(
3440 ULONG Unknown1,
3441 ULONG Unknown2
3442 );
3443
3444 NTSTATUS
3445 NTAPI
3446 NtSetContextThread(
3447 IN HANDLE ThreadHandle,
3448 IN PCONTEXT Context
3449 );
3450
3451 NTSYSAPI
3452 NTSTATUS
3453 NTAPI
3454 ZwSetContextThread(
3455 IN HANDLE ThreadHandle,
3456 IN PCONTEXT Context
3457 );
3458
3459 NTSYSAPI
3460 NTSTATUS
3461 NTAPI
3462 NtSetDebugFilterState(
3463 ULONG ComponentId,
3464 ULONG Level,
3465 BOOLEAN State
3466 );
3467
3468 NTSTATUS
3469 NTAPI
3470 NtSetDefaultLocale(
3471 IN BOOLEAN UserProfile,
3472 IN LCID DefaultLocaleId
3473 );
3474
3475 NTSYSAPI
3476 NTSTATUS
3477 NTAPI
3478 ZwSetDefaultLocale(
3479 IN BOOLEAN UserProfile,
3480 IN LCID DefaultLocaleId
3481 );
3482
3483 NTSTATUS
3484 NTAPI
3485 NtSetDefaultUILanguage(
3486 LANGID LanguageId
3487 );
3488
3489 NTSYSAPI
3490 NTSTATUS
3491 NTAPI
3492 ZwSetDefaultUILanguage(
3493 LANGID LanguageId
3494 );
3495
3496 NTSTATUS
3497 NTAPI
3498 NtSetDefaultHardErrorPort(
3499 IN HANDLE PortHandle
3500 );
3501
3502 NTSYSAPI
3503 NTSTATUS
3504 NTAPI
3505 ZwSetDefaultHardErrorPort(
3506 IN HANDLE PortHandle
3507 );
3508
3509 NTSTATUS
3510 NTAPI
3511 NtSetEaFile(
3512 IN HANDLE FileHandle,
3513 IN PIO_STATUS_BLOCK IoStatusBlock,
3514 PVOID EaBuffer,
3515 ULONG EaBufferSize
3516 );
3517
3518 #ifdef NTOS_MODE_USER
3519 NTSYSAPI
3520 NTSTATUS
3521 NTAPI
3522 ZwSetEaFile(
3523 IN HANDLE FileHandle,
3524 IN PIO_STATUS_BLOCK IoStatusBlock,
3525 PVOID EaBuffer,
3526 ULONG EaBufferSize
3527 );
3528 #endif
3529
3530 NTSTATUS
3531 NTAPI
3532 NtSetEvent(
3533 IN HANDLE EventHandle,
3534 OUT PLONG PreviousState OPTIONAL
3535 );
3536
3537 NTSYSAPI
3538 NTSTATUS
3539 NTAPI
3540 ZwSetEvent(
3541 IN HANDLE EventHandle,
3542 OUT PLONG PreviousState OPTIONAL
3543 );
3544
3545 NTSTATUS
3546 NTAPI
3547 NtSetHighEventPair(
3548 IN HANDLE EventPairHandle
3549 );
3550
3551 NTSYSAPI
3552 NTSTATUS
3553 NTAPI
3554 ZwSetHighEventPair(
3555 IN HANDLE EventPairHandle
3556 );
3557 NTSTATUS
3558 NTAPI
3559 NtSetHighWaitLowEventPair(
3560 IN HANDLE EventPairHandle
3561 );
3562
3563 NTSYSAPI
3564 NTSTATUS
3565 NTAPI
3566 ZwSetHighWaitLowEventPair(
3567 IN HANDLE EventPairHandle
3568 );
3569
3570 NTSYSCALLAPI
3571 NTSTATUS
3572 NTAPI
3573 NtSetInformationFile(
3574 IN HANDLE FileHandle,
3575 IN PIO_STATUS_BLOCK IoStatusBlock,
3576 IN PVOID FileInformation,
3577 IN ULONG Length,
3578 IN FILE_INFORMATION_CLASS FileInformationClass
3579 );
3580
3581 NTSYSAPI
3582 NTSTATUS
3583 NTAPI
3584 ZwSetInformationFile(
3585 IN HANDLE FileHandle,
3586 IN PIO_STATUS_BLOCK IoStatusBlock,
3587 IN PVOID FileInformation,
3588 IN ULONG Length,
3589 IN FILE_INFORMATION_CLASS FileInformationClass
3590 );
3591
3592 NTSTATUS
3593 NTAPI
3594 NtSetInformationJobObject(
3595 HANDLE JobHandle,
3596 JOBOBJECTINFOCLASS JobInformationClass,
3597 PVOID JobInformation,
3598 ULONG JobInformationLength
3599 );
3600
3601 NTSYSAPI
3602 NTSTATUS
3603 NTAPI
3604 ZwSetInformationJobObject(
3605 HANDLE JobHandle,
3606 JOBOBJECTINFOCLASS JobInformationClass,
3607 PVOID JobInformation,
3608 ULONG JobInformationLength
3609 );
3610
3611 NTSTATUS
3612 NTAPI
3613 NtSetInformationKey(
3614 IN HANDLE KeyHandle,
3615 IN KEY_SET_INFORMATION_CLASS KeyInformationClass,
3616 IN PVOID KeyInformation,
3617 IN ULONG KeyInformationLength
3618 );
3619
3620 NTSYSAPI
3621 NTSTATUS
3622 NTAPI
3623 ZwSetInformationKey(
3624 IN HANDLE KeyHandle,
3625 IN KEY_SET_INFORMATION_CLASS KeyInformationClass,
3626 IN PVOID KeyInformation,
3627 IN ULONG KeyInformationLength
3628 );
3629
3630 NTSTATUS
3631 NTAPI
3632 NtSetInformationObject(
3633 IN HANDLE ObjectHandle,
3634 IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
3635 IN PVOID ObjectInformation,
3636 IN ULONG Length
3637 );
3638
3639 NTSYSAPI
3640 NTSTATUS
3641 NTAPI
3642 ZwSetInformationObject(
3643 IN HANDLE ObjectHandle,
3644 IN OBJECT_INFORMATION_CLASS ObjectInformationClass,
3645 IN PVOID ObjectInformation,
3646 IN ULONG Length
3647 );
3648
3649 NTSTATUS
3650 NTAPI
3651 NtSetInformationProcess(
3652 IN HANDLE ProcessHandle,
3653 IN PROCESSINFOCLASS ProcessInformationClass,
3654 IN PVOID ProcessInformation,
3655 IN ULONG ProcessInformationLength
3656 );
3657
3658 NTSYSCALLAPI
3659 NTSTATUS
3660 NTAPI
3661 NtSetInformationThread(
3662 IN HANDLE ThreadHandle,
3663 IN THREADINFOCLASS ThreadInformationClass,
3664 IN PVOID ThreadInformation,
3665 IN ULONG ThreadInformationLength
3666 );
3667
3668 NTSYSAPI
3669 NTSTATUS
3670 NTAPI
3671 ZwSetInformationThread(
3672 IN HANDLE ThreadHandle,
3673 IN THREADINFOCLASS ThreadInformationClass,
3674 IN PVOID ThreadInformation,
3675 IN ULONG ThreadInformationLength
3676 );
3677
3678 NTSYSCALLAPI
3679 NTSTATUS
3680 NTAPI
3681 NtSetInformationToken(
3682 IN HANDLE TokenHandle,
3683 IN TOKEN_INFORMATION_CLASS TokenInformationClass,
3684 OUT PVOID TokenInformation,
3685 IN ULONG TokenInformationLength
3686 );
3687
3688 NTSYSAPI
3689 NTSTATUS
3690 NTAPI
3691 ZwSetInformationToken(
3692 IN HANDLE TokenHandle,
3693 IN TOKEN_INFORMATION_CLASS TokenInformationClass,
3694 OUT PVOID TokenInformation,
3695 IN ULONG TokenInformationLength
3696 );
3697
3698 NTSTATUS
3699 NTAPI
3700 NtSetIoCompletion(
3701 IN HANDLE IoCompletionPortHandle,
3702 IN PVOID CompletionKey,
3703 IN PVOID CompletionContext,
3704 IN NTSTATUS CompletionStatus,
3705 IN ULONG CompletionInformation
3706 );
3707
3708 NTSYSAPI
3709 NTSTATUS
3710 NTAPI
3711 ZwSetIoCompletion(
3712 IN HANDLE IoCompletionPortHandle,
3713 IN PVOID CompletionKey,
3714 IN PVOID CompletionContext,
3715 IN NTSTATUS CompletionStatus,
3716 IN ULONG CompletionInformation
3717 );
3718
3719 NTSTATUS
3720 NTAPI
3721 NtSetIntervalProfile(
3722 ULONG Interval,
3723 KPROFILE_SOURCE ClockSource
3724 );
3725
3726 NTSYSAPI
3727 NTSTATUS
3728 NTAPI
3729 ZwSetIntervalProfile(
3730 ULONG Interval,
3731 KPROFILE_SOURCE ClockSource
3732 );
3733
3734 NTSTATUS
3735 NTAPI
3736 NtSetLdtEntries(
3737 ULONG Selector1,
3738 LDT_ENTRY LdtEntry1,
3739 ULONG Selector2,
3740 LDT_ENTRY LdtEntry2
3741 );
3742
3743 NTSTATUS
3744 NTAPI
3745 NtSetLowEventPair(
3746 HANDLE EventPair
3747 );
3748
3749 NTSYSAPI
3750 NTSTATUS
3751 NTAPI
3752 ZwSetLowEventPair(
3753 HANDLE EventPair
3754 );
3755
3756 NTSTATUS
3757 NTAPI
3758 NtSetLowWaitHighEventPair(
3759 HANDLE EventPair
3760 );
3761
3762 NTSYSAPI
3763 NTSTATUS
3764 NTAPI
3765 ZwSetLowWaitHighEventPair(
3766 HANDLE EventPair
3767 );
3768
3769 NTSYSCALLAPI
3770 NTSTATUS
3771 NTAPI
3772 NtSetQuotaInformationFile(
3773 HANDLE FileHandle,
3774 PIO_STATUS_BLOCK IoStatusBlock,
3775 PVOID Buffer,
3776 ULONG BufferLength
3777 );
3778
3779 NTSYSAPI
3780 NTSTATUS
3781 NTAPI
3782 ZwSetQuotaInformationFile(
3783 HANDLE FileHandle,
3784 PIO_STATUS_BLOCK IoStatusBlock,
3785 PVOID Buffer,
3786 ULONG BufferLength
3787 );
3788
3789 NTSYSCALLAPI
3790 NTSTATUS
3791 NTAPI
3792 NtSetSecurityObject(
3793 IN HANDLE Handle,
3794 IN SECURITY_INFORMATION SecurityInformation,
3795 IN PSECURITY_DESCRIPTOR SecurityDescriptor
3796 );
3797
3798 NTSYSAPI
3799 NTSTATUS
3800 NTAPI
3801 ZwSetSecurityObject(
3802 IN HANDLE Handle,
3803 IN SECURITY_INFORMATION SecurityInformation,
3804 IN PSECURITY_DESCRIPTOR SecurityDescriptor
3805 );
3806
3807 NTSTATUS
3808 NTAPI
3809 NtSetSystemEnvironmentValue(
3810 IN PUNICODE_STRING VariableName,
3811 IN PUNICODE_STRING Value
3812 );
3813
3814 NTSYSAPI
3815 NTSTATUS
3816 NTAPI
3817 ZwSetSystemEnvironmentValue(
3818 IN PUNICODE_STRING VariableName,
3819 IN PUNICODE_STRING Value
3820 );
3821
3822 NTSTATUS
3823 NTAPI
3824 NtSetSystemInformation(
3825 IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
3826 IN PVOID SystemInformation,
3827 IN ULONG SystemInformationLength
3828 );
3829
3830 NTSYSAPI
3831 NTSTATUS
3832 NTAPI
3833 ZwSetSystemInformation(
3834 IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
3835 IN PVOID SystemInformation,
3836 IN ULONG SystemInformationLength
3837 );
3838
3839 NTSYSCALLAPI
3840 NTSTATUS
3841 NTAPI
3842 NtSetSystemPowerState(
3843 IN POWER_ACTION SystemAction,
3844 IN SYSTEM_POWER_STATE MinSystemState,
3845 IN ULONG Flags
3846 );
3847
3848 NTSTATUS
3849 NTAPI
3850 NtSetSystemTime(
3851 IN PLARGE_INTEGER SystemTime,
3852 IN PLARGE_INTEGER NewSystemTime OPTIONAL
3853 );
3854
3855 NTSYSAPI
3856 NTSTATUS
3857 NTAPI
3858 ZwSetSystemTime(
3859 IN PLARGE_INTEGER SystemTime,
3860 IN PLARGE_INTEGER NewSystemTime OPTIONAL
3861 );
3862
3863 NTSTATUS
3864 NTAPI
3865 NtSetTimer(
3866 IN HANDLE TimerHandle,
3867 IN PLARGE_INTEGER DueTime,
3868 IN PTIMER_APC_ROUTINE TimerApcRoutine,
3869 IN PVOID TimerContext,
3870 IN BOOLEAN WakeTimer,
3871 IN LONG Period OPTIONAL,
3872 OUT PBOOLEAN PreviousState OPTIONAL
3873 );
3874
3875 NTSTATUS
3876 NTAPI
3877 NtSetTimerResolution(
3878 IN ULONG RequestedResolution,
3879 IN BOOLEAN SetOrUnset,
3880 OUT PULONG ActualResolution
3881 );
3882
3883 NTSYSAPI
3884 NTSTATUS
3885 NTAPI
3886 ZwSetTimerResolution(
3887 IN ULONG RequestedResolution,
3888 IN BOOLEAN SetOrUnset,
3889 OUT PULONG ActualResolution
3890 );
3891
3892 NTSTATUS
3893 NTAPI
3894 NtSetUuidSeed(
3895 IN PUCHAR UuidSeed
3896 );
3897
3898 NTSYSAPI
3899 NTSTATUS
3900 NTAPI
3901 ZwSetUuidSeed(
3902 IN PUCHAR UuidSeed
3903 );
3904
3905 NTSTATUS
3906 NTAPI
3907 NtSetValueKey(
3908 IN HANDLE KeyHandle,
3909 IN PUNICODE_STRING ValueName,
3910 IN ULONG TitleIndex OPTIONAL,
3911 IN ULONG Type,
3912 IN PVOID Data,
3913 IN ULONG DataSize
3914 );
3915
3916 NTSYSAPI
3917 NTSTATUS
3918 NTAPI
3919 ZwSetValueKey(
3920 IN HANDLE KeyHandle,
3921 IN PUNICODE_STRING ValueName,
3922 IN ULONG TitleIndex OPTIONAL,
3923 IN ULONG Type,
3924 IN PVOID Data,
3925 IN ULONG DataSize
3926 );
3927
3928 NTSYSCALLAPI
3929 NTSTATUS
3930 NTAPI
3931 NtSetVolumeInformationFile(
3932 IN HANDLE FileHandle,
3933 OUT PIO_STATUS_BLOCK IoStatusBlock,
3934 IN PVOID FsInformation,
3935 IN ULONG Length,
3936 IN FS_INFORMATION_CLASS FsInformationClass
3937 );
3938
3939 NTSYSAPI
3940 NTSTATUS
3941 NTAPI
3942 ZwSetVolumeInformationFile(
3943 IN HANDLE FileHandle,
3944 OUT PIO_STATUS_BLOCK IoStatusBlock,
3945 IN PVOID FsInformation,
3946 IN ULONG Length,
3947 IN FS_INFORMATION_CLASS FsInformationClass
3948 );
3949
3950 NTSTATUS
3951 NTAPI
3952 NtShutdownSystem(
3953 IN SHUTDOWN_ACTION Action
3954 );
3955
3956 NTSYSAPI
3957 NTSTATUS
3958 NTAPI
3959 ZwShutdownSystem(
3960 IN SHUTDOWN_ACTION Action
3961 );
3962
3963 NTSTATUS
3964 NTAPI
3965 NtSignalAndWaitForSingleObject(
3966 IN HANDLE SignalObject,
3967 IN HANDLE WaitObject,
3968 IN BOOLEAN Alertable,
3969 IN PLARGE_INTEGER Time
3970 );
3971
3972 NTSYSAPI
3973 NTSTATUS
3974 NTAPI
3975 ZwSignalAndWaitForSingleObject(
3976 IN HANDLE SignalObject,
3977 IN HANDLE WaitObject,
3978 IN BOOLEAN Alertable,
3979 IN PLARGE_INTEGER Time
3980 );
3981
3982 NTSTATUS
3983 NTAPI
3984 NtStartProfile(
3985 HANDLE ProfileHandle
3986 );
3987
3988 NTSYSAPI
3989 NTSTATUS
3990 NTAPI
3991 ZwStartProfile(
3992 HANDLE ProfileHandle
3993 );
3994
3995 NTSTATUS
3996 NTAPI
3997 NtStopProfile(
3998 HANDLE ProfileHandle
3999 );
4000
4001 NTSYSAPI
4002 NTSTATUS
4003 NTAPI
4004 ZwStopProfile(
4005 HANDLE ProfileHandle
4006 );
4007
4008 NTSTATUS
4009 NTAPI
4010 NtSuspendProcess(
4011 IN HANDLE ProcessHandle
4012 );
4013
4014 NTSYSAPI
4015 NTSTATUS
4016 NTAPI
4017 ZwSuspendProcess(
4018 IN HANDLE ProcessHandle
4019 );
4020
4021 NTSTATUS
4022 NTAPI
4023 NtSuspendThread(
4024 IN HANDLE ThreadHandle,
4025 IN PULONG PreviousSuspendCount
4026 );
4027
4028 NTSYSAPI
4029 NTSTATUS
4030 NTAPI
4031 ZwSuspendThread(
4032 IN HANDLE ThreadHandle,
4033 IN PULONG PreviousSuspendCount
4034 );
4035
4036 NTSTATUS
4037 NTAPI
4038 NtSystemDebugControl(
4039 DEBUG_CONTROL_CODE ControlCode,
4040 PVOID InputBuffer,
4041 ULONG InputBufferLength,
4042 PVOID OutputBuffer,
4043 ULONG OutputBufferLength,
4044 PULONG ReturnLength
4045 );
4046
4047 NTSTATUS
4048 NTAPI
4049 NtTerminateProcess(
4050 IN HANDLE ProcessHandle,
4051 IN NTSTATUS ExitStatus
4052 );
4053
4054 NTSYSAPI
4055 NTSTATUS
4056 NTAPI
4057 ZwTerminateProcess(
4058 IN HANDLE ProcessHandle,
4059 IN NTSTATUS ExitStatus
4060 );
4061
4062 NTSTATUS
4063 NTAPI
4064 NtTerminateThread(
4065 IN HANDLE ThreadHandle,
4066 IN NTSTATUS ExitStatus
4067 );
4068
4069 NTSYSAPI
4070 NTSTATUS
4071 NTAPI
4072 ZwTerminateThread(
4073 IN HANDLE ThreadHandle,
4074 IN NTSTATUS ExitStatus
4075 );
4076
4077 NTSTATUS
4078 NTAPI
4079 NtTerminateJobObject(
4080 HANDLE JobHandle,
4081 NTSTATUS ExitStatus
4082 );
4083
4084 NTSYSAPI
4085 NTSTATUS
4086 NTAPI
4087 ZwTerminateJobObject(
4088 HANDLE JobHandle,
4089 NTSTATUS ExitStatus
4090 );
4091
4092 NTSTATUS
4093 NTAPI
4094 NtTestAlert(
4095 VOID
4096 );
4097
4098 NTSYSAPI
4099 NTSTATUS
4100 NTAPI
4101 ZwTestAlert(
4102 VOID
4103 );
4104
4105 NTSTATUS
4106 NTAPI
4107 NtTraceEvent(
4108 IN ULONG TraceHandle,
4109 IN ULONG Flags,
4110 IN ULONG TraceHeaderLength,
4111 IN struct _EVENT_TRACE_HEADER* TraceHeader
4112 );
4113
4114 NTSYSAPI
4115 NTSTATUS
4116 NTAPI
4117 ZwTraceEvent(
4118 IN ULONG TraceHandle,
4119 IN ULONG Flags,
4120 IN ULONG TraceHeaderLength,
4121 IN struct _EVENT_TRACE_HEADER* TraceHeader
4122 );
4123
4124 NTSTATUS
4125 NTAPI
4126 NtTranslateFilePath(
4127 ULONG Unknown1,
4128 ULONG Unknown2,
4129 ULONG Unknown3
4130 );
4131
4132 NTSYSAPI
4133 NTSTATUS
4134 NTAPI
4135 ZwTranslateFilePath(
4136 ULONG Unknown1,
4137 ULONG Unknown2,
4138 ULONG Unknown3
4139 );
4140
4141 NTSTATUS
4142 NTAPI
4143 NtUnloadDriver(
4144 IN PUNICODE_STRING DriverServiceName
4145 );
4146
4147 NTSYSAPI
4148 NTSTATUS
4149 NTAPI
4150 ZwUnloadDriver(
4151 IN PUNICODE_STRING DriverServiceName
4152 );
4153
4154 NTSTATUS
4155 NTAPI
4156 NtUnloadKey(
4157 IN POBJECT_ATTRIBUTES KeyObjectAttributes
4158 );
4159
4160 NTSYSAPI