ReactOS  0.4.13-dev-464-g6b95727
exfuncs.h
Go to the documentation of this file.
1 /*++ NDK Version: 0098
2 
3 Copyright (c) Alex Ionescu. All rights reserved.
4 
5 Header Name:
6 
7  exfuncs.h
8 
9 Abstract:
10 
11  Function definitions for the Executive.
12 
13 Author:
14 
15  Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
16 
17 --*/
18 
19 #ifndef _EXFUNCS_H
20 #define _EXFUNCS_H
21 
22 //
23 // Dependencies
24 //
25 #include <umtypes.h>
26 #include <pstypes.h>
27 #include <extypes.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 //
34 // Don't include WMI headers just for one define
35 //
36 #ifndef PEVENT_TRACE_HEADER_DEFINED
37 #define PEVENT_TRACE_HEADER_DEFINED
39 #endif
40 
41 #ifndef NTOS_MODE_USER
42 //
43 // Fast Mutex functions
44 //
45 VOID
48  _Inout_ PFAST_MUTEX FastMutex
49 );
50 
51 VOID
54  _Inout_ PFAST_MUTEX FastMutex
55 );
56 
57 //
58 // Pushlock functions
59 //
60 VOID
63  _Inout_ PEX_PUSH_LOCK PushLock
64 );
65 
66 VOID
69  _Inout_ PEX_PUSH_LOCK PushLock
70 );
71 
72 VOID
75  _Inout_ PEX_PUSH_LOCK PushLock
76 );
77 
78 VOID
81  _Inout_ PEX_PUSH_LOCK PushLock
82 );
83 
84 VOID
87  _Inout_ PEX_PUSH_LOCK PushLock
88 );
89 
90 VOID
93  _Inout_ PEX_PUSH_LOCK PushLock
94 );
95 
96 VOID
99  _Inout_ PEX_PUSH_LOCK PushLock,
100  _Inout_ PVOID CurrentWaitBlock
101 );
102 
103 //
104 // Handle Table Functions
105 //
107 BOOLEAN
108 NTAPI
111  _In_ PEX_ENUM_HANDLE_CALLBACK EnumHandleProcedure,
114 );
115 
116 //
117 // HardError Functions
118 //
119 NTSTATUS
120 NTAPI
122  _In_ NTSTATUS ErrorStatus,
123  _In_ ULONG NumberOfParameters,
124  _In_ ULONG UnicodeStringParameterMask,
126  _In_ ULONG ValidResponseOptions,
128 );
129 
130 #endif
131 
132 //
133 // Native Calls
134 //
136 NTSTATUS
137 NTAPI
138 NtAddAtom(
139  _In_ PWSTR AtomName,
140  _In_ ULONG AtomNameLength,
142 );
143 
145 NTSTATUS
146 NTAPI
148  _In_ HANDLE TimerHandle,
150 );
151 
153 NTSTATUS
154 NTAPI
157 );
158 
161 NTSTATUS
162 NTAPI
169 );
170 
172 NTSTATUS
173 NTAPI
175  _Out_ PHANDLE EventPairHandle,
178 );
179 
182 NTSTATUS
183 NTAPI
185  _Out_ PHANDLE OutHandle,
189 );
190 
192 NTSTATUS
193 NTAPI
195  _Out_ PHANDLE MutantHandle,
199 );
200 
202 NTSTATUS
203 NTAPI
205  _Out_ PHANDLE SemaphoreHandle,
208  _In_ LONG InitialCount,
210 );
211 
213 NTSTATUS
214 NTAPI
216  _Out_ PHANDLE TimerHandle,
220 );
221 
223 NTSTATUS
224 NTAPI
227 );
228 
230 NTSTATUS
231 NTAPI
234 );
235 
237 NTSTATUS
238 NTAPI
241  _In_ PVOID Buffer,
243 );
244 
246 NTSTATUS
247 NTAPI
248 NtFindAtom(
249  _In_ PWSTR AtomName,
250  _In_ ULONG AtomNameLength,
252 );
253 
255 NTSTATUS
256 NTAPI
261 );
262 
265 NTSTATUS
266 NTAPI
268  _Out_ PHANDLE OutHandle,
271 );
272 
274 NTSTATUS
275 NTAPI
277  _Out_ PHANDLE EventPairHandle,
280 );
281 
283 NTSTATUS
284 NTAPI
286  _Out_ PHANDLE MutantHandle,
289 );
290 
292 NTSTATUS
293 NTAPI
295  _Out_ PHANDLE SemaphoreHandle,
296  _In_ ACCESS_MASK DesiredAcces,
298 );
299 
301 NTSTATUS
302 NTAPI
304  _Out_ PHANDLE TimerHandle,
307 );
308 
310 NTSTATUS
311 NTAPI
314  _In_opt_ PLONG PulseCount
315 );
316 
318 NTSTATUS
319 NTAPI
321  _In_ BOOLEAN UserProfile,
322  _Out_ PLCID DefaultLocaleId
323 );
324 
326 NTSTATUS
327 NTAPI
329  LANGID* LanguageId
330 );
331 
333 NTSTATUS
334 NTAPI
337  _In_ EVENT_INFORMATION_CLASS EventInformationClass,
338  _Out_ PVOID EventInformation,
339  _In_ ULONG EventInformationLength,
341 );
342 
344 NTSTATUS
345 NTAPI
348  _In_ ATOM_INFORMATION_CLASS AtomInformationClass,
349  _Out_ PVOID AtomInformation,
350  _In_ ULONG AtomInformationLength,
352 );
353 
355 NTSTATUS
356 NTAPI
358  LANGID* LanguageId
359 );
360 
362 NTSTATUS
363 NTAPI
365  _In_ HANDLE MutantHandle,
366  _In_ MUTANT_INFORMATION_CLASS MutantInformationClass,
367  _Out_ PVOID MutantInformation,
368  _In_ ULONG Length,
370 );
371 
373 NTSTATUS
374 NTAPI
376  _In_ HANDLE SemaphoreHandle,
377  _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
378  _Out_ PVOID SemaphoreInformation,
379  _In_ ULONG Length,
381 );
382 
384 NTSTATUS
385 NTAPI
388  _Out_ PWSTR Value,
389  ULONG Length,
391 );
392 
394 NTSTATUS
395 NTAPI
397  _In_ PUNICODE_STRING VariableName,
398  _In_ LPGUID VendorGuid,
399  _In_ PVOID Value,
402 );
403 
406 NTSTATUS
407 NTAPI
409  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
410  _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation,
411  _In_ ULONG SystemInformationLength,
413 );
414 
416 NTSTATUS
417 NTAPI
419  _In_ HANDLE TimerHandle,
420  _In_ TIMER_INFORMATION_CLASS TimerInformationClass,
421  _Out_ PVOID TimerInformation,
422  _In_ ULONG Length,
424 );
425 
427 NTSTATUS
428 NTAPI
430  _In_ NTSTATUS ErrorStatus,
431  _In_ ULONG NumberOfParameters,
432  _In_ ULONG UnicodeStringParameterMask,
434  _In_ ULONG ValidResponseOptions,
436 );
437 
439 NTSTATUS
440 NTAPI
442  _In_ HANDLE MutantHandle,
443  _In_opt_ PLONG ReleaseCount
444 );
445 
448 NTSTATUS
449 NTAPI
455 );
456 
458 NTSTATUS
459 NTAPI
461  _In_ HANDLE SemaphoreHandle,
462  _In_ LONG ReleaseCount,
463  _Out_opt_ PLONG PreviousCount
464 );
465 
467 NTSTATUS
468 NTAPI
471  _Out_opt_ PLONG NumberOfWaitingThreads
472 );
473 
475 NTSTATUS
476 NTAPI
478  _In_ BOOLEAN UserProfile,
479  _In_ LCID DefaultLocaleId
480 );
481 
483 NTSTATUS
484 NTAPI
486  LANGID LanguageId
487 );
488 
490 NTSTATUS
491 NTAPI
493  _In_ HANDLE PortHandle
494 );
495 
497 NTSTATUS
498 NTAPI
499 NtSetEvent(
502 );
503 
505 NTSTATUS
506 NTAPI
509 );
510 
512 NTSTATUS
513 NTAPI
515  _In_ HANDLE EventPairHandle
516 );
517 
519 NTSTATUS
520 NTAPI
522  _In_ HANDLE EventPairHandle
523 );
524 
526 NTSTATUS
527 NTAPI
529  _In_ HANDLE EventPair
530 );
531 
533 NTSTATUS
534 NTAPI
536  _In_ HANDLE EventPair
537 );
538 
540 NTSTATUS
541 NTAPI
543  _In_ PUNICODE_STRING VariableName,
545 );
546 
548 NTSTATUS
549 NTAPI
551  _In_ PUNICODE_STRING VariableName,
552  _In_ LPGUID VendorGuid,
553  _In_ PVOID Value,
556 );
557 
559 NTSTATUS
560 NTAPI
562  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
563  _In_ PVOID SystemInformation,
564  _In_ ULONG SystemInformationLength
565 );
566 
568 NTSTATUS
569 NTAPI
570 NtSetTimer(
571  _In_ HANDLE TimerHandle,
575  _In_ BOOLEAN WakeTimer,
578 );
579 
581 NTSTATUS
582 NTAPI
584  _In_ PUCHAR UuidSeed
585 );
586 
588 NTSTATUS
589 NTAPI
592 );
593 
596 NTSTATUS
597 NTAPI
600  _In_ PVOID Key,
603 );
604 
606 NTSTATUS
607 NTAPI
609  _In_ HANDLE EventPairHandle
610 );
611 
613 NTSTATUS
614 NTAPI
616  _In_ HANDLE EventPairHandle
617 );
618 
620 NTSTATUS
621 NTAPI
623  _In_ ULONG TraceHandle,
624  _In_ ULONG Flags,
625  _In_ ULONG TraceHeaderLength,
626  _In_ PEVENT_TRACE_HEADER TraceHeader
627 );
628 
629 NTSYSAPI
630 NTSTATUS
631 NTAPI
632 ZwAddAtom(
633  _In_ PWSTR AtomName,
634  _In_ ULONG AtomNameLength,
636 );
637 
638 #ifdef NTOS_MODE_USER
639 NTSYSAPI
640 NTSTATUS
641 NTAPI
642 ZwCancelTimer(
643  _In_ HANDLE TimerHandle,
645 );
646 #endif
647 
648 NTSYSAPI
649 NTSTATUS
650 NTAPI
653 );
654 
656 NTSYSAPI
657 NTSTATUS
658 NTAPI
659 ZwCreateEvent(
665 );
666 
667 NTSYSAPI
668 NTSTATUS
669 NTAPI
671  _Out_ PHANDLE EventPairHandle,
674 );
675 
677 NTSYSAPI
678 NTSTATUS
679 NTAPI
680 ZwCreateKeyedEvent(
681  _Out_ PHANDLE OutHandle,
685 );
686 
687 NTSYSAPI
688 NTSTATUS
689 NTAPI
691  _Out_ PHANDLE MutantHandle,
695 );
696 
697 NTSYSAPI
698 NTSTATUS
699 NTAPI
701  _Out_ PHANDLE SemaphoreHandle,
704  _In_ LONG InitialCount,
706 );
707 
708 #ifdef NTOS_MODE_USER
709 NTSYSAPI
710 NTSTATUS
711 NTAPI
712 ZwCreateTimer(
713  _Out_ PHANDLE TimerHandle,
717 );
718 #endif
719 
720 NTSYSAPI
721 NTSTATUS
722 NTAPI
725 );
726 
727 NTSYSAPI
728 NTSTATUS
729 NTAPI
732 );
733 
734 NTSYSAPI
735 NTSTATUS
736 NTAPI
737 ZwFindAtom(
738  _In_ PWSTR AtomName,
739  _In_ ULONG AtomNameLength,
741 );
742 
744 NTSTATUS
745 NTAPI
750 );
751 
752 NTSYSAPI
753 NTSTATUS
754 NTAPI
756  _Out_ PHANDLE EventPairHandle,
759 );
760 
761 NTSYSAPI
762 NTSTATUS
763 NTAPI
765  _Out_ PHANDLE MutantHandle,
768 );
769 
770 NTSYSAPI
771 NTSTATUS
772 NTAPI
774  _Out_ PHANDLE SemaphoreHandle,
775  _In_ ACCESS_MASK DesiredAcces,
777 );
778 
779 #ifdef NTOS_MODE_USER
780 NTSYSAPI
781 NTSTATUS
782 NTAPI
783 ZwOpenTimer(
784  _Out_ PHANDLE TimerHandle,
787 );
788 #endif
789 
790 NTSYSAPI
791 NTSTATUS
792 NTAPI
795  _In_opt_ PLONG PulseCount
796 );
797 
798 NTSYSAPI
799 NTSTATUS
800 NTAPI
802  _In_ BOOLEAN UserProfile,
803  _Out_ PLCID DefaultLocaleId
804 );
805 
806 NTSYSAPI
807 NTSTATUS
808 NTAPI
810  LANGID* LanguageId
811 );
812 
813 NTSYSAPI
814 NTSTATUS
815 NTAPI
818  _In_ EVENT_INFORMATION_CLASS EventInformationClass,
819  _Out_ PVOID EventInformation,
820  _In_ ULONG EventInformationLength,
822 );
823 
824 NTSYSAPI
825 NTSTATUS
826 NTAPI
829  _In_ ATOM_INFORMATION_CLASS AtomInformationClass,
830  _Out_ PVOID AtomInformation,
831  _In_ ULONG AtomInformationLength,
833 );
834 
835 NTSYSAPI
836 NTSTATUS
837 NTAPI
839  LANGID* LanguageId
840 );
841 
842 NTSYSAPI
843 NTSTATUS
844 NTAPI
846  _In_ HANDLE MutantHandle,
847  _In_ MUTANT_INFORMATION_CLASS MutantInformationClass,
848  _Out_ PVOID MutantInformation,
849  _In_ ULONG Length,
851 );
852 
853 NTSYSAPI
854 NTSTATUS
855 NTAPI
857  _In_ HANDLE SemaphoreHandle,
858  _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
859  _Out_ PVOID SemaphoreInformation,
860  _In_ ULONG Length,
862 );
863 
864 NTSYSAPI
865 NTSTATUS
866 NTAPI
869  _Out_ PWSTR Value,
870  _In_ ULONG Length,
872 );
873 
874 NTSYSAPI
875 NTSTATUS
876 NTAPI
878  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
879  _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation,
880  _In_ ULONG SystemInformationLength,
882 );
883 
884 NTSYSAPI
885 NTSTATUS
886 NTAPI
888  _In_ HANDLE TimerHandle,
889  _In_ TIMER_INFORMATION_CLASS TimerInformationClass,
890  _Out_ PVOID TimerInformation,
891  _In_ ULONG Length,
893 );
894 
895 NTSYSAPI
896 NTSTATUS
897 NTAPI
899  _In_ NTSTATUS ErrorStatus,
900  _In_ ULONG NumberOfParameters,
901  _In_ ULONG UnicodeStringParameterMask,
903  _In_ ULONG ValidResponseOptions,
905 );
906 
907 NTSYSAPI
908 NTSTATUS
909 NTAPI
911  _In_ HANDLE MutantHandle,
912  _In_opt_ PLONG ReleaseCount
913 );
914 
915 NTSYSAPI
916 NTSTATUS
917 NTAPI
919  _In_ HANDLE SemaphoreHandle,
920  _In_ LONG ReleaseCount,
921  _Out_opt_ PLONG PreviousCount
922 );
923 
924 NTSYSAPI
925 NTSTATUS
926 NTAPI
929  _Out_opt_ PLONG NumberOfWaitingThreads
930 );
931 
932 NTSYSAPI
933 NTSTATUS
934 NTAPI
936  _In_ BOOLEAN UserProfile,
937  _In_ LCID DefaultLocaleId
938 );
939 
940 NTSYSAPI
941 NTSTATUS
942 NTAPI
944  LANGID LanguageId
945 );
946 
947 NTSYSAPI
948 NTSTATUS
949 NTAPI
951  _In_ HANDLE PortHandle
952 );
953 
954 NTSYSAPI
955 NTSTATUS
956 NTAPI
957 ZwSetEvent(
960 );
961 
962 NTSYSAPI
963 NTSTATUS
964 NTAPI
966  _In_ HANDLE EventPairHandle
967 );
968 
969 NTSYSAPI
970 NTSTATUS
971 NTAPI
973  _In_ HANDLE EventPairHandle
974 );
975 
976 NTSYSAPI
977 NTSTATUS
978 NTAPI
980  _In_ HANDLE EventPair
981 );
982 
983 NTSYSAPI
984 NTSTATUS
985 NTAPI
987  _In_ HANDLE EventPair
988 );
989 
990 NTSYSAPI
991 NTSTATUS
992 NTAPI
994  _In_ PUNICODE_STRING VariableName,
996 );
997 
998 NTSYSAPI
999 NTSTATUS
1000 NTAPI
1002  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
1003  _In_ PVOID SystemInformation,
1004  _In_ SIZE_T SystemInformationLength
1005 );
1006 
1007 #ifdef NTOS_MODE_USER
1008 NTSYSAPI
1009 NTSTATUS
1010 NTAPI
1011 ZwSetTimer(
1012  _In_ HANDLE TimerHandle,
1016  _In_ BOOLEAN WakeTimer,
1019 );
1020 #endif
1021 
1022 NTSYSAPI
1023 NTSTATUS
1024 NTAPI
1026  _In_ PUCHAR UuidSeed
1027 );
1028 
1029 NTSYSAPI
1030 NTSTATUS
1031 NTAPI
1034 );
1035 
1036 NTSYSAPI
1037 NTSTATUS
1038 NTAPI
1040  _In_ HANDLE EventPairHandle
1041 );
1042 
1043 NTSYSAPI
1044 NTSTATUS
1045 NTAPI
1047  _In_ HANDLE EventPairHandle
1048 );
1049 
1050 NTSYSAPI
1051 NTSTATUS
1052 NTAPI
1053 ZwTraceEvent(
1054  _In_ ULONG TraceHandle,
1055  _In_ ULONG Flags,
1056  _In_ ULONG TraceHeaderLength,
1057  _In_ PEVENT_TRACE_HEADER TraceHeader
1058 );
1059 
1060 #ifdef __cplusplus
1061 }
1062 #endif
1063 
1064 #endif
enum _SYSTEM_INFORMATION_CLASS SYSTEM_INFORMATION_CLASS
IN CINT OUT PVOID IN ULONG OUT PULONG ResultLength
Definition: conport.c:47
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
NTSYSCALLAPI NTSTATUS NTAPI NtResetEvent(_In_ HANDLE EventHandle, _Out_opt_ PLONG NumberOfWaitingThreads)
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighEventPair(_In_ HANDLE EventPairHandle)
_In_ PVOID _In_ BOOLEAN Alertable
Definition: exfuncs.h:452
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
Definition: dumpinfo.c:39
NTKERNELAPI BOOLEAN NTAPI ExEnumHandleTable(_In_ PHANDLE_TABLE HandleTable, _In_ PEX_ENUM_HANDLE_CALLBACK EnumHandleProcedure, _Inout_ PVOID Context, _Out_opt_ PHANDLE Handle)
NTSYSAPI NTSTATUS NTAPI ZwRaiseHardError(_In_ NTSTATUS ErrorStatus, _In_ ULONG NumberOfParameters, _In_ ULONG UnicodeStringParameterMask, _In_ PULONG_PTR Parameters, _In_ ULONG ValidResponseOptions, _Out_ PULONG Response)
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultLocale(_In_ BOOLEAN UserProfile, _In_ LCID DefaultLocaleId)
NTSYSAPI NTSTATUS NTAPI ZwQueryTimer(_In_ HANDLE TimerHandle, _In_ TIMER_INFORMATION_CLASS TimerInformationClass, _Out_ PVOID TimerInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
NTSYSAPI NTSTATUS NTAPI ZwSetHighEventPair(_In_ HANDLE EventPairHandle)
_IRQL_requires_max_(PASSIVE_LEVEL) NTSYSCALLAPI NTSTATUS NTAPI NtCreateEvent(_Out_ PHANDLE EventHandle
Definition: Messaging.c:64
unsigned short RTL_ATOM
Definition: atom.c:42
NTSYSCALLAPI NTSTATUS NTAPI NtDisplayString(_In_ PUNICODE_STRING DisplayString)
NTSTATUS NTAPI ExRaiseHardError(_In_ NTSTATUS ErrorStatus, _In_ ULONG NumberOfParameters, _In_ ULONG UnicodeStringParameterMask, _In_ PULONG_PTR Parameters, _In_ ULONG ValidResponseOptions, _Out_ PULONG Response)
VOID FASTCALL ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(_Inout_ PFAST_MUTEX FastMutex)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValueEx(_In_ PUNICODE_STRING VariableName, _In_ LPGUID VendorGuid, _In_ PVOID Value, _Inout_ PULONG ReturnLength, _Inout_ PULONG Attributes)
NTSYSAPI NTSTATUS WINAPI NtWaitForKeyedEvent(HANDLE, const void *, BOOLEAN, const LARGE_INTEGER *)
#define _Out_writes_bytes_to_opt_(size, count)
Definition: no_sal2.h:375
_In_ PVOID _In_ BOOLEAN _In_opt_ PLARGE_INTEGER Timeout
Definition: exfuncs.h:452
_In_ LARGE_INTEGER DueTime
Definition: kefuncs.h:524
uint16_t * PWSTR
Definition: typedefs.h:54
enum _SHUTDOWN_ACTION SHUTDOWN_ACTION
unsigned char * PUCHAR
Definition: retypes.h:3
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation, _In_ ULONG SystemInformationLength, _Out_opt_ PULONG ReturnLength)
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemEnvironmentValue(_In_ PUNICODE_STRING Name, _Out_ PWSTR Value, _In_ ULONG Length, _Out_ PULONG ReturnLength)
LONG NTSTATUS
Definition: precomp.h:26
NTSYSCALLAPI NTSTATUS NTAPI NtTraceEvent(_In_ ULONG TraceHandle, _In_ ULONG Flags, _In_ ULONG TraceHeaderLength, _In_ PEVENT_TRACE_HEADER TraceHeader)
NTSTATUS NTAPI NtCreateEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN EVENT_TYPE EventType, IN BOOLEAN InitialState)
Definition: event.c:100
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1268
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultLocale(_In_ BOOLEAN UserProfile, _Out_ PLCID DefaultLocaleId)
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseMutant(_In_ HANDLE MutantHandle, _In_opt_ PLONG ReleaseCount)
NTSYSCALLAPI NTSTATUS NTAPI ZwOpenEvent(_Out_ PHANDLE EventHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
static XMS_HANDLE HandleTable[XMS_MAX_HANDLES]
Definition: himem.c:83
#define NTSYSCALLAPI
Definition: ntbasedef.h:204
DWORD LCID
Definition: nls.h:13
NTSYSCALLAPI NTSTATUS NTAPI NtDeleteAtom(_In_ RTL_ATOM Atom)
WORD LANGID
Definition: typedefs.h:79
VOID FASTCALL ExfReleasePushLockShared(_Inout_ PEX_PUSH_LOCK PushLock)
NTSYSAPI NTSTATUS NTAPI ZwSetLowEventPair(_In_ HANDLE EventPair)
VOID FASTCALL ExEnterCriticalRegionAndAcquireFastMutexUnsafe(_Inout_ PFAST_MUTEX FastMutex)
NTSYSAPI NTSTATUS NTAPI ZwDisplayString(_In_ PUNICODE_STRING DisplayString)
_Out_ RTL_ATOM * Atom
Definition: class.h:54
#define FASTCALL
Definition: nt_native.h:50
#define NTSYSAPI
Definition: ntoskrnl.h:14
NTSYSCALLAPI NTSTATUS NTAPI NtAddAtom(_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Inout_ PRTL_ATOM Atom)
NTSYSCALLAPI NTSTATUS NTAPI NtCancelTimer(_In_ HANDLE TimerHandle, _Out_opt_ PBOOLEAN CurrentState)
NTSYSAPI NTSTATUS NTAPI ZwClearEvent(_In_ HANDLE EventHandle)
#define _In_opt_
Definition: no_sal2.h:213
VOID(CALLBACK * PTIMER_APC_ROUTINE)(PVOID, ULONG, LONG)
Definition: winternl.h:2018
struct _EVENT_TRACE_HEADER * PEVENT_TRACE_HEADER
Definition: exfuncs.h:38
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultHardErrorPort(_In_ HANDLE PortHandle)
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultUILanguage(LANGID LanguageId)
NTSYSCALLAPI NTSTATUS NTAPI NtRaiseHardError(_In_ NTSTATUS ErrorStatus, _In_ ULONG NumberOfParameters, _In_ ULONG UnicodeStringParameterMask, _In_ PULONG_PTR Parameters, _In_ ULONG ValidResponseOptions, _Out_ PULONG Response)
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
long LONG
Definition: pedump.c:60
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySemaphore(_In_ HANDLE SemaphoreHandle, _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass, _Out_ PVOID SemaphoreInformation, _In_ ULONG Length, _Out_ PULONG ReturnLength)
_In_ ULONG BufferLength
Definition: usbdlib.h:225
NTSYSAPI NTSTATUS NTAPI ZwOpenMutant(_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
_In_ ACCESS_MASK DesiredAccess
Definition: exfuncs.h:165
enum _EVENT_INFORMATION_CLASS EVENT_INFORMATION_CLASS
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation, _In_ ULONG SystemInformationLength, _Out_opt_ PULONG ReturnLength)
Definition: sysinfo.c:2845
NTSYSCALLAPI NTSTATUS NTAPI NtWaitLowEventPair(_In_ HANDLE EventPairHandle)
unsigned char BOOLEAN
NTSYSAPI NTSTATUS NTAPI ZwFindAtom(_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Out_opt_ PRTL_ATOM Atom)
NTSYSAPI NTSTATUS WINAPI NtOpenKeyedEvent(HANDLE *, ACCESS_MASK, const OBJECT_ATTRIBUTES *)
NTSYSCALLAPI NTSTATUS NTAPI NtPulseEvent(_In_ HANDLE EventHandle, _In_opt_ PLONG PulseCount)
#define _Out_
Definition: no_sal2.h:323
VOID FASTCALL ExfReleasePushLock(_Inout_ PEX_PUSH_LOCK PushLock)
#define NTKERNELAPI
NTSYSAPI NTSTATUS NTAPI ZwWaitHighEventPair(_In_ HANDLE EventPairHandle)
Definition: bufpool.h:45
NTSYSAPI NTSTATUS NTAPI ZwShutdownSystem(_In_ SHUTDOWN_ACTION Action)
NTSYSCALLAPI NTSTATUS NTAPI NtWaitHighEventPair(_In_ HANDLE EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenSemaphore(_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAcces, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSCALLAPI NTSTATUS NTAPI NtCreateMutant(_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ BOOLEAN InitialOwner)
NTSYSCALLAPI NTSTATUS NTAPI NtCreateTimer(_Out_ PHANDLE TimerHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ TIMER_TYPE TimerType)
VOID FASTCALL ExfAcquirePushLockExclusive(_Inout_ PEX_PUSH_LOCK PushLock)
enum _EVENT_TYPE EVENT_TYPE
enum _ATOM_INFORMATION_CLASS ATOM_INFORMATION_CLASS
NTSYSAPI NTSTATUS NTAPI ZwQuerySemaphore(_In_ HANDLE SemaphoreHandle, _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass, _Out_ PVOID SemaphoreInformation, _In_ ULONG Length, _Out_ PULONG ReturnLength)
#define _Out_opt_
Definition: no_sal2.h:339
_In_ HANDLE Handle
Definition: extypes.h:390
enum _MUTANT_INFORMATION_CLASS MUTANT_INFORMATION_CLASS
#define __kernel_entry
Definition: specstrings.h:50
NTSYSCALLAPI NTSTATUS NTAPI NtQueryEvent(_In_ HANDLE EventHandle, _In_ EVENT_INFORMATION_CLASS EventInformationClass, _Out_ PVOID EventInformation, _In_ ULONG EventInformationLength, _Out_ PULONG ReturnLength)
NTSYSAPI NTSTATUS NTAPI ZwCreateMutant(_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ BOOLEAN InitialOwner)
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE _In_ BOOLEAN InitialState
Definition: exfuncs.h:165
NTSYSCALLAPI NTSTATUS NTAPI NtClearEvent(_In_ HANDLE EventHandle)
_In_ PLIST_ENTRY _In_ PSTRING _In_ USHORT _In_opt_ PSTRING _In_opt_ PSTRING _In_ ULONG _In_ ULONG Action
Definition: fsrtlfuncs.h:738
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultLocale(_In_ BOOLEAN UserProfile, _Out_ PLCID DefaultLocaleId)
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
NTSYSCALLAPI NTSTATUS NTAPI NtOpenMutant(_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSCALLAPI NTSTATUS NTAPI NtShutdownSystem(_In_ SHUTDOWN_ACTION Action)
enum _TIMER_INFORMATION_CLASS TIMER_INFORMATION_CLASS
NTSYSAPI NTSTATUS NTAPI ZwReleaseMutant(_In_ HANDLE MutantHandle, _In_opt_ PLONG ReleaseCount)
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultLocale(_In_ BOOLEAN UserProfile, _In_ LCID DefaultLocaleId)
#define _Inout_
Definition: no_sal2.h:244
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowWaitHighEventPair(_In_ HANDLE EventPair)
NTSYSAPI NTSTATUS NTAPI ZwSetSystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ PVOID SystemInformation, _In_ SIZE_T SystemInformationLength)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValue(_In_ PUNICODE_STRING Name, _Out_ PWSTR Value, ULONG Length, PULONG ReturnLength)
Definition: ncftp.h:89
NTSYSAPI NTSTATUS NTAPI ZwQueryMutant(_In_ HANDLE MutantHandle, _In_ MUTANT_INFORMATION_CLASS MutantInformationClass, _Out_ PVOID MutantInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
VOID FASTCALL ExfTryToWakePushLock(_Inout_ PEX_PUSH_LOCK PushLock)
NTSYSCALLAPI NTSTATUS NTAPI NtEnumerateSystemEnvironmentValuesEx(_In_ ULONG InformationClass, _In_ PVOID Buffer, _In_ ULONG BufferLength)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryTimer(_In_ HANDLE TimerHandle, _In_ TIMER_INFORMATION_CLASS TimerInformationClass, _Out_ PVOID TimerInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
NTSYSAPI NTSTATUS NTAPI ZwAddAtom(_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Inout_ PRTL_ATOM Atom)
enum _TIMER_TYPE TIMER_TYPE
NTSYSAPI NTSTATUS NTAPI ZwResetEvent(_In_ HANDLE EventHandle, _Out_opt_ PLONG NumberOfWaitingThreads)
char * PBOOLEAN
Definition: retypes.h:11
NTSYSCALLAPI NTSTATUS NTAPI NtCreateEventPair(_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultUILanguage(LANGID *LanguageId)
NTSYSAPI NTSTATUS NTAPI ZwReleaseSemaphore(_In_ HANDLE SemaphoreHandle, _In_ LONG ReleaseCount, _Out_opt_ PLONG PreviousCount)
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ TIMER_TYPE TimerType
Definition: zwfuncs.h:401
_In_ PPCI_DEVICE_PRESENCE_PARAMETERS Parameters
Definition: iotypes.h:871
NTSYSCALLAPI NTSTATUS NTAPI NtFindAtom(_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Out_opt_ PRTL_ATOM Atom)
enum _SEMAPHORE_INFORMATION_CLASS SEMAPHORE_INFORMATION_CLASS
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
NTSYSCALLAPI NTSTATUS NTAPI NtSetEventBoostPriority(_In_ HANDLE EventHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInstallUILanguage(LANGID *LanguageId)
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes
Definition: exfuncs.h:165
NTSYSCALLAPI NTSTATUS NTAPI NtSetTimer(_In_ HANDLE TimerHandle, _In_ PLARGE_INTEGER DueTime, _In_ PTIMER_APC_ROUTINE TimerApcRoutine, _In_ PVOID TimerContext, _In_ BOOLEAN WakeTimer, _In_opt_ LONG Period, _Out_opt_ PBOOLEAN PreviousState)
VOID FASTCALL ExfAcquirePushLockShared(_Inout_ PEX_PUSH_LOCK PushLock)
NTSYSAPI NTSTATUS NTAPI ZwCreateEventPair(_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI ZwSetSystemEnvironmentValue(_In_ PUNICODE_STRING VariableName, _In_ PUNICODE_STRING Value)
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowEventPair(_In_ HANDLE EventPair)
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
NTSYSAPI NTSTATUS NTAPI ZwSetEvent(_In_ HANDLE EventHandle, _Out_opt_ PLONG PreviousState)
VOID FASTCALL ExfReleasePushLockExclusive(_Inout_ PEX_PUSH_LOCK PushLock)
VOID DisplayString(LPWSTR Msg)
Definition: misc.c:211
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighWaitLowEventPair(_In_ HANDLE EventPairHandle)
unsigned short * PRTL_ATOM
Definition: atom.c:42
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ PVOID SystemInformation, _In_ ULONG SystemInformationLength)
NTSYSCALLAPI NTSTATUS NTAPI NtSetEvent(_In_ HANDLE EventHandle, _Out_opt_ PLONG PreviousState)
NTSYSAPI NTSTATUS NTAPI ZwDeleteAtom(_In_ RTL_ATOM Atom)
NTSYSAPI NTSTATUS NTAPI ZwPulseEvent(_In_ HANDLE EventHandle, _In_opt_ PLONG PulseCount)
#define _In_
Definition: no_sal2.h:204
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationAtom(_In_ RTL_ATOM Atom, _In_ ATOM_INFORMATION_CLASS AtomInformationClass, _Out_ PVOID AtomInformation, _In_ ULONG AtomInformationLength, _Out_opt_ PULONG ReturnLength)
ULONG_PTR SIZE_T
Definition: typedefs.h:78
VOID FASTCALL ExfUnblockPushLock(_Inout_ PEX_PUSH_LOCK PushLock, _Inout_ PVOID CurrentWaitBlock)
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE _In_opt_ PVOID _In_ BOOLEAN _In_opt_ LONG _Out_opt_ PBOOLEAN PreviousState
Definition: zwfuncs.h:428
NTSYSAPI NTSTATUS NTAPI ZwQueryInstallUILanguage(LANGID *LanguageId)
_Must_inspect_result_ _In_ USHORT _In_ PHIDP_PREPARSED_DATA _Out_writes_to_ LengthAttributes PHIDP_EXTENDED_ATTRIBUTES Attributes
Definition: hidpi.h:348
* PFAST_MUTEX
Definition: extypes.h:17
NTSYSAPI NTSTATUS NTAPI ZwOpenEventPair(_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI ZwOpenSemaphore(_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAcces, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSAPI NTSTATUS NTAPI ZwWaitLowEventPair(_In_ HANDLE EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenTimer(_Out_ PHANDLE TimerHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValueEx(_In_ PUNICODE_STRING VariableName, _In_ LPGUID VendorGuid, _In_ PVOID Value, _Inout_ PULONG ReturnLength, _Inout_ PULONG Attributes)
NTSYSAPI NTSTATUS WINAPI NtReleaseKeyedEvent(HANDLE, const void *, BOOLEAN, const LARGE_INTEGER *)
unsigned int * PULONG
Definition: retypes.h:1
NTSYSCALLAPI NTSTATUS NTAPI NtCreateSemaphore(_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ LONG InitialCount, _In_ LONG MaximumCount)
NTSYSAPI NTSTATUS NTAPI ZwQueryEvent(_In_ HANDLE EventHandle, _In_ EVENT_INFORMATION_CLASS EventInformationClass, _Out_ PVOID EventInformation, _In_ ULONG EventInformationLength, _Out_ PULONG ReturnLength)
*Count PHARDWARE_COUNTER _In_ ULONG MaximumCount
Definition: kefuncs.h:1460
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseSemaphore(_In_ HANDLE SemaphoreHandle, _In_ LONG ReleaseCount, _Out_opt_ PLONG PreviousCount)
* PLCID
Definition: ntbasedef.h:516
unsigned int ULONG
Definition: retypes.h:1
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE _In_opt_ PVOID TimerContext
Definition: zwfuncs.h:428
uint32_t * PULONG_PTR
Definition: typedefs.h:63
_In_ PLARGE_INTEGER _In_opt_ PTIMER_APC_ROUTINE TimerApcRoutine
Definition: zwfuncs.h:428
_In_ ACCESS_MASK _In_opt_ POBJECT_ATTRIBUTES _In_ EVENT_TYPE EventType
Definition: exfuncs.h:165
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultUILanguage(LANGID *LanguageId)
NTSYSAPI NTSTATUS NTAPI ZwSetHighWaitLowEventPair(_In_ HANDLE EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationAtom(_In_ RTL_ATOM Atom, _In_ ATOM_INFORMATION_CLASS AtomInformationClass, _Out_ PVOID AtomInformation, _In_ ULONG AtomInformationLength, _Out_opt_ PULONG ReturnLength)
_In_ FILTER_INFORMATION_CLASS InformationClass
Definition: fltkernel.h:1714
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEventPair(_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSCALLAPI NTSTATUS NTAPI NtSetUuidSeed(_In_ PUCHAR UuidSeed)
NTSYSAPI NTSTATUS WINAPI NtCreateKeyedEvent(HANDLE *, ACCESS_MASK, const OBJECT_ATTRIBUTES *, ULONG)
signed int * PLONG
Definition: retypes.h:5
NTSYSAPI NTSTATUS NTAPI ZwSetLowWaitHighEventPair(_In_ HANDLE EventPair)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryMutant(_In_ HANDLE MutantHandle, _In_ MUTANT_INFORMATION_CLASS MutantInformationClass, _Out_ PVOID MutantInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValue(_In_ PUNICODE_STRING VariableName, _In_ PUNICODE_STRING Value)
_In_ BOOLEAN InitialOwner
Definition: kefuncs.h:590
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEvent(_Out_ PHANDLE EventHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
ULONG ACCESS_MASK
Definition: nt_native.h:40
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultUILanguage(LANGID LanguageId)
_Out_opt_ PBOOLEAN CurrentState
Definition: zwfuncs.h:393
NTSYSAPI NTSTATUS NTAPI ZwCreateSemaphore(_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ LONG InitialCount, _In_ LONG MaximumCount)
NTSYSAPI NTSTATUS NTAPI ZwTraceEvent(_In_ ULONG TraceHandle, _In_ ULONG Flags, _In_ ULONG TraceHeaderLength, _In_ PEVENT_TRACE_HEADER TraceHeader)
NTSYSAPI NTSTATUS NTAPI ZwSetUuidSeed(_In_ PUCHAR UuidSeed)
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultHardErrorPort(_In_ HANDLE PortHandle)
_Out_ PHANDLE EventHandle
Definition: iofuncs.h:855