ReactOS  0.4.15-dev-3719-g41b8715
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 
560 NTSTATUS
561 NTAPI
563  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
564  _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation,
565  _In_ ULONG SystemInformationLength
566 );
567 
569 NTSTATUS
570 NTAPI
571 NtSetTimer(
572  _In_ HANDLE TimerHandle,
576  _In_ BOOLEAN WakeTimer,
579 );
580 
582 NTSTATUS
583 NTAPI
585  _In_ PUCHAR UuidSeed
586 );
587 
589 NTSTATUS
590 NTAPI
593 );
594 
597 NTSTATUS
598 NTAPI
601  _In_ PVOID Key,
604 );
605 
607 NTSTATUS
608 NTAPI
610  _In_ HANDLE EventPairHandle
611 );
612 
614 NTSTATUS
615 NTAPI
617  _In_ HANDLE EventPairHandle
618 );
619 
621 NTSTATUS
622 NTAPI
624  _In_ ULONG TraceHandle,
625  _In_ ULONG Flags,
626  _In_ ULONG TraceHeaderLength,
627  _In_ PEVENT_TRACE_HEADER TraceHeader
628 );
629 
630 NTSYSAPI
631 NTSTATUS
632 NTAPI
633 ZwAddAtom(
634  _In_ PWSTR AtomName,
635  _In_ ULONG AtomNameLength,
637 );
638 
639 #ifdef NTOS_MODE_USER
640 NTSYSAPI
641 NTSTATUS
642 NTAPI
643 ZwCancelTimer(
644  _In_ HANDLE TimerHandle,
646 );
647 #endif
648 
649 NTSYSAPI
650 NTSTATUS
651 NTAPI
654 );
655 
657 NTSYSAPI
658 NTSTATUS
659 NTAPI
660 ZwCreateEvent(
666 );
667 
668 NTSYSAPI
669 NTSTATUS
670 NTAPI
672  _Out_ PHANDLE EventPairHandle,
675 );
676 
678 NTSYSAPI
679 NTSTATUS
680 NTAPI
681 ZwCreateKeyedEvent(
682  _Out_ PHANDLE OutHandle,
686 );
687 
688 NTSYSAPI
689 NTSTATUS
690 NTAPI
692  _Out_ PHANDLE MutantHandle,
696 );
697 
698 NTSYSAPI
699 NTSTATUS
700 NTAPI
702  _Out_ PHANDLE SemaphoreHandle,
705  _In_ LONG InitialCount,
707 );
708 
709 #ifdef NTOS_MODE_USER
710 NTSYSAPI
711 NTSTATUS
712 NTAPI
713 ZwCreateTimer(
714  _Out_ PHANDLE TimerHandle,
718 );
719 #endif
720 
721 NTSYSAPI
722 NTSTATUS
723 NTAPI
726 );
727 
728 NTSYSAPI
729 NTSTATUS
730 NTAPI
733 );
734 
735 NTSYSAPI
736 NTSTATUS
737 NTAPI
738 ZwFindAtom(
739  _In_ PWSTR AtomName,
740  _In_ ULONG AtomNameLength,
742 );
743 
745 NTSTATUS
746 NTAPI
751 );
752 
753 NTSYSAPI
754 NTSTATUS
755 NTAPI
757  _Out_ PHANDLE EventPairHandle,
760 );
761 
762 NTSYSAPI
763 NTSTATUS
764 NTAPI
766  _Out_ PHANDLE MutantHandle,
769 );
770 
771 NTSYSAPI
772 NTSTATUS
773 NTAPI
775  _Out_ PHANDLE SemaphoreHandle,
776  _In_ ACCESS_MASK DesiredAcces,
778 );
779 
780 #ifdef NTOS_MODE_USER
781 NTSYSAPI
782 NTSTATUS
783 NTAPI
784 ZwOpenTimer(
785  _Out_ PHANDLE TimerHandle,
788 );
789 #endif
790 
791 NTSYSAPI
792 NTSTATUS
793 NTAPI
796  _In_opt_ PLONG PulseCount
797 );
798 
799 NTSYSAPI
800 NTSTATUS
801 NTAPI
803  _In_ BOOLEAN UserProfile,
804  _Out_ PLCID DefaultLocaleId
805 );
806 
807 NTSYSAPI
808 NTSTATUS
809 NTAPI
811  LANGID* LanguageId
812 );
813 
814 NTSYSAPI
815 NTSTATUS
816 NTAPI
819  _In_ EVENT_INFORMATION_CLASS EventInformationClass,
820  _Out_ PVOID EventInformation,
821  _In_ ULONG EventInformationLength,
823 );
824 
825 NTSYSAPI
826 NTSTATUS
827 NTAPI
830  _In_ ATOM_INFORMATION_CLASS AtomInformationClass,
831  _Out_ PVOID AtomInformation,
832  _In_ ULONG AtomInformationLength,
834 );
835 
836 NTSYSAPI
837 NTSTATUS
838 NTAPI
840  LANGID* LanguageId
841 );
842 
843 NTSYSAPI
844 NTSTATUS
845 NTAPI
847  _In_ HANDLE MutantHandle,
848  _In_ MUTANT_INFORMATION_CLASS MutantInformationClass,
849  _Out_ PVOID MutantInformation,
850  _In_ ULONG Length,
852 );
853 
854 NTSYSAPI
855 NTSTATUS
856 NTAPI
858  _In_ HANDLE SemaphoreHandle,
859  _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
860  _Out_ PVOID SemaphoreInformation,
861  _In_ ULONG Length,
863 );
864 
865 NTSYSAPI
866 NTSTATUS
867 NTAPI
870  _Out_ PWSTR Value,
871  _In_ ULONG Length,
873 );
874 
875 NTSYSAPI
876 NTSTATUS
877 NTAPI
879  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
880  _Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation,
881  _In_ ULONG SystemInformationLength,
883 );
884 
885 NTSYSAPI
886 NTSTATUS
887 NTAPI
889  _In_ HANDLE TimerHandle,
890  _In_ TIMER_INFORMATION_CLASS TimerInformationClass,
891  _Out_ PVOID TimerInformation,
892  _In_ ULONG Length,
894 );
895 
896 NTSYSAPI
897 NTSTATUS
898 NTAPI
900  _In_ NTSTATUS ErrorStatus,
901  _In_ ULONG NumberOfParameters,
902  _In_ ULONG UnicodeStringParameterMask,
904  _In_ ULONG ValidResponseOptions,
906 );
907 
908 NTSYSAPI
909 NTSTATUS
910 NTAPI
912  _In_ HANDLE MutantHandle,
913  _In_opt_ PLONG ReleaseCount
914 );
915 
916 NTSYSAPI
917 NTSTATUS
918 NTAPI
920  _In_ HANDLE SemaphoreHandle,
921  _In_ LONG ReleaseCount,
922  _Out_opt_ PLONG PreviousCount
923 );
924 
925 NTSYSAPI
926 NTSTATUS
927 NTAPI
930  _Out_opt_ PLONG NumberOfWaitingThreads
931 );
932 
933 NTSYSAPI
934 NTSTATUS
935 NTAPI
937  _In_ BOOLEAN UserProfile,
938  _In_ LCID DefaultLocaleId
939 );
940 
941 NTSYSAPI
942 NTSTATUS
943 NTAPI
945  LANGID LanguageId
946 );
947 
948 NTSYSAPI
949 NTSTATUS
950 NTAPI
952  _In_ HANDLE PortHandle
953 );
954 
955 NTSYSAPI
956 NTSTATUS
957 NTAPI
958 ZwSetEvent(
961 );
962 
963 NTSYSAPI
964 NTSTATUS
965 NTAPI
967  _In_ HANDLE EventPairHandle
968 );
969 
970 NTSYSAPI
971 NTSTATUS
972 NTAPI
974  _In_ HANDLE EventPairHandle
975 );
976 
977 NTSYSAPI
978 NTSTATUS
979 NTAPI
981  _In_ HANDLE EventPair
982 );
983 
984 NTSYSAPI
985 NTSTATUS
986 NTAPI
988  _In_ HANDLE EventPair
989 );
990 
991 NTSYSAPI
992 NTSTATUS
993 NTAPI
995  _In_ PUNICODE_STRING VariableName,
997 );
998 
999 NTSYSAPI
1000 NTSTATUS
1001 NTAPI
1003  _In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
1004  _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation,
1005  _In_ ULONG SystemInformationLength
1006 );
1007 
1008 #ifdef NTOS_MODE_USER
1009 NTSYSAPI
1010 NTSTATUS
1011 NTAPI
1012 ZwSetTimer(
1013  _In_ HANDLE TimerHandle,
1017  _In_ BOOLEAN WakeTimer,
1020 );
1021 #endif
1022 
1023 NTSYSAPI
1024 NTSTATUS
1025 NTAPI
1027  _In_ PUCHAR UuidSeed
1028 );
1029 
1030 NTSYSAPI
1031 NTSTATUS
1032 NTAPI
1035 );
1036 
1037 NTSYSAPI
1038 NTSTATUS
1039 NTAPI
1041  _In_ HANDLE EventPairHandle
1042 );
1043 
1044 NTSYSAPI
1045 NTSTATUS
1046 NTAPI
1048  _In_ HANDLE EventPairHandle
1049 );
1050 
1051 NTSYSAPI
1052 NTSTATUS
1053 NTAPI
1054 ZwTraceEvent(
1055  _In_ ULONG TraceHandle,
1056  _In_ ULONG Flags,
1057  _In_ ULONG TraceHeaderLength,
1058  _In_ PEVENT_TRACE_HEADER TraceHeader
1059 );
1060 
1061 #ifdef __cplusplus
1062 }
1063 #endif
1064 
1065 #endif
enum _SYSTEM_INFORMATION_CLASS SYSTEM_INFORMATION_CLASS
NTSYSCALLAPI NTSTATUS NTAPI NtResetEvent(_In_ HANDLE EventHandle, _Out_opt_ PLONG NumberOfWaitingThreads)
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighEventPair(_In_ HANDLE EventPairHandle)
NTSYSAPI NTSTATUS WINAPI NtWaitForKeyedEvent(HANDLE, const void *, BOOLEAN, const LARGE_INTEGER *)
_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)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3767
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultLocale(_In_ BOOLEAN UserProfile, _In_ LCID DefaultLocaleId)
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2654
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
Queries information details about a security descriptor.
Definition: Messaging.c:64
unsigned short RTL_ATOM
Definition: atom.c:42
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
NTSYSCALLAPI NTSTATUS NTAPI NtDisplayString(_In_ PUNICODE_STRING DisplayString)
#define _In_opt_
Definition: ms_sal.h:309
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)
#define _Inout_
Definition: ms_sal.h:378
_Must_inspect_result_ _In_ WDFQUEUE _In_opt_ WDFREQUEST _In_opt_ WDFFILEOBJECT _Inout_opt_ PWDF_REQUEST_PARAMETERS Parameters
Definition: wdfio.h:863
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValueEx(_In_ PUNICODE_STRING VariableName, _In_ LPGUID VendorGuid, _In_ PVOID Value, _Inout_ PULONG ReturnLength, _Inout_ PULONG Attributes)
#define _Out_
Definition: ms_sal.h:345
_In_ PVOID _In_ BOOLEAN _In_opt_ PLARGE_INTEGER Timeout
Definition: exfuncs.h:452
uint16_t * PWSTR
Definition: typedefs.h:56
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:96
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1324
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:81
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)
#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)
struct _EVENT_TRACE_HEADER * PEVENT_TRACE_HEADER
Definition: exfuncs.h:38
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultHardErrorPort(_In_ HANDLE PortHandle)
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)
NTSYSAPI NTSTATUS WINAPI NtCreateKeyedEvent(HANDLE *, ACCESS_MASK, const OBJECT_ATTRIBUTES *, ULONG)
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)
NTSYSAPI NTSTATUS NTAPI ZwOpenMutant(_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
enum _EVENT_INFORMATION_CLASS EVENT_INFORMATION_CLASS
NTSYSAPI NTSTATUS WINAPI NtReleaseKeyedEvent(HANDLE, const void *, BOOLEAN, const LARGE_INTEGER *)
__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:2930
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)
NTSYSCALLAPI NTSTATUS NTAPI NtPulseEvent(_In_ HANDLE EventHandle, _In_opt_ PLONG PulseCount)
#define _In_
Definition: ms_sal.h:308
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
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:406
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)
enum _MUTANT_INFORMATION_CLASS MUTANT_INFORMATION_CLASS
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define __kernel_entry
Definition: specstrings.h:355
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)
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)
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowWaitHighEventPair(_In_ HANDLE EventPair)
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)
_Out_ RTL_ATOM * Atom
Definition: class.h:54
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
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:454
NTSYSCALLAPI NTSTATUS NTAPI NtSetEventBoostPriority(_In_ HANDLE EventHandle)
NTSYSAPI NTSTATUS NTAPI ZwSetSystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation, _In_ ULONG SystemInformationLength)
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
#define _Out_writes_bytes_to_opt_(size, count)
Definition: ms_sal.h:361
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 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)
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationAtom(_In_ RTL_ATOM Atom, _In_ ATOM_INFORMATION_CLASS AtomInformationClass, _Out_ PVOID AtomInformation, _In_ ULONG AtomInformationLength, _Out_opt_ PULONG ReturnLength)
VOID FASTCALL ExfUnblockPushLock(_Inout_ PEX_PUSH_LOCK PushLock, _Inout_ PVOID CurrentWaitBlock)
NTSYSAPI NTSTATUS NTAPI ZwQueryInstallUILanguage(LANGID *LanguageId)
* 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)
VOID(CALLBACK * PTIMER_APC_ROUTINE)(PVOID, ULONG, LONG)
Definition: winternl.h:2018
NTSYSAPI NTSTATUS NTAPI ZwWaitLowEventPair(_In_ HANDLE EventPairHandle)
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
Definition: wdfiotarget.h:506
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)
#define _Out_opt_
Definition: ms_sal.h:346
unsigned int * PULONG
Definition: retypes.h:1
_In_ WDFTIMER _In_ LONGLONG DueTime
Definition: wdftimer.h:187
NTSYSCALLAPI NTSTATUS NTAPI NtCreateSemaphore(_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ LONG InitialCount, _In_ LONG MaximumCount)
_In_ HANDLE Handle
Definition: extypes.h:390
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:1380
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseSemaphore(_In_ HANDLE SemaphoreHandle, _In_ LONG ReleaseCount, _Out_opt_ PLONG PreviousCount)
* PLCID
Definition: ntbasedef.h:509
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:65
_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
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG _Out_ PULONG ResultLength
Definition: wdfdevice.h:3776
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultUILanguage(LANGID *LanguageId)
__kernel_entry NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemInformation(_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_reads_bytes_(SystemInformationLength) PVOID SystemInformation, _In_ ULONG SystemInformationLength)
Definition: sysinfo.c:3007
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:1713
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEventPair(_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
NTSYSCALLAPI NTSTATUS NTAPI NtSetUuidSeed(_In_ PUCHAR UuidSeed)
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:577
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 WINAPI NtOpenKeyedEvent(HANDLE *, ACCESS_MASK, const OBJECT_ATTRIBUTES *)
NTSYSAPI NTSTATUS NTAPI ZwTraceEvent(_In_ ULONG TraceHandle, _In_ ULONG Flags, _In_ ULONG TraceHeaderLength, _In_ PEVENT_TRACE_HEADER TraceHeader)
_In_ WDF_POWER_DEVICE_STATE PreviousState
Definition: wdfdevice.h:829
NTSYSAPI NTSTATUS NTAPI ZwSetUuidSeed(_In_ PUCHAR UuidSeed)
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
#define _In_reads_bytes_(size)
Definition: ms_sal.h:321
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultHardErrorPort(_In_ HANDLE PortHandle)
_Out_ PHANDLE EventHandle
Definition: iofuncs.h:857