2006-05-10 17:47:44 +00:00
|
|
|
/*++ NDK Version: 0098
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
Copyright (c) Alex Ionescu. All rights reserved.
|
|
|
|
|
|
|
|
Header Name:
|
|
|
|
|
|
|
|
exfuncs.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Function definitions for the Executive.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#ifndef _EXFUNCS_H
|
|
|
|
#define _EXFUNCS_H
|
|
|
|
|
|
|
|
//
|
|
|
|
// Dependencies
|
|
|
|
//
|
|
|
|
#include <umtypes.h>
|
|
|
|
#include <pstypes.h>
|
|
|
|
#include <extypes.h>
|
|
|
|
|
2008-06-16 09:20:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
//
|
|
|
|
// Don't include WMI headers just for one define
|
|
|
|
//
|
2008-05-22 17:12:42 +00:00
|
|
|
#ifndef PEVENT_TRACE_HEADER_DEFINED
|
|
|
|
#define PEVENT_TRACE_HEADER_DEFINED
|
2006-05-05 18:13:26 +00:00
|
|
|
typedef struct _EVENT_TRACE_HEADER *PEVENT_TRACE_HEADER;
|
2008-05-22 17:12:42 +00:00
|
|
|
#endif
|
2006-05-05 18:13:26 +00:00
|
|
|
|
|
|
|
#ifndef NTOS_MODE_USER
|
|
|
|
//
|
|
|
|
// Fast Mutex functions
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExEnterCriticalRegionAndAcquireFastMutexUnsafe(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PFAST_MUTEX FastMutex
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExReleaseFastMutexUnsafeAndLeaveCriticalRegion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PFAST_MUTEX FastMutex
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Pushlock functions
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfAcquirePushLockExclusive(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfAcquirePushLockShared(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfReleasePushLock(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfReleasePushLockExclusive(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfReleasePushLockShared(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfTryToWakePushLock(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
ExfUnblockPushLock(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Inout_ PEX_PUSH_LOCK PushLock,
|
|
|
|
_Inout_ PVOID CurrentWaitBlock
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2007-01-08 19:40:10 +00:00
|
|
|
//
|
|
|
|
// Handle Table Functions
|
|
|
|
//
|
|
|
|
NTKERNELAPI
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
ExEnumHandleTable(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PHANDLE_TABLE HandleTable,
|
|
|
|
_In_ PEX_ENUM_HANDLE_CALLBACK EnumHandleProcedure,
|
|
|
|
_Inout_ PVOID Context,
|
|
|
|
_Out_opt_ PHANDLE Handle
|
2007-01-08 19:40:10 +00:00
|
|
|
);
|
|
|
|
|
2008-11-02 14:08:49 +00:00
|
|
|
//
|
2011-07-24 21:02:50 +00:00
|
|
|
// HardError Functions
|
2008-11-02 14:08:49 +00:00
|
|
|
//
|
2011-07-24 21:02:50 +00:00
|
|
|
NTSTATUS
|
2008-11-02 14:08:49 +00:00
|
|
|
NTAPI
|
2011-07-24 21:02:50 +00:00
|
|
|
ExRaiseHardError(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ NTSTATUS ErrorStatus,
|
|
|
|
_In_ ULONG NumberOfParameters,
|
|
|
|
_In_ ULONG UnicodeStringParameterMask,
|
|
|
|
_In_ PULONG_PTR Parameters,
|
|
|
|
_In_ ULONG ValidResponseOptions,
|
|
|
|
_Out_ PULONG Response
|
2008-11-02 14:08:49 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Native Calls
|
|
|
|
//
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtAddAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PWSTR AtomName,
|
|
|
|
_In_ ULONG AtomNameLength,
|
|
|
|
_Inout_ PRTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCancelTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE TimerHandle,
|
|
|
|
_Out_opt_ PBOOLEAN CurrentState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtClearEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-19 21:49:12 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
2013-01-19 21:49:12 +00:00
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ EVENT_TYPE EventType,
|
|
|
|
_In_ BOOLEAN InitialState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventPairHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-19 21:49:12 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-11-15 20:24:55 +00:00
|
|
|
NTSYSCALLAPI
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateKeyedEvent(
|
2013-01-19 21:49:12 +00:00
|
|
|
_Out_ PHANDLE OutHandle,
|
|
|
|
_In_ ACCESS_MASK AccessMask,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ ULONG Flags
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MutantHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ BOOLEAN InitialOwner
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE SemaphoreHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ LONG InitialCount,
|
|
|
|
_In_ LONG MaximumCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE TimerHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ TIMER_TYPE TimerType
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeleteAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ RTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDisplayString(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DisplayString
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-11-15 20:24:55 +00:00
|
|
|
NTSYSCALLAPI
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtEnumerateSystemEnvironmentValuesEx(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG InformationClass,
|
|
|
|
_In_ PVOID Buffer,
|
|
|
|
_In_ ULONG BufferLength
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtFindAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PWSTR AtomName,
|
|
|
|
_In_ ULONG AtomNameLength,
|
|
|
|
_Out_opt_ PRTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-19 21:49:12 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenKeyedEvent(
|
2013-01-19 21:49:12 +00:00
|
|
|
_Out_ PHANDLE OutHandle,
|
|
|
|
_In_ ACCESS_MASK AccessMask,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-10 17:47:44 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventPairHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MutantHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE SemaphoreHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAcces,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE TimerHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtPulseEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_In_opt_ PLONG PulseCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryDefaultLocale(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ BOOLEAN UserProfile,
|
|
|
|
_Out_ PLCID DefaultLocaleId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryDefaultUILanguage(
|
2008-11-21 21:05:33 +00:00
|
|
|
LANGID* LanguageId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_In_ EVENT_INFORMATION_CLASS EventInformationClass,
|
|
|
|
_Out_ PVOID EventInformation,
|
|
|
|
_In_ ULONG EventInformationLength,
|
|
|
|
_Out_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryInformationAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ RTL_ATOM Atom,
|
|
|
|
_In_ ATOM_INFORMATION_CLASS AtomInformationClass,
|
|
|
|
_Out_ PVOID AtomInformation,
|
|
|
|
_In_ ULONG AtomInformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryInstallUILanguage(
|
2008-11-21 21:05:33 +00:00
|
|
|
LANGID* LanguageId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE MutantHandle,
|
|
|
|
_In_ MUTANT_INFORMATION_CLASS MutantInformationClass,
|
|
|
|
_Out_ PVOID MutantInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ResultLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE SemaphoreHandle,
|
|
|
|
_In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
|
|
|
|
_Out_ PVOID SemaphoreInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySystemEnvironmentValue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING Name,
|
|
|
|
_Out_ PWSTR Value,
|
2006-05-05 18:13:26 +00:00
|
|
|
ULONG Length,
|
|
|
|
PULONG ReturnLength
|
|
|
|
);
|
|
|
|
|
2006-11-15 20:24:55 +00:00
|
|
|
NTSYSCALLAPI
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySystemEnvironmentValueEx(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING VariableName,
|
|
|
|
_In_ LPGUID VendorGuid,
|
|
|
|
_In_ PVOID Value,
|
|
|
|
_Inout_ PULONG ReturnLength,
|
|
|
|
_Inout_ PULONG Attributes
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2015-03-15 00:05:50 +00:00
|
|
|
__kernel_entry
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQuerySystemInformation(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
2017-08-18 08:44:08 +00:00
|
|
|
_Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation,
|
|
|
|
_In_ ULONG SystemInformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE TimerHandle,
|
|
|
|
_In_ TIMER_INFORMATION_CLASS TimerInformationClass,
|
|
|
|
_Out_ PVOID TimerInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ResultLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtRaiseHardError(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ NTSTATUS ErrorStatus,
|
|
|
|
_In_ ULONG NumberOfParameters,
|
|
|
|
_In_ ULONG UnicodeStringParameterMask,
|
|
|
|
_In_ PULONG_PTR Parameters,
|
|
|
|
_In_ ULONG ValidResponseOptions,
|
|
|
|
_Out_ PULONG Response
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtReleaseMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE MutantHandle,
|
|
|
|
_In_opt_ PLONG ReleaseCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-19 21:49:12 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtReleaseKeyedEvent(
|
2013-01-19 21:49:12 +00:00
|
|
|
_In_opt_ HANDLE EventHandle,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PVOID Key,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout
|
2006-05-10 17:47:44 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtReleaseSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE SemaphoreHandle,
|
|
|
|
_In_ LONG ReleaseCount,
|
2013-01-22 22:51:51 +00:00
|
|
|
_Out_opt_ PLONG PreviousCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtResetEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_Out_opt_ PLONG NumberOfWaitingThreads
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetDefaultLocale(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ BOOLEAN UserProfile,
|
|
|
|
_In_ LCID DefaultLocaleId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetDefaultUILanguage(
|
|
|
|
LANGID LanguageId
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetDefaultHardErrorPort(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE PortHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_Out_opt_ PLONG PreviousState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetEventBoostPriority(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle
|
2006-05-10 17:47:44 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetHighWaitLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPair
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetLowWaitHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPair
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetSystemEnvironmentValue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING VariableName,
|
|
|
|
_In_ PUNICODE_STRING Value
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2006-11-15 20:24:55 +00:00
|
|
|
NTSYSCALLAPI
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetSystemEnvironmentValueEx(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING VariableName,
|
2015-09-09 11:21:02 +00:00
|
|
|
_In_ LPGUID VendorGuid,
|
|
|
|
_In_ PVOID Value,
|
|
|
|
_Inout_ PULONG ReturnLength,
|
|
|
|
_Inout_ PULONG Attributes
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetSystemInformation(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
|
|
|
_In_ PVOID SystemInformation,
|
|
|
|
_In_ ULONG SystemInformationLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_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
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetUuidSeed(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUCHAR UuidSeed
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtShutdownSystem(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SHUTDOWN_ACTION Action
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-19 21:49:12 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-05-10 17:47:44 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitForKeyedEvent(
|
2013-01-19 21:49:12 +00:00
|
|
|
_In_opt_ HANDLE EventHandle,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PVOID Key,
|
|
|
|
_In_ BOOLEAN Alertable,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout
|
2006-05-10 17:47:44 +00:00
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWaitLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtTraceEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG TraceHandle,
|
|
|
|
_In_ ULONG Flags,
|
|
|
|
_In_ ULONG TraceHeaderLength,
|
|
|
|
_In_ PEVENT_TRACE_HEADER TraceHeader
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwAddAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PWSTR AtomName,
|
|
|
|
_In_ ULONG AtomNameLength,
|
|
|
|
_Inout_ PRTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef NTOS_MODE_USER
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCancelTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE TimerHandle,
|
|
|
|
_Out_opt_ PBOOLEAN CurrentState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwClearEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ EVENT_TYPE EventType,
|
|
|
|
_In_ BOOLEAN InitialState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventPairHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
2015-09-25 18:40:56 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateKeyedEvent(
|
|
|
|
_Out_ PHANDLE OutHandle,
|
|
|
|
_In_ ACCESS_MASK AccessMask,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ ULONG Flags
|
|
|
|
);
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MutantHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ BOOLEAN InitialOwner
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE SemaphoreHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ LONG InitialCount,
|
|
|
|
_In_ LONG MaximumCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef NTOS_MODE_USER
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE TimerHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_In_ TIMER_TYPE TimerType
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDeleteAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ RTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDisplayString(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DisplayString
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwFindAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PWSTR AtomName,
|
|
|
|
_In_ ULONG AtomNameLength,
|
|
|
|
_Out_opt_ PRTL_ATOM Atom
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
[FREELDR] Define _BLDR_ for WDK header compatibility
[HAL] Define _NTHALDLL_ for WDK header compatibility, get rif of DECLSPEC_IMPORT header hack
[NDK/RTL] Fix some Rtl prototypes (PCHAR -> PCCH)
[NDK] Fix ZwOpenEvent prototype
[NTIFS] Fix definition of NTKERNELAPI, move some types, fix PRTL_ALLOCATE_STRING_ROUTINE, PRTL_REALLOCATE_STRING_ROUTINE, PRTL_FREE_STRING_ROUTINE, define CTL_CODE, DEVICE_TYPE_FROM_CTL_CODE, FILE_ANY_ACCESS, FILE_SPECIAL_ACCESS, FILE_READ_ACCESS, FILE_WRITE_ACCESS identical to wdm.h, remove duplicate RtlGenerate8dot3Name, remove ZwOpenEvent
[NTPOAPI] Guard some types with #ifndef _PO_DDK_
[WDM] Create reactos compatible definition of NTKERNELAPI, add KDPC_WATCHDOG_INFORMATION, BATTERY_REPORTING_SCALE, fix ALIGN_UP_POINTER_BY, guard some types with #ifndef _PO_DDK_, update POWER_INFORMATION_LEVEL, make some FILE_DEVICE_ definitions identical to ntifs.h, fix HalAllocateCommonBuffer
svn path=/branches/header-work/; revision=46050
2010-03-10 04:16:52 +00:00
|
|
|
NTSYSCALLAPI
|
2006-05-05 18:13:26 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE EventPairHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MutantHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE SemaphoreHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAcces,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef NTOS_MODE_USER
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE TimerHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwPulseEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_In_opt_ PLONG PulseCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryDefaultLocale(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ BOOLEAN UserProfile,
|
|
|
|
_Out_ PLCID DefaultLocaleId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryDefaultUILanguage(
|
2008-11-21 21:05:33 +00:00
|
|
|
LANGID* LanguageId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_In_ EVENT_INFORMATION_CLASS EventInformationClass,
|
|
|
|
_Out_ PVOID EventInformation,
|
|
|
|
_In_ ULONG EventInformationLength,
|
|
|
|
_Out_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryInformationAtom(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ RTL_ATOM Atom,
|
|
|
|
_In_ ATOM_INFORMATION_CLASS AtomInformationClass,
|
|
|
|
_Out_ PVOID AtomInformation,
|
|
|
|
_In_ ULONG AtomInformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryInstallUILanguage(
|
2008-11-21 21:05:33 +00:00
|
|
|
LANGID* LanguageId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE MutantHandle,
|
|
|
|
_In_ MUTANT_INFORMATION_CLASS MutantInformationClass,
|
|
|
|
_Out_ PVOID MutantInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ResultLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQuerySemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE SemaphoreHandle,
|
|
|
|
_In_ SEMAPHORE_INFORMATION_CLASS SemaphoreInformationClass,
|
|
|
|
_Out_ PVOID SemaphoreInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQuerySystemEnvironmentValue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING Name,
|
|
|
|
_Out_ PWSTR Value,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQuerySystemInformation(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
2017-08-18 08:44:08 +00:00
|
|
|
_Out_writes_bytes_to_opt_(SystemInformationLength, *ReturnLength) PVOID SystemInformation,
|
|
|
|
_In_ ULONG SystemInformationLength,
|
|
|
|
_Out_opt_ PULONG ReturnLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE TimerHandle,
|
|
|
|
_In_ TIMER_INFORMATION_CLASS TimerInformationClass,
|
|
|
|
_Out_ PVOID TimerInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_Out_ PULONG ResultLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwRaiseHardError(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ NTSTATUS ErrorStatus,
|
|
|
|
_In_ ULONG NumberOfParameters,
|
|
|
|
_In_ ULONG UnicodeStringParameterMask,
|
|
|
|
_In_ PULONG_PTR Parameters,
|
|
|
|
_In_ ULONG ValidResponseOptions,
|
|
|
|
_Out_ PULONG Response
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwReleaseMutant(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE MutantHandle,
|
|
|
|
_In_opt_ PLONG ReleaseCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwReleaseSemaphore(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE SemaphoreHandle,
|
|
|
|
_In_ LONG ReleaseCount,
|
2013-01-22 22:51:51 +00:00
|
|
|
_Out_opt_ PLONG PreviousCount
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwResetEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_Out_opt_ PLONG NumberOfWaitingThreads
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetDefaultLocale(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ BOOLEAN UserProfile,
|
|
|
|
_In_ LCID DefaultLocaleId
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetDefaultUILanguage(
|
|
|
|
LANGID LanguageId
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetDefaultHardErrorPort(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE PortHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventHandle,
|
|
|
|
_Out_opt_ PLONG PreviousState
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetHighWaitLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPair
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetLowWaitHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPair
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetSystemEnvironmentValue(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING VariableName,
|
|
|
|
_In_ PUNICODE_STRING Value
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetSystemInformation(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SYSTEM_INFORMATION_CLASS SystemInformationClass,
|
|
|
|
_In_ PVOID SystemInformation,
|
|
|
|
_In_ SIZE_T SystemInformationLength
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
#ifdef NTOS_MODE_USER
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetTimer(
|
2013-01-13 14:49:21 +00:00
|
|
|
_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
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetUuidSeed(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUCHAR UuidSeed
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwShutdownSystem(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ SHUTDOWN_ACTION Action
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWaitHighEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWaitLowEventPair(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE EventPairHandle
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwTraceEvent(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG TraceHandle,
|
|
|
|
_In_ ULONG Flags,
|
|
|
|
_In_ ULONG TraceHeaderLength,
|
|
|
|
_In_ PEVENT_TRACE_HEADER TraceHeader
|
2006-05-05 18:13:26 +00:00
|
|
|
);
|
2008-06-16 09:20:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2006-05-05 18:13:26 +00:00
|
|
|
#endif
|