ReactOS  0.4.11-dev-195-gef016bf
exfuncs.h File Reference
#include <umtypes.h>
#include <pstypes.h>
#include <extypes.h>
Include dependency graph for exfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PEVENT_TRACE_HEADER_DEFINED
 

Typedefs

typedef struct
_EVENT_TRACE_HEADER
PEVENT_TRACE_HEADER
 

Functions

VOID FASTCALL ExEnterCriticalRegionAndAcquireFastMutexUnsafe (_Inout_ PFAST_MUTEX FastMutex)
 
VOID FASTCALL ExReleaseFastMutexUnsafeAndLeaveCriticalRegion (_Inout_ PFAST_MUTEX FastMutex)
 
VOID FASTCALL ExfAcquirePushLockExclusive (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfAcquirePushLockShared (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfReleasePushLock (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfReleasePushLockExclusive (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfReleasePushLockShared (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfTryToWakePushLock (_Inout_ PEX_PUSH_LOCK PushLock)
 
VOID FASTCALL ExfUnblockPushLock (_Inout_ PEX_PUSH_LOCK PushLock, _Inout_ PVOID CurrentWaitBlock)
 
NTKERNELAPI BOOLEAN NTAPI ExEnumHandleTable (_In_ PHANDLE_TABLE HandleTable, _In_ PEX_ENUM_HANDLE_CALLBACK EnumHandleProcedure, _Inout_ PVOID Context, _Out_opt_ PHANDLE Handle)
 
NTSTATUS NTAPI ExRaiseHardError (_In_ NTSTATUS ErrorStatus, _In_ ULONG NumberOfParameters, _In_ ULONG UnicodeStringParameterMask, _In_ PULONG_PTR Parameters, _In_ ULONG ValidResponseOptions, _Out_ PULONG Response)
 
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)
 
NTSYSCALLAPI NTSTATUS NTAPI NtClearEvent (_In_ HANDLE EventHandle)
 
 _IRQL_requires_max_ (PASSIVE_LEVEL) NTSYSCALLAPI NTSTATUS NTAPI NtCreateEvent(_Out_ PHANDLE EventHandle
 
NTSYSCALLAPI NTSTATUS NTAPI NtCreateEventPair (_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _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 NtCreateSemaphore (_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ LONG InitialCount, _In_ LONG MaximumCount)
 
NTSYSCALLAPI NTSTATUS NTAPI NtCreateTimer (_Out_ PHANDLE TimerHandle, _In_ ACCESS_MASK DesiredAccess, _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ TIMER_TYPE TimerType)
 
NTSYSCALLAPI NTSTATUS NTAPI NtDeleteAtom (_In_ RTL_ATOM Atom)
 
NTSYSCALLAPI NTSTATUS NTAPI NtDisplayString (_In_ PUNICODE_STRING DisplayString)
 
NTSYSCALLAPI NTSTATUS NTAPI NtEnumerateSystemEnvironmentValuesEx (_In_ ULONG InformationClass, _In_ PVOID Buffer, _In_ ULONG BufferLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtFindAtom (_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Out_opt_ PRTL_ATOM Atom)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEvent (_Out_ PHANDLE EventHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEventPair (_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenMutant (_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenSemaphore (_Out_ PHANDLE SemaphoreHandle, _In_ ACCESS_MASK DesiredAcces, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtOpenTimer (_Out_ PHANDLE TimerHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtPulseEvent (_In_ HANDLE EventHandle, _In_opt_ PLONG PulseCount)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultLocale (_In_ BOOLEAN UserProfile, _Out_ PLCID DefaultLocaleId)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultUILanguage (LANGID *LanguageId)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryEvent (_In_ HANDLE EventHandle, _In_ EVENT_INFORMATION_CLASS EventInformationClass, _Out_ PVOID EventInformation, _In_ ULONG EventInformationLength, _Out_ PULONG ReturnLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationAtom (_In_ RTL_ATOM Atom, _In_ ATOM_INFORMATION_CLASS AtomInformationClass, _Out_ PVOID AtomInformation, _In_ ULONG AtomInformationLength, _Out_opt_ PULONG ReturnLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInstallUILanguage (LANGID *LanguageId)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryMutant (_In_ HANDLE MutantHandle, _In_ MUTANT_INFORMATION_CLASS MutantInformationClass, _Out_ PVOID MutantInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySemaphore (_In_ HANDLE SemaphoreHandle, _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass, _Out_ PVOID SemaphoreInformation, _In_ ULONG Length, _Out_ PULONG ReturnLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValue (_In_ PUNICODE_STRING Name, _Out_ PWSTR Value, ULONG Length, PULONG ReturnLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValueEx (_In_ PUNICODE_STRING VariableName, _In_ LPGUID VendorGuid, _In_ PVOID Value, _Inout_ PULONG ReturnLength, _Inout_ PULONG Attributes)
 
__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)
 
NTSYSCALLAPI NTSTATUS NTAPI NtQueryTimer (_In_ HANDLE TimerHandle, _In_ TIMER_INFORMATION_CLASS TimerInformationClass, _Out_ PVOID TimerInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtRaiseHardError (_In_ NTSTATUS ErrorStatus, _In_ ULONG NumberOfParameters, _In_ ULONG UnicodeStringParameterMask, _In_ PULONG_PTR Parameters, _In_ ULONG ValidResponseOptions, _Out_ PULONG Response)
 
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseMutant (_In_ HANDLE MutantHandle, _In_opt_ PLONG ReleaseCount)
 
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseSemaphore (_In_ HANDLE SemaphoreHandle, _In_ LONG ReleaseCount, _Out_opt_ PLONG PreviousCount)
 
NTSYSCALLAPI NTSTATUS NTAPI NtResetEvent (_In_ HANDLE EventHandle, _Out_opt_ PLONG NumberOfWaitingThreads)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultLocale (_In_ BOOLEAN UserProfile, _In_ LCID DefaultLocaleId)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultUILanguage (LANGID LanguageId)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultHardErrorPort (_In_ HANDLE PortHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetEvent (_In_ HANDLE EventHandle, _Out_opt_ PLONG PreviousState)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetEventBoostPriority (_In_ HANDLE EventHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighWaitLowEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowEventPair (_In_ HANDLE EventPair)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowWaitHighEventPair (_In_ HANDLE EventPair)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValue (_In_ PUNICODE_STRING VariableName, _In_ PUNICODE_STRING Value)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValueEx (_In_ PUNICODE_STRING VariableName, _In_ LPGUID VendorGuid, _In_ PVOID Value, _Inout_ PULONG ReturnLength, _Inout_ PULONG Attributes)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemInformation (_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ PVOID SystemInformation, _In_ ULONG SystemInformationLength)
 
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)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetUuidSeed (_In_ PUCHAR UuidSeed)
 
NTSYSCALLAPI NTSTATUS NTAPI NtShutdownSystem (_In_ SHUTDOWN_ACTION Action)
 
NTSYSCALLAPI NTSTATUS NTAPI NtWaitHighEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtWaitLowEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSCALLAPI NTSTATUS NTAPI NtTraceEvent (_In_ ULONG TraceHandle, _In_ ULONG Flags, _In_ ULONG TraceHeaderLength, _In_ PEVENT_TRACE_HEADER TraceHeader)
 
NTSYSAPI NTSTATUS NTAPI ZwAddAtom (_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Inout_ PRTL_ATOM Atom)
 
NTSYSAPI NTSTATUS NTAPI ZwClearEvent (_In_ HANDLE EventHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwCreateEventPair (_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSAPI NTSTATUS NTAPI ZwCreateMutant (_Out_ PHANDLE MutantHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes, _In_ BOOLEAN InitialOwner)
 
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 ZwDeleteAtom (_In_ RTL_ATOM Atom)
 
NTSYSAPI NTSTATUS NTAPI ZwDisplayString (_In_ PUNICODE_STRING DisplayString)
 
NTSYSAPI NTSTATUS NTAPI ZwFindAtom (_In_ PWSTR AtomName, _In_ ULONG AtomNameLength, _Out_opt_ PRTL_ATOM Atom)
 
NTSYSCALLAPI NTSTATUS NTAPI ZwOpenEvent (_Out_ PHANDLE EventHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSAPI NTSTATUS NTAPI ZwOpenEventPair (_Out_ PHANDLE EventPairHandle, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes)
 
NTSYSAPI NTSTATUS NTAPI ZwOpenMutant (_Out_ PHANDLE MutantHandle, _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 ZwPulseEvent (_In_ HANDLE EventHandle, _In_opt_ PLONG PulseCount)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultLocale (_In_ BOOLEAN UserProfile, _Out_ PLCID DefaultLocaleId)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultUILanguage (LANGID *LanguageId)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryEvent (_In_ HANDLE EventHandle, _In_ EVENT_INFORMATION_CLASS EventInformationClass, _Out_ PVOID EventInformation, _In_ ULONG EventInformationLength, _Out_ PULONG ReturnLength)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationAtom (_In_ RTL_ATOM Atom, _In_ ATOM_INFORMATION_CLASS AtomInformationClass, _Out_ PVOID AtomInformation, _In_ ULONG AtomInformationLength, _Out_opt_ PULONG ReturnLength)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryInstallUILanguage (LANGID *LanguageId)
 
NTSYSAPI NTSTATUS NTAPI ZwQueryMutant (_In_ HANDLE MutantHandle, _In_ MUTANT_INFORMATION_CLASS MutantInformationClass, _Out_ PVOID MutantInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
NTSYSAPI NTSTATUS NTAPI ZwQuerySemaphore (_In_ HANDLE SemaphoreHandle, _In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass, _Out_ PVOID SemaphoreInformation, _In_ ULONG Length, _Out_ PULONG ReturnLength)
 
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemEnvironmentValue (_In_ PUNICODE_STRING Name, _Out_ PWSTR Value, _In_ ULONG Length, _Out_ PULONG ReturnLength)
 
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 ZwQueryTimer (_In_ HANDLE TimerHandle, _In_ TIMER_INFORMATION_CLASS TimerInformationClass, _Out_ PVOID TimerInformation, _In_ ULONG Length, _Out_ PULONG ResultLength)
 
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 ZwReleaseMutant (_In_ HANDLE MutantHandle, _In_opt_ PLONG ReleaseCount)
 
NTSYSAPI NTSTATUS NTAPI ZwReleaseSemaphore (_In_ HANDLE SemaphoreHandle, _In_ LONG ReleaseCount, _Out_opt_ PLONG PreviousCount)
 
NTSYSAPI NTSTATUS NTAPI ZwResetEvent (_In_ HANDLE EventHandle, _Out_opt_ PLONG NumberOfWaitingThreads)
 
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultLocale (_In_ BOOLEAN UserProfile, _In_ LCID DefaultLocaleId)
 
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultUILanguage (LANGID LanguageId)
 
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultHardErrorPort (_In_ HANDLE PortHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwSetEvent (_In_ HANDLE EventHandle, _Out_opt_ PLONG PreviousState)
 
NTSYSAPI NTSTATUS NTAPI ZwSetHighEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwSetHighWaitLowEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwSetLowEventPair (_In_ HANDLE EventPair)
 
NTSYSAPI NTSTATUS NTAPI ZwSetLowWaitHighEventPair (_In_ HANDLE EventPair)
 
NTSYSAPI NTSTATUS NTAPI ZwSetSystemEnvironmentValue (_In_ PUNICODE_STRING VariableName, _In_ PUNICODE_STRING Value)
 
NTSYSAPI NTSTATUS NTAPI ZwSetSystemInformation (_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass, _In_ PVOID SystemInformation, _In_ SIZE_T SystemInformationLength)
 
NTSYSAPI NTSTATUS NTAPI ZwSetUuidSeed (_In_ PUCHAR UuidSeed)
 
NTSYSAPI NTSTATUS NTAPI ZwShutdownSystem (_In_ SHUTDOWN_ACTION Action)
 
NTSYSAPI NTSTATUS NTAPI ZwWaitHighEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwWaitLowEventPair (_In_ HANDLE EventPairHandle)
 
NTSYSAPI NTSTATUS NTAPI ZwTraceEvent (_In_ ULONG TraceHandle, _In_ ULONG Flags, _In_ ULONG TraceHeaderLength, _In_ PEVENT_TRACE_HEADER TraceHeader)
 

Variables

_In_ ACCESS_MASK DesiredAccess
 
_In_ ACCESS_MASK _In_opt_
POBJECT_ATTRIBUTES 
ObjectAttributes
 
_In_ ACCESS_MASK _In_opt_
POBJECT_ATTRIBUTES _In_
EVENT_TYPE 
EventType
 
_In_ ACCESS_MASK _In_opt_
POBJECT_ATTRIBUTES _In_
EVENT_TYPE _In_ BOOLEAN 
InitialState
 
_In_ ACCESS_MASK AccessMask
 
_In_ ACCESS_MASK _In_
POBJECT_ATTRIBUTES _In_ ULONG 
Flags
 
_In_ PVOID Key
 
_In_ PVOID _In_ BOOLEAN Alertable
 
_In_ PVOID _In_ BOOLEAN
_In_opt_ PLARGE_INTEGER 
Timeout
 

Macro Definition Documentation

#define PEVENT_TRACE_HEADER_DEFINED

Definition at line 37 of file exfuncs.h.

Typedef Documentation

Definition at line 38 of file exfuncs.h.

Function Documentation

_IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 64 of file Messaging.c.

75 {
76  PFLT_SERVER_PORT_OBJECT PortObject;
78 
79  /* The caller must allow at least one connection */
80  if (MaxConnections == 0)
81  {
83  }
84 
85  /* The request must be for a kernel handle */
86  if (!(ObjectAttributes->Attributes & OBJ_KERNEL_HANDLE))
87  {
89  }
90 
91  /*
92  * Get rundown protection on the target to stop the owner
93  * from unloading whilst this port object is open. It gets
94  * removed in the FltpServerPortClose callback
95  */
96  Status = FltObjectReference(Filter);
97  if (!NT_SUCCESS(Status))
98  {
99  return Status;
100  }
101 
102  /* Create the server port object for this filter */
103  Status = ObCreateObject(KernelMode,
106  KernelMode,
107  NULL,
108  sizeof(FLT_SERVER_PORT_OBJECT),
109  0,
110  0,
111  (PVOID *)&PortObject);
112  if (NT_SUCCESS(Status))
113  {
114  /* Zero out the struct */
115  RtlZeroMemory(PortObject, sizeof(FLT_SERVER_PORT_OBJECT));
116 
117  /* Increment the ref count on the target filter */
119 
120  /* Setup the filter port object */
121  PortObject->Filter = Filter;
122  PortObject->ConnectNotify = ConnectNotifyCallback;
124  PortObject->MessageNotify = MessageNotifyCallback;
125  PortObject->Cookie = ServerPortCookie;
126  PortObject->MaxConnections = MaxConnections;
127 
128  /* Insert the object */
129  Status = ObInsertObject(PortObject,
130  NULL,
132  0,
133  NULL,
135  if (NT_SUCCESS(Status))
136  {
137  /* Lock the connection list */
139 
140  /* Add the new port object to the connection list and increment the count */
143 
144  /* Unlock the connection list*/
146  }
147  }
148 
149  if (!NT_SUCCESS(Status))
150  {
151  /* Allow the filter to be cleaned up */
153  }
154 
155  return Status;
156 }
DWORD *typedef PVOID
Definition: winlogon.h:61
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _Outptr_ PFLT_PORT * ServerPort
Definition: fltkernel.h:1873
PFLT_CONNECT_NOTIFY ConnectNotify
Definition: fltmgrint.h:191
VOID FLTAPI FltObjectDereference(_Inout_ PVOID Object)
Definition: Object.c:53
#define InsertTailList(ListHead, Entry)
VOID FASTCALL ExReleaseFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:31
ULONG FltpObjectPointerReference(_In_ PFLT_OBJECT Object)
Definition: Object.c:252
LIST_ENTRY mList
Definition: fltmgrint.h:56
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
#define FILE_READ_DATA
Definition: nt_native.h:628
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS NTAPI ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL, IN POBJECT_TYPE Type, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN KPROCESSOR_MODE AccessMode, IN OUT PVOID ParseContext OPTIONAL, IN ULONG ObjectSize, IN ULONG PagedPoolCharge OPTIONAL, IN ULONG NonPagedPoolCharge OPTIONAL, OUT PVOID *Object)
Definition: oblife.c:938
LONG NTSTATUS
Definition: precomp.h:26
POBJECT_TYPE ServerPortObjectType
Definition: Messaging.c:24
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:24
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback
Definition: fltkernel.h:1873
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback
Definition: fltkernel.h:1873
Status
Definition: gdiplustypes.h:24
NTSTATUS NTAPI ObInsertObject(IN PVOID Object, IN PACCESS_STATE AccessState OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG ObjectPointerBias, OUT PVOID *NewObject OPTIONAL, OUT PHANDLE Handle)
Definition: obhandle.c:2926
#define STANDARD_RIGHTS_ALL
Definition: nt_native.h:69
VOID FASTCALL ExAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:23
NTSTATUS FLTAPI FltObjectReference(_Inout_ PVOID Object)
Definition: Object.c:41
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID ServerPortCookie
Definition: fltkernel.h:1873
FAST_MUTEX mLock
Definition: fltmgrint.h:55
PFLT_MESSAGE_NOTIFY MessageNotify
Definition: fltmgrint.h:193
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY _In_ LONG MaxConnections
Definition: fltkernel.h:1873
PFLT_DISCONNECT_NOTIFY DisconnectNotify
Definition: fltmgrint.h:192
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback
Definition: fltkernel.h:1873
FLT_MUTEX_LIST_HEAD ConnectionList
Definition: fltmgrint.h:121
VOID FASTCALL ExEnterCriticalRegionAndAcquireFastMutexUnsafe ( _Inout_ PFAST_MUTEX  FastMutex)
NTKERNELAPI BOOLEAN NTAPI ExEnumHandleTable ( _In_ PHANDLE_TABLE  HandleTable,
_In_ PEX_ENUM_HANDLE_CALLBACK  EnumHandleProcedure,
_Inout_ PVOID  Context,
_Out_opt_ PHANDLE  Handle 
)
VOID FASTCALL ExfAcquirePushLockExclusive ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfAcquirePushLockShared ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfReleasePushLock ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfReleasePushLockExclusive ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfReleasePushLockShared ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfTryToWakePushLock ( _Inout_ PEX_PUSH_LOCK  PushLock)
VOID FASTCALL ExfUnblockPushLock ( _Inout_ PEX_PUSH_LOCK  PushLock,
_Inout_ PVOID  CurrentWaitBlock 
)
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 NtAddAtom ( _In_ PWSTR  AtomName,
_In_ ULONG  AtomNameLength,
_Inout_ PRTL_ATOM  Atom 
)
NTSYSCALLAPI NTSTATUS NTAPI NtCancelTimer ( _In_ HANDLE  TimerHandle,
_Out_opt_ PBOOLEAN  CurrentState 
)
NTSYSCALLAPI NTSTATUS NTAPI NtClearEvent ( _In_ HANDLE  EventHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtCreateEventPair ( _Out_ PHANDLE  EventPairHandle,
_In_ ACCESS_MASK  DesiredAccess,
_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 NtCreateSemaphore ( _Out_ PHANDLE  SemaphoreHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_opt_ POBJECT_ATTRIBUTES  ObjectAttributes,
_In_ LONG  InitialCount,
_In_ LONG  MaximumCount 
)
NTSYSCALLAPI NTSTATUS NTAPI NtCreateTimer ( _Out_ PHANDLE  TimerHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_opt_ POBJECT_ATTRIBUTES  ObjectAttributes,
_In_ TIMER_TYPE  TimerType 
)
NTSYSCALLAPI NTSTATUS NTAPI NtDeleteAtom ( _In_ RTL_ATOM  Atom)
NTSYSCALLAPI NTSTATUS NTAPI NtDisplayString ( _In_ PUNICODE_STRING  DisplayString)
NTSYSCALLAPI NTSTATUS NTAPI NtEnumerateSystemEnvironmentValuesEx ( _In_ ULONG  InformationClass,
_In_ PVOID  Buffer,
_In_ ULONG  BufferLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtFindAtom ( _In_ PWSTR  AtomName,
_In_ ULONG  AtomNameLength,
_Out_opt_ PRTL_ATOM  Atom 
)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEvent ( _Out_ PHANDLE  EventHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenEventPair ( _Out_ PHANDLE  EventPairHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenMutant ( _Out_ PHANDLE  MutantHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenSemaphore ( _Out_ PHANDLE  SemaphoreHandle,
_In_ ACCESS_MASK  DesiredAcces,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtOpenTimer ( _Out_ PHANDLE  TimerHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtPulseEvent ( _In_ HANDLE  EventHandle,
_In_opt_ PLONG  PulseCount 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultLocale ( _In_ BOOLEAN  UserProfile,
_Out_ PLCID  DefaultLocaleId 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryDefaultUILanguage ( LANGID LanguageId)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryEvent ( _In_ HANDLE  EventHandle,
_In_ EVENT_INFORMATION_CLASS  EventInformationClass,
_Out_ PVOID  EventInformation,
_In_ ULONG  EventInformationLength,
_Out_ PULONG  ReturnLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInformationAtom ( _In_ RTL_ATOM  Atom,
_In_ ATOM_INFORMATION_CLASS  AtomInformationClass,
_Out_ PVOID  AtomInformation,
_In_ ULONG  AtomInformationLength,
_Out_opt_ PULONG  ReturnLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryInstallUILanguage ( LANGID LanguageId)
NTSYSCALLAPI NTSTATUS NTAPI NtQueryMutant ( _In_ HANDLE  MutantHandle,
_In_ MUTANT_INFORMATION_CLASS  MutantInformationClass,
_Out_ PVOID  MutantInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySemaphore ( _In_ HANDLE  SemaphoreHandle,
_In_ SEMAPHORE_INFORMATION_CLASS  SemaphoreInformationClass,
_Out_ PVOID  SemaphoreInformation,
_In_ ULONG  Length,
_Out_ PULONG  ReturnLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValue ( _In_ PUNICODE_STRING  Name,
_Out_ PWSTR  Value,
ULONG  Length,
PULONG  ReturnLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtQuerySystemEnvironmentValueEx ( _In_ PUNICODE_STRING  VariableName,
_In_ LPGUID  VendorGuid,
_In_ PVOID  Value,
_Inout_ PULONG  ReturnLength,
_Inout_ PULONG  Attributes 
)
__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 at line 2792 of file sysinfo.c.

Referenced by BaseQuerySystemFirmware(), GetLogicalProcessorInformation(), GetNativeSystemInfo(), GetNumaAvailableMemoryNode(), GetNumaHighestNodeNumber(), GetNumaNodeProcessorMask(), GetNumaProcessorNode(), GetSystemInfo(), and GetSystemRegistryQuota().

2797 {
2799  ULONG ResultLength = 0;
2801  NTSTATUS FStatus = STATUS_NOT_IMPLEMENTED;
2802 
2803  PAGED_CODE();
2804 
2805  PreviousMode = ExGetPreviousMode();
2806 
2807  _SEH2_TRY
2808  {
2809 #if (NTDDI_VERSION >= NTDDI_VISTA)
2810  /*
2811  * Check if the request is valid.
2812  */
2813  if (SystemInformationClass >= MAX_SYSTEM_INFO_CLASS)
2814  {
2816  }
2817 #endif
2818 
2819  if (PreviousMode != KernelMode)
2820  {
2821  /* SystemKernelDebuggerInformation needs only BOOLEAN alignment */
2822  if (SystemInformationClass == SystemKernelDebuggerInformation)
2823  Alignment = TYPE_ALIGNMENT(BOOLEAN);
2824 
2825  ProbeForWrite(SystemInformation, Length, Alignment);
2826  if (UnsafeResultLength != NULL)
2827  ProbeForWriteUlong(UnsafeResultLength);
2828  }
2829 
2830  if (UnsafeResultLength)
2831  *UnsafeResultLength = 0;
2832 
2833 #if (NTDDI_VERSION < NTDDI_VISTA)
2834  /*
2835  * Check if the request is valid.
2836  */
2837  if (SystemInformationClass >= MAX_SYSTEM_INFO_CLASS)
2838  {
2840  }
2841 #endif
2842 
2843  if (NULL != CallQS [SystemInformationClass].Query)
2844  {
2845  /*
2846  * Hand the request to a subhandler.
2847  */
2848  FStatus = CallQS [SystemInformationClass].Query(SystemInformation,
2849  Length,
2850  &ResultLength);
2851 
2852  /* Save the result length to the caller */
2853  if (UnsafeResultLength)
2854  *UnsafeResultLength = ResultLength;
2855  }
2856  }
2858  {
2859  FStatus = _SEH2_GetExceptionCode();
2860  }
2861  _SEH2_END;
2862 
2863  return FStatus;
2864 }
#define ProbeForWriteUlong(Ptr)
Definition: probe.h:36
IN CINT OUT PVOID IN ULONG OUT PULONG ResultLength
Definition: conport.c:47
#define TYPE_ALIGNMENT(t)
Definition: ntbasedef.h:117
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
KPROCESSOR_MODE NTAPI ExGetPreviousMode(VOID)
Definition: sysinfo.c:2927
VOID NTAPI ProbeForWrite(IN PVOID Address, IN SIZE_T Length, IN ULONG Alignment)
Definition: exintrin.c:143
#define PAGED_CODE()
Definition: video.h:57
_SEH2_TRY
Definition: create.c:4250
static QSSI_CALLS CallQS[]
Definition: sysinfo.c:2701
smooth NULL
Definition: ftsmooth.c:416
NTSTATUS(* Query)(PVOID, ULONG, PULONG)
Definition: sysinfo.c:2685
unsigned char BOOLEAN
_In_ KPROCESSOR_MODE PreviousMode
Definition: sefuncs.h:103
LONG NTSTATUS
Definition: precomp.h:26
#define _SEH2_YIELD(STMT_)
Definition: pseh2_64.h:8
BOOL Query(LPCTSTR *ServiceArgs, DWORD ArgCount, BOOL bExtended)
Definition: query.c:292
CCHAR KPROCESSOR_MODE
Definition: ketypes.h:7
#define STATUS_INVALID_INFO_CLASS
Definition: ntstatus.h:226
VOID UINTN Length
Definition: acefiex.h:744
_SEH2_END
Definition: create.c:4424
LONG NTAPI ExSystemExceptionFilter(VOID)
Definition: harderr.c:351
unsigned int ULONG
Definition: retypes.h:1
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:6
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:12
#define MAX_SYSTEM_INFO_CLASS
Definition: sysinfo.c:2784
NTSYSCALLAPI NTSTATUS NTAPI NtQueryTimer ( _In_ HANDLE  TimerHandle,
_In_ TIMER_INFORMATION_CLASS  TimerInformationClass,
_Out_ PVOID  TimerInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtRaiseHardError ( _In_ NTSTATUS  ErrorStatus,
_In_ ULONG  NumberOfParameters,
_In_ ULONG  UnicodeStringParameterMask,
_In_ PULONG_PTR  Parameters,
_In_ ULONG  ValidResponseOptions,
_Out_ PULONG  Response 
)
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseMutant ( _In_ HANDLE  MutantHandle,
_In_opt_ PLONG  ReleaseCount 
)
NTSYSCALLAPI NTSTATUS NTAPI NtReleaseSemaphore ( _In_ HANDLE  SemaphoreHandle,
_In_ LONG  ReleaseCount,
_Out_opt_ PLONG  PreviousCount 
)
NTSYSCALLAPI NTSTATUS NTAPI NtResetEvent ( _In_ HANDLE  EventHandle,
_Out_opt_ PLONG  NumberOfWaitingThreads 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultHardErrorPort ( _In_ HANDLE  PortHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultLocale ( _In_ BOOLEAN  UserProfile,
_In_ LCID  DefaultLocaleId 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetDefaultUILanguage ( LANGID  LanguageId)
NTSYSCALLAPI NTSTATUS NTAPI NtSetEvent ( _In_ HANDLE  EventHandle,
_Out_opt_ PLONG  PreviousState 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetEventBoostPriority ( _In_ HANDLE  EventHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtSetHighWaitLowEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowEventPair ( _In_ HANDLE  EventPair)
NTSYSCALLAPI NTSTATUS NTAPI NtSetLowWaitHighEventPair ( _In_ HANDLE  EventPair)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValue ( _In_ PUNICODE_STRING  VariableName,
_In_ PUNICODE_STRING  Value 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemEnvironmentValueEx ( _In_ PUNICODE_STRING  VariableName,
_In_ LPGUID  VendorGuid,
_In_ PVOID  Value,
_Inout_ PULONG  ReturnLength,
_Inout_ PULONG  Attributes 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemInformation ( _In_ SYSTEM_INFORMATION_CLASS  SystemInformationClass,
_In_ PVOID  SystemInformation,
_In_ ULONG  SystemInformationLength 
)
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 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetUuidSeed ( _In_ PUCHAR  UuidSeed)
NTSYSCALLAPI NTSTATUS NTAPI NtShutdownSystem ( _In_ SHUTDOWN_ACTION  Action)
NTSYSCALLAPI NTSTATUS NTAPI NtTraceEvent ( _In_ ULONG  TraceHandle,
_In_ ULONG  Flags,
_In_ ULONG  TraceHeaderLength,
_In_ PEVENT_TRACE_HEADER  TraceHeader 
)
NTSYSCALLAPI NTSTATUS NTAPI NtWaitHighEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSCALLAPI NTSTATUS NTAPI NtWaitLowEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSAPI NTSTATUS NTAPI ZwAddAtom ( _In_ PWSTR  AtomName,
_In_ ULONG  AtomNameLength,
_Inout_ PRTL_ATOM  Atom 
)
NTSYSAPI NTSTATUS NTAPI ZwClearEvent ( _In_ HANDLE  EventHandle)
NTSYSAPI NTSTATUS NTAPI ZwCreateEventPair ( _Out_ PHANDLE  EventPairHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSAPI NTSTATUS NTAPI ZwCreateMutant ( _Out_ PHANDLE  MutantHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes,
_In_ BOOLEAN  InitialOwner 
)
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 ZwDeleteAtom ( _In_ RTL_ATOM  Atom)
NTSYSAPI NTSTATUS NTAPI ZwDisplayString ( _In_ PUNICODE_STRING  DisplayString)

Referenced by ExpLoadInitialProcess().

NTSYSAPI NTSTATUS NTAPI ZwFindAtom ( _In_ PWSTR  AtomName,
_In_ ULONG  AtomNameLength,
_Out_opt_ PRTL_ATOM  Atom 
)
NTSYSCALLAPI NTSTATUS NTAPI ZwOpenEvent ( _Out_ PHANDLE  EventHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSAPI NTSTATUS NTAPI ZwOpenEventPair ( _Out_ PHANDLE  EventPairHandle,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes 
)
NTSYSAPI NTSTATUS NTAPI ZwOpenMutant ( _Out_ PHANDLE  MutantHandle,
_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 ZwPulseEvent ( _In_ HANDLE  EventHandle,
_In_opt_ PLONG  PulseCount 
)
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultLocale ( _In_ BOOLEAN  UserProfile,
_Out_ PLCID  DefaultLocaleId 
)
NTSYSAPI NTSTATUS NTAPI ZwQueryDefaultUILanguage ( LANGID LanguageId)
NTSYSAPI NTSTATUS NTAPI ZwQueryEvent ( _In_ HANDLE  EventHandle,
_In_ EVENT_INFORMATION_CLASS  EventInformationClass,
_Out_ PVOID  EventInformation,
_In_ ULONG  EventInformationLength,
_Out_ PULONG  ReturnLength 
)
NTSYSAPI NTSTATUS NTAPI ZwQueryInformationAtom ( _In_ RTL_ATOM  Atom,
_In_ ATOM_INFORMATION_CLASS  AtomInformationClass,
_Out_ PVOID  AtomInformation,
_In_ ULONG  AtomInformationLength,
_Out_opt_ PULONG  ReturnLength 
)
NTSYSAPI NTSTATUS NTAPI ZwQueryInstallUILanguage ( LANGID LanguageId)
NTSYSAPI NTSTATUS NTAPI ZwQueryMutant ( _In_ HANDLE  MutantHandle,
_In_ MUTANT_INFORMATION_CLASS  MutantInformationClass,
_Out_ PVOID  MutantInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)
NTSYSAPI NTSTATUS NTAPI ZwQuerySemaphore ( _In_ HANDLE  SemaphoreHandle,
_In_ SEMAPHORE_INFORMATION_CLASS  SemaphoreInformationClass,
_Out_ PVOID  SemaphoreInformation,
_In_ ULONG  Length,
_Out_ PULONG  ReturnLength 
)
NTSYSAPI NTSTATUS NTAPI ZwQuerySystemEnvironmentValue ( _In_ PUNICODE_STRING  Name,
_Out_ PWSTR  Value,
_In_ ULONG  Length,
_Out_ PULONG  ReturnLength 
)
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 ZwQueryTimer ( _In_ HANDLE  TimerHandle,
_In_ TIMER_INFORMATION_CLASS  TimerInformationClass,
_Out_ PVOID  TimerInformation,
_In_ ULONG  Length,
_Out_ PULONG  ResultLength 
)
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 ZwReleaseMutant ( _In_ HANDLE  MutantHandle,
_In_opt_ PLONG  ReleaseCount 
)
NTSYSAPI NTSTATUS NTAPI ZwReleaseSemaphore ( _In_ HANDLE  SemaphoreHandle,
_In_ LONG  ReleaseCount,
_Out_opt_ PLONG  PreviousCount 
)
NTSYSAPI NTSTATUS NTAPI ZwResetEvent ( _In_ HANDLE  EventHandle,
_Out_opt_ PLONG  NumberOfWaitingThreads 
)
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultHardErrorPort ( _In_ HANDLE  PortHandle)
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultLocale ( _In_ BOOLEAN  UserProfile,
_In_ LCID  DefaultLocaleId 
)
NTSYSAPI NTSTATUS NTAPI ZwSetDefaultUILanguage ( LANGID  LanguageId)
NTSYSAPI NTSTATUS NTAPI ZwSetEvent ( _In_ HANDLE  EventHandle,
_Out_opt_ PLONG  PreviousState 
)
NTSYSAPI NTSTATUS NTAPI ZwSetHighEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSAPI NTSTATUS NTAPI ZwSetHighWaitLowEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSAPI NTSTATUS NTAPI ZwSetLowEventPair ( _In_ HANDLE  EventPair)
NTSYSAPI NTSTATUS NTAPI ZwSetLowWaitHighEventPair ( _In_ HANDLE  EventPair)
NTSYSAPI NTSTATUS NTAPI ZwSetSystemEnvironmentValue ( _In_ PUNICODE_STRING  VariableName,
_In_ PUNICODE_STRING  Value 
)
NTSYSAPI NTSTATUS NTAPI ZwSetSystemInformation ( _In_ SYSTEM_INFORMATION_CLASS  SystemInformationClass,
_In_ PVOID  SystemInformation,
_In_ SIZE_T  SystemInformationLength 
)
NTSYSAPI NTSTATUS NTAPI ZwSetUuidSeed ( _In_ PUCHAR  UuidSeed)
NTSYSAPI NTSTATUS NTAPI ZwShutdownSystem ( _In_ SHUTDOWN_ACTION  Action)
NTSYSAPI NTSTATUS NTAPI ZwTraceEvent ( _In_ ULONG  TraceHandle,
_In_ ULONG  Flags,
_In_ ULONG  TraceHeaderLength,
_In_ PEVENT_TRACE_HEADER  TraceHeader 
)
NTSYSAPI NTSTATUS NTAPI ZwWaitHighEventPair ( _In_ HANDLE  EventPairHandle)
NTSYSAPI NTSTATUS NTAPI ZwWaitLowEventPair ( _In_ HANDLE  EventPairHandle)

Variable Documentation

_In_ PVOID _In_ BOOLEAN Alertable

Definition at line 452 of file exfuncs.h.

Referenced by IopCheckVpbMounted().

_In_ ACCESS_MASK DesiredAccess

Definition at line 165 of file exfuncs.h.

Definition at line 452 of file exfuncs.h.

Definition at line 165 of file exfuncs.h.

Definition at line 452 of file exfuncs.h.