diff options
-rw-r--r-- | winsup/w32api/ChangeLog | 10 | ||||
-rw-r--r-- | winsup/w32api/include/ddk/ntapi.h | 1191 | ||||
-rw-r--r-- | winsup/w32api/include/ddk/ntifs.h | 624 | ||||
-rw-r--r-- | winsup/w32api/include/ddk/winddk.h | 212 | ||||
-rw-r--r-- | winsup/w32api/lib/ntdll.def | 4 |
5 files changed, 2029 insertions, 12 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index d129551..a04b62a 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,13 @@ +2009-06-07 Corinna Vinschen <corinna@vinschen.de> + + * include/ddk/ntapi.h: Add NtXxx equivalent to ZwXxx where missing + and vice versa. + * include/ddk/ntifs.h: Ditto. + * include/ddk/winddk.h: Ditto. + * lib/ntdll.def (NtPlugPlayControl, NtQueryInstallUILanguage, + ZwPlugPlayControl, ZwQueryInstallUILanguage): Add entry points defined + in header, but missing in lib. Omit NT4-only entry points. + 2009-05-01 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> * include/shellapi.h (SHIL_LARGE, SHIL_SMALL, SHIL_EXTRALARGE, diff --git a/winsup/w32api/include/ddk/ntapi.h b/winsup/w32api/include/ddk/ntapi.h index 8623772..cab4d52 100644 --- a/winsup/w32api/include/ddk/ntapi.h +++ b/winsup/w32api/include/ddk/ntapi.h @@ -687,6 +687,14 @@ ZwQueryFullAttributesFile( NTOSAPI NTSTATUS NTAPI +NtSetSystemInformation( + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN OUT*/ PVOID SystemInformation, + /*IN*/ ULONG SystemInformationLength); + +NTOSAPI +NTSTATUS +NTAPI ZwSetSystemInformation( /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, /*IN OUT*/ PVOID SystemInformation, @@ -695,6 +703,15 @@ ZwSetSystemInformation( NTOSAPI NTSTATUS NTAPI +NtQuerySystemEnvironmentValue( + /*IN*/ PUNICODE_STRING Name, + /*OUT*/ PVOID Value, + /*IN*/ ULONG ValueLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQuerySystemEnvironmentValue( /*IN*/ PUNICODE_STRING Name, /*OUT*/ PVOID Value, @@ -704,6 +721,13 @@ ZwQuerySystemEnvironmentValue( NTOSAPI NTSTATUS NTAPI +NtSetSystemEnvironmentValue( + /*IN*/ PUNICODE_STRING Name, + /*IN*/ PUNICODE_STRING Value); + +NTOSAPI +NTSTATUS +NTAPI ZwSetSystemEnvironmentValue( /*IN*/ PUNICODE_STRING Name, /*IN*/ PUNICODE_STRING Value); @@ -720,6 +744,12 @@ NTAPI NtShutdownSystem( /*IN*/ SHUTDOWN_ACTION Action); +NTOSAPI +NTSTATUS +NTAPI +ZwShutdownSystem( + /*IN*/ SHUTDOWN_ACTION Action); + typedef enum _DEBUG_CONTROL_CODE { DebugGetTraceInformation = 1, DebugSetInternalBreakpoint, @@ -734,6 +764,17 @@ typedef enum _DEBUG_CONTROL_CODE { NTOSAPI NTSTATUS NTAPI +NtSystemDebugControl( + /*IN*/ DEBUG_CONTROL_CODE ControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwSystemDebugControl( /*IN*/ DEBUG_CONTROL_CODE ControlCode, /*IN*/ PVOID InputBuffer /*OPTIONAL*/, @@ -757,6 +798,16 @@ typedef enum _OBJECT_INFORMATION_CLASS { NTOSAPI NTSTATUS NTAPI +NtQueryObject( + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*OUT*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryObject( /*IN*/ HANDLE ObjectHandle, /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, @@ -767,6 +818,15 @@ ZwQueryObject( NTOSAPI NTSTATUS NTAPI +NtSetInformationObject( + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*IN*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength); + +NTOSAPI +NTSTATUS +NTAPI ZwSetInformationObject( /*IN*/ HANDLE ObjectHandle, /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, @@ -887,6 +947,14 @@ ZwSetSecurityObject( NTOSAPI NTSTATUS NTAPI +NtOpenDirectoryObject( + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwOpenDirectoryObject( /*OUT*/ PHANDLE DirectoryHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -895,6 +963,18 @@ ZwOpenDirectoryObject( NTOSAPI NTSTATUS NTAPI +NtQueryDirectoryObject( + /*IN*/ HANDLE DirectoryHandle, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ BOOLEAN RestartScan, + /*IN OUT*/ PULONG Context, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryDirectoryObject( /*IN*/ HANDLE DirectoryHandle, /*OUT*/ PVOID Buffer, @@ -912,6 +992,15 @@ typedef struct _DIRECTORY_BASIC_INFORMATION { NTOSAPI NTSTATUS NTAPI +NtCreateSymbolicLinkObject( + /*OUT*/ PHANDLE SymbolicLinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PUNICODE_STRING TargetName); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateSymbolicLinkObject( /*OUT*/ PHANDLE SymbolicLinkHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -973,6 +1062,17 @@ ZwFreeVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtQueryVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ MEMORY_INFORMATION_CLASS MemoryInformationClass, + /*OUT*/ PVOID MemoryInformation, + /*IN*/ ULONG MemoryInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress, @@ -1008,6 +1108,15 @@ typedef struct _MEMORY_SECTION_NAME { NTOSAPI NTSTATUS NTAPI +NtLockVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG LockSize, + /*IN*/ ULONG LockType); + +NTOSAPI +NTSTATUS +NTAPI ZwLockVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -1017,6 +1126,15 @@ ZwLockVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtUnlockVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG LockSize, + /*IN*/ ULONG LockType); + +NTOSAPI +NTSTATUS +NTAPI ZwUnlockVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -1026,6 +1144,16 @@ ZwUnlockVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtReadVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwReadVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress, @@ -1036,6 +1164,16 @@ ZwReadVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtWriteVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwWriteVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress, @@ -1046,6 +1184,16 @@ ZwWriteVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtProtectVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG ProtectSize, + /*IN*/ ULONG NewProtect, + /*OUT*/ PULONG OldProtect); + +NTOSAPI +NTSTATUS +NTAPI ZwProtectVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -1056,6 +1204,15 @@ ZwProtectVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtFlushVirtualMemory( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FlushSize, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); + +NTOSAPI +NTSTATUS +NTAPI ZwFlushVirtualMemory( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -1065,6 +1222,14 @@ ZwFlushVirtualMemory( NTOSAPI NTSTATUS NTAPI +NtAllocateUserPhysicalPages( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PULONG NumberOfPages, + /*OUT*/ PULONG PageFrameNumbers); + +NTOSAPI +NTSTATUS +NTAPI ZwAllocateUserPhysicalPages( /*IN*/ HANDLE ProcessHandle, /*IN*/ PULONG NumberOfPages, @@ -1073,6 +1238,14 @@ ZwAllocateUserPhysicalPages( NTOSAPI NTSTATUS NTAPI +NtFreeUserPhysicalPages( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); + +NTOSAPI +NTSTATUS +NTAPI ZwFreeUserPhysicalPages( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PULONG NumberOfPages, @@ -1081,6 +1254,14 @@ ZwFreeUserPhysicalPages( NTOSAPI NTSTATUS NTAPI +NtMapUserPhysicalPages( + /*IN*/ PVOID BaseAddress, + /*IN*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); + +NTOSAPI +NTSTATUS +NTAPI ZwMapUserPhysicalPages( /*IN*/ PVOID BaseAddress, /*IN*/ PULONG NumberOfPages, @@ -1089,6 +1270,14 @@ ZwMapUserPhysicalPages( NTOSAPI NTSTATUS NTAPI +NtMapUserPhysicalPagesScatter( + /*IN*/ PVOID *BaseAddresses, + /*IN*/ PULONG NumberOfPages, + /*IN*/ PULONG PageFrameNumbers); + +NTOSAPI +NTSTATUS +NTAPI ZwMapUserPhysicalPagesScatter( /*IN*/ PVOID *BaseAddresses, /*IN*/ PULONG NumberOfPages, @@ -1097,6 +1286,18 @@ ZwMapUserPhysicalPagesScatter( NTOSAPI NTSTATUS NTAPI +NtGetWriteWatch( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ULONG Flags, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG RegionSize, + /*OUT*/ PULONG Buffer, + /*IN OUT*/ PULONG BufferEntries, + /*OUT*/ PULONG Granularity); + +NTOSAPI +NTSTATUS +NTAPI ZwGetWriteWatch( /*IN*/ HANDLE ProcessHandle, /*IN*/ ULONG Flags, @@ -1109,6 +1310,14 @@ ZwGetWriteWatch( NTOSAPI NTSTATUS NTAPI +NtResetWriteWatch( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress, + /*IN*/ ULONG RegionSize); + +NTOSAPI +NTSTATUS +NTAPI ZwResetWriteWatch( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress, @@ -1151,6 +1360,16 @@ ZwCreateSection( NTOSAPI NTSTATUS NTAPI +NtQuerySection( + /*IN*/ HANDLE SectionHandle, + /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, + /*OUT*/ PVOID SectionInformation, + /*IN*/ ULONG SectionInformationLength, + /*OUT*/ PULONG ResultLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQuerySection( /*IN*/ HANDLE SectionHandle, /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, @@ -1161,6 +1380,13 @@ ZwQuerySection( NTOSAPI NTSTATUS NTAPI +NtExtendSection( + /*IN*/ HANDLE SectionHandle, + /*IN*/ PLARGE_INTEGER SectionSize); + +NTOSAPI +NTSTATUS +NTAPI ZwExtendSection( /*IN*/ HANDLE SectionHandle, /*IN*/ PLARGE_INTEGER SectionSize); @@ -1168,6 +1394,13 @@ ZwExtendSection( NTOSAPI NTSTATUS NTAPI +NtAreMappedFilesTheSame( + /*IN*/ PVOID Address1, + /*IN*/ PVOID Address2); + +NTOSAPI +NTSTATUS +NTAPI ZwAreMappedFilesTheSame( /*IN*/ PVOID Address1, /*IN*/ PVOID Address2); @@ -1188,6 +1421,19 @@ typedef struct _USER_STACK { NTOSAPI NTSTATUS NTAPI +NtCreateThread( + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ HANDLE ProcessHandle, + /*OUT*/ PCLIENT_ID ClientId, + /*IN*/ PCONTEXT ThreadContext, + /*IN*/ PUSER_STACK UserStack, + /*IN*/ BOOLEAN CreateSuspended); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateThread( /*OUT*/ PHANDLE ThreadHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -1219,6 +1465,13 @@ ZwOpenThread( NTOSAPI NTSTATUS NTAPI +NtTerminateThread( + /*IN*/ HANDLE ThreadHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus); + +NTOSAPI +NTSTATUS +NTAPI ZwTerminateThread( /*IN*/ HANDLE ThreadHandle /*OPTIONAL*/, /*IN*/ NTSTATUS ExitStatus); @@ -1252,6 +1505,15 @@ NtSetInformationThread( /*IN*/ PVOID ThreadInformation, /*IN*/ ULONG ThreadInformationLength); +NTOSAPI +NTSTATUS +NTAPI +ZwSetInformationThread( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*IN*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength); + typedef struct _THREAD_BASIC_INFORMATION { NTSTATUS ExitStatus; PNT_TIB TebBaseAddress; @@ -1271,6 +1533,13 @@ typedef struct _KERNEL_USER_TIMES { NTOSAPI NTSTATUS NTAPI +NtSuspendThread( + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwSuspendThread( /*IN*/ HANDLE ThreadHandle, /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); @@ -1278,6 +1547,13 @@ ZwSuspendThread( NTOSAPI NTSTATUS NTAPI +NtResumeThread( + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwResumeThread( /*IN*/ HANDLE ThreadHandle, /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); @@ -1285,6 +1561,13 @@ ZwResumeThread( NTOSAPI NTSTATUS NTAPI +NtGetContextThread( + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PCONTEXT Context); + +NTOSAPI +NTSTATUS +NTAPI ZwGetContextThread( /*IN*/ HANDLE ThreadHandle, /*OUT*/ PCONTEXT Context); @@ -1292,6 +1575,13 @@ ZwGetContextThread( NTOSAPI NTSTATUS NTAPI +NtSetContextThread( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ PCONTEXT Context); + +NTOSAPI +NTSTATUS +NTAPI ZwSetContextThread( /*IN*/ HANDLE ThreadHandle, /*IN*/ PCONTEXT Context); @@ -1299,6 +1589,16 @@ ZwSetContextThread( NTOSAPI NTSTATUS NTAPI +NtQueueApcThread( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ PKNORMAL_ROUTINE ApcRoutine, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*IN*/ PVOID Argument1 /*OPTIONAL*/, + /*IN*/ PVOID Argument2 /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueueApcThread( /*IN*/ HANDLE ThreadHandle, /*IN*/ PKNORMAL_ROUTINE ApcRoutine, @@ -1309,18 +1609,37 @@ ZwQueueApcThread( NTOSAPI NTSTATUS NTAPI +NtTestAlert( + VOID); + +NTOSAPI +NTSTATUS +NTAPI ZwTestAlert( VOID); NTOSAPI NTSTATUS NTAPI +NtAlertThread( + /*IN*/ HANDLE ThreadHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwAlertThread( /*IN*/ HANDLE ThreadHandle); NTOSAPI NTSTATUS NTAPI +NtAlertResumeThread( + /*IN*/ HANDLE ThreadHandle, + /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwAlertResumeThread( /*IN*/ HANDLE ThreadHandle, /*OUT*/ PULONG PreviousSuspendCount /*OPTIONAL*/); @@ -1328,12 +1647,26 @@ ZwAlertResumeThread( NTOSAPI NTSTATUS NTAPI +NtRegisterThreadTerminatePort( + /*IN*/ HANDLE PortHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwRegisterThreadTerminatePort( /*IN*/ HANDLE PortHandle); NTOSAPI NTSTATUS NTAPI +NtImpersonateThread( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ HANDLE TargetThreadHandle, + /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos); + +NTOSAPI +NTSTATUS +NTAPI ZwImpersonateThread( /*IN*/ HANDLE ThreadHandle, /*IN*/ HANDLE TargetThreadHandle, @@ -1342,6 +1675,12 @@ ZwImpersonateThread( NTOSAPI NTSTATUS NTAPI +NtImpersonateAnonymousToken( + /*IN*/ HANDLE ThreadHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwImpersonateAnonymousToken( /*IN*/ HANDLE ThreadHandle); @@ -1353,7 +1692,7 @@ ZwImpersonateAnonymousToken( NTOSAPI NTSTATUS NTAPI -ZwCreateProcess( +NtCreateProcess( /*OUT*/ PHANDLE ProcessHandle, /*IN*/ ACCESS_MASK DesiredAccess, /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, @@ -1379,6 +1718,13 @@ ZwCreateProcess( NTOSAPI NTSTATUS NTAPI +NtTerminateProcess( + /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus); + +NTOSAPI +NTSTATUS +NTAPI ZwTerminateProcess( /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, /*IN*/ NTSTATUS ExitStatus); @@ -1386,6 +1732,16 @@ ZwTerminateProcess( NTOSAPI NTSTATUS NTAPI +NtQueryInformationProcess( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*OUT*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryInformationProcess( /*IN*/ HANDLE ProcessHandle, /*IN*/ PROCESSINFOCLASS ProcessInformationClass, @@ -1643,6 +1999,14 @@ typedef struct _DEBUG_LOCK_INFORMATION { NTOSAPI NTSTATUS NTAPI +NtCreateJobObject( + /*OUT*/ PHANDLE JobHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateJobObject( /*OUT*/ PHANDLE JobHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -1651,6 +2015,14 @@ ZwCreateJobObject( NTOSAPI NTSTATUS NTAPI +NtOpenJobObject( + /*OUT*/ PHANDLE JobHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwOpenJobObject( /*OUT*/ PHANDLE JobHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -1659,6 +2031,13 @@ ZwOpenJobObject( NTOSAPI NTSTATUS NTAPI +NtTerminateJobObject( + /*IN*/ HANDLE JobHandle, + /*IN*/ NTSTATUS ExitStatus); + +NTOSAPI +NTSTATUS +NTAPI ZwTerminateJobObject( /*IN*/ HANDLE JobHandle, /*IN*/ NTSTATUS ExitStatus); @@ -1666,6 +2045,13 @@ ZwTerminateJobObject( NTOSAPI NTSTATUS NTAPI +NtAssignProcessToJobObject( + /*IN*/ HANDLE JobHandle, + /*IN*/ HANDLE ProcessHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwAssignProcessToJobObject( /*IN*/ HANDLE JobHandle, /*IN*/ HANDLE ProcessHandle); @@ -1673,6 +2059,16 @@ ZwAssignProcessToJobObject( NTOSAPI NTSTATUS NTAPI +NtQueryInformationJobObject( + /*IN*/ HANDLE JobHandle, + /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, + /*OUT*/ PVOID JobInformation, + /*IN*/ ULONG JobInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryInformationJobObject( /*IN*/ HANDLE JobHandle, /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, @@ -1683,6 +2079,15 @@ ZwQueryInformationJobObject( NTOSAPI NTSTATUS NTAPI +NtSetInformationJobObject( + /*IN*/ HANDLE JobHandle, + /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, + /*IN*/ PVOID JobInformation, + /*IN*/ ULONG JobInformationLength); + +NTOSAPI +NTSTATUS +NTAPI ZwSetInformationJobObject( /*IN*/ HANDLE JobHandle, /*IN*/ JOBOBJECTINFOCLASS JobInformationClass, @@ -1695,6 +2100,25 @@ ZwSetInformationJobObject( NTOSAPI NTSTATUS NTAPI +NtCreateToken( + /*OUT*/ PHANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ TOKEN_TYPE Type, + /*IN*/ PLUID AuthenticationId, + /*IN*/ PLARGE_INTEGER ExpirationTime, + /*IN*/ PTOKEN_USER User, + /*IN*/ PTOKEN_GROUPS Groups, + /*IN*/ PTOKEN_PRIVILEGES Privileges, + /*IN*/ PTOKEN_OWNER Owner, + /*IN*/ PTOKEN_PRIMARY_GROUP PrimaryGroup, + /*IN*/ PTOKEN_DEFAULT_DACL DefaultDacl, + /*IN*/ PTOKEN_SOURCE Source +); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateToken( /*OUT*/ PHANDLE TokenHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -1770,6 +2194,17 @@ ZwDuplicateToken( NTOSAPI NTSTATUS NTAPI +NtFilterToken( + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ULONG Flags, + /*IN*/ PTOKEN_GROUPS SidsToDisable, + /*IN*/ PTOKEN_PRIVILEGES PrivilegesToDelete, + /*IN*/ PTOKEN_GROUPS SidsToRestricted, + /*OUT*/ PHANDLE NewTokenHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwFilterToken( /*IN*/ HANDLE ExistingTokenHandle, /*IN*/ ULONG Flags, @@ -1803,6 +2238,17 @@ ZwAdjustPrivilegesToken( NTOSAPI NTSTATUS NTAPI +NtAdjustGroupsToken( + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN ResetToDefault, + /*IN*/ PTOKEN_GROUPS NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_GROUPS PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength); + +NTOSAPI +NTSTATUS +NTAPI ZwAdjustGroupsToken( /*IN*/ HANDLE TokenHandle, /*IN*/ BOOLEAN ResetToDefault, @@ -1834,6 +2280,15 @@ ZwQueryInformationToken( NTOSAPI NTSTATUS NTAPI +NtSetInformationToken( + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*IN*/ PVOID TokenInformation, + /*IN*/ ULONG TokenInformationLength); + +NTOSAPI +NTSTATUS +NTAPI ZwSetInformationToken( /*IN*/ HANDLE TokenHandle, /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, @@ -1848,12 +2303,25 @@ ZwSetInformationToken( NTOSAPI NTSTATUS NTAPI +NtQuerySystemTime( + /*OUT*/ PLARGE_INTEGER CurrentTime); + +NTOSAPI +NTSTATUS +NTAPI ZwQuerySystemTime( /*OUT*/ PLARGE_INTEGER CurrentTime); NTOSAPI NTSTATUS NTAPI +NtSetSystemTime( + /*IN*/ PLARGE_INTEGER NewTime, + /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwSetSystemTime( /*IN*/ PLARGE_INTEGER NewTime, /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/); @@ -1861,7 +2329,7 @@ ZwSetSystemTime( NTOSAPI NTSTATUS NTAPI -ZwQueryPerformanceCounter( +NtQueryPerformanceCounter( /*OUT*/ PLARGE_INTEGER PerformanceCount, /*OUT*/ PLARGE_INTEGER PerformanceFrequency /*OPTIONAL*/); @@ -1875,6 +2343,14 @@ ZwQueryPerformanceCounter( NTOSAPI NTSTATUS NTAPI +NtQueryTimerResolution( + /*OUT*/ PULONG CoarsestResolution, + /*OUT*/ PULONG FinestResolution, + /*OUT*/ PULONG ActualResolution); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryTimerResolution( /*OUT*/ PULONG CoarsestResolution, /*OUT*/ PULONG FinestResolution, @@ -1883,6 +2359,13 @@ ZwQueryTimerResolution( NTOSAPI NTSTATUS NTAPI +NtDelayExecution( + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Interval); + +NTOSAPI +NTSTATUS +NTAPI ZwDelayExecution( /*IN*/ BOOLEAN Alertable, /*IN*/ PLARGE_INTEGER Interval); @@ -1890,12 +2373,24 @@ ZwDelayExecution( NTOSAPI NTSTATUS NTAPI +NtYieldExecution( + VOID); + +NTOSAPI +NTSTATUS +NTAPI ZwYieldExecution( VOID); NTOSAPI ULONG NTAPI +NtGetTickCount( + VOID); + +NTOSAPI +ULONG +NTAPI ZwGetTickCount( VOID); @@ -1907,6 +2402,20 @@ ZwGetTickCount( NTOSAPI NTSTATUS NTAPI +NtCreateProfile( + /*OUT*/ PHANDLE ProfileHandle, + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID Base, + /*IN*/ ULONG Size, + /*IN*/ ULONG BucketShift, + /*IN*/ PULONG Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ KPROFILE_SOURCE Source, + /*IN*/ ULONG ProcessorMask); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateProfile( /*OUT*/ PHANDLE ProfileHandle, /*IN*/ HANDLE ProcessHandle, @@ -1921,6 +2430,13 @@ ZwCreateProfile( NTOSAPI NTSTATUS NTAPI +NtSetIntervalProfile( + /*IN*/ ULONG Interval, + /*IN*/ KPROFILE_SOURCE Source); + +NTOSAPI +NTSTATUS +NTAPI ZwSetIntervalProfile( /*IN*/ ULONG Interval, /*IN*/ KPROFILE_SOURCE Source); @@ -1928,6 +2444,13 @@ ZwSetIntervalProfile( NTOSAPI NTSTATUS NTAPI +NtQueryIntervalProfile( + /*IN*/ KPROFILE_SOURCE Source, + /*OUT*/ PULONG Interval); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryIntervalProfile( /*IN*/ KPROFILE_SOURCE Source, /*OUT*/ PULONG Interval); @@ -1935,12 +2458,24 @@ ZwQueryIntervalProfile( NTOSAPI NTSTATUS NTAPI +NtStartProfile( + /*IN*/ HANDLE ProfileHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwStartProfile( /*IN*/ HANDLE ProfileHandle); NTOSAPI NTSTATUS NTAPI +NtStopProfile( + /*IN*/ HANDLE ProfileHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwStopProfile( /*IN*/ HANDLE ProfileHandle); @@ -1993,6 +2528,16 @@ typedef struct _LPC_SECTION_READ { NTOSAPI NTSTATUS NTAPI +NtCreatePort( + /*OUT*/ PHANDLE PortHandle, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG MaxDataSize, + /*IN*/ ULONG MaxMessageSize, + /*IN*/ ULONG Reserved); + +NTOSAPI +NTSTATUS +NTAPI ZwCreatePort( /*OUT*/ PHANDLE PortHandle, /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, @@ -2003,6 +2548,16 @@ ZwCreatePort( NTOSAPI NTSTATUS NTAPI +NtCreateWaitablePort( + /*OUT*/ PHANDLE PortHandle, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG MaxDataSize, + /*IN*/ ULONG MaxMessageSize, + /*IN*/ ULONG Reserved); + +NTOSAPI +NTSTATUS +NTAPI ZwCreateWaitablePort( /*OUT*/ PHANDLE PortHandle, /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, @@ -2039,15 +2594,9 @@ ZwConnectPort( NTOSAPI NTSTATUS NTAPI -ZwConnectPort( - /*OUT*/ PHANDLE PortHandle, - /*IN*/ PUNICODE_STRING PortName, - /*IN*/ PSECURITY_QUALITY_OF_SERVICE SecurityQos, - /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, - /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/, - /*OUT*/ PULONG MaxMessageSize /*OPTIONAL*/, - /*IN OUT*/ PVOID ConnectData /*OPTIONAL*/, - /*IN OUT*/ PULONG ConnectDataLength /*OPTIONAL*/); +NtListenPort( + /*IN*/ HANDLE PortHandle, + /*OUT*/ PLPC_MESSAGE Message); NTOSAPI NTSTATUS @@ -2059,6 +2608,17 @@ ZwListenPort( NTOSAPI NTSTATUS NTAPI +NtAcceptConnectPort( + /*OUT*/ PHANDLE PortHandle, + /*IN*/ ULONG PortIdentifier, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ BOOLEAN Accept, + /*IN OUT*/ PLPC_SECTION_WRITE WriteSection /*OPTIONAL*/, + /*IN OUT*/ PLPC_SECTION_READ ReadSection /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwAcceptConnectPort( /*OUT*/ PHANDLE PortHandle, /*IN*/ ULONG PortIdentifier, @@ -2070,6 +2630,12 @@ ZwAcceptConnectPort( NTOSAPI NTSTATUS NTAPI +NtCompleteConnectPort( + /*IN*/ HANDLE PortHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwCompleteConnectPort( /*IN*/ HANDLE PortHandle); @@ -2083,6 +2649,13 @@ NtRequestPort( NTOSAPI NTSTATUS NTAPI +ZwRequestPort( + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE RequestMessage); + +NTOSAPI +NTSTATUS +NTAPI NtRequestWaitReplyPort( /*IN*/ HANDLE PortHandle, /*IN*/ PLPC_MESSAGE RequestMessage, @@ -2099,6 +2672,13 @@ ZwRequestWaitReplyPort( NTOSAPI NTSTATUS NTAPI +NtReplyPort( + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE ReplyMessage); + +NTOSAPI +NTSTATUS +NTAPI ZwReplyPort( /*IN*/ HANDLE PortHandle, /*IN*/ PLPC_MESSAGE ReplyMessage); @@ -2106,6 +2686,13 @@ ZwReplyPort( NTOSAPI NTSTATUS NTAPI +NtReplyWaitReplyPort( + /*IN*/ HANDLE PortHandle, + /*IN OUT*/ PLPC_MESSAGE ReplyMessage); + +NTOSAPI +NTSTATUS +NTAPI ZwReplyWaitReplyPort( /*IN*/ HANDLE PortHandle, /*IN OUT*/ PLPC_MESSAGE ReplyMessage); @@ -2113,6 +2700,15 @@ ZwReplyWaitReplyPort( NTOSAPI NTSTATUS NTAPI +NtReplyWaitReceivePort( + /*IN*/ HANDLE PortHandle, + /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, + /*IN*/ PLPC_MESSAGE ReplyMessage /*OPTIONAL*/, + /*OUT*/ PLPC_MESSAGE Message); + +NTOSAPI +NTSTATUS +NTAPI ZwReplyWaitReceivePort( /*IN*/ HANDLE PortHandle, /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, @@ -2122,6 +2718,16 @@ ZwReplyWaitReceivePort( NTOSAPI NTSTATUS NTAPI +NtReplyWaitReceivePortEx( + /*IN*/ HANDLE PortHandle, + /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, + /*IN*/ PLPC_MESSAGE ReplyMessage /*OPTIONAL*/, + /*OUT*/ PLPC_MESSAGE Message, + /*IN*/ PLARGE_INTEGER Timeout); + +NTOSAPI +NTSTATUS +NTAPI ZwReplyWaitReceivePortEx( /*IN*/ HANDLE PortHandle, /*OUT*/ PULONG PortIdentifier /*OPTIONAL*/, @@ -2132,6 +2738,17 @@ ZwReplyWaitReceivePortEx( NTOSAPI NTSTATUS NTAPI +NtReadRequestData( + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ ULONG Index, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwReadRequestData( /*IN*/ HANDLE PortHandle, /*IN*/ PLPC_MESSAGE Message, @@ -2143,6 +2760,17 @@ ZwReadRequestData( NTOSAPI NTSTATUS NTAPI +NtWriteRequestData( + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message, + /*IN*/ ULONG Index, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwWriteRequestData( /*IN*/ HANDLE PortHandle, /*IN*/ PLPC_MESSAGE Message, @@ -2158,6 +2786,16 @@ typedef enum _PORT_INFORMATION_CLASS { NTOSAPI NTSTATUS NTAPI +NtQueryInformationPort( + /*IN*/ HANDLE PortHandle, + /*IN*/ PORT_INFORMATION_CLASS PortInformationClass, + /*OUT*/ PVOID PortInformation, + /*IN*/ ULONG PortInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryInformationPort( /*IN*/ HANDLE PortHandle, /*IN*/ PORT_INFORMATION_CLASS PortInformationClass, @@ -2168,6 +2806,13 @@ ZwQueryInformationPort( NTOSAPI NTSTATUS NTAPI +NtImpersonateClientOfPort( + /*IN*/ HANDLE PortHandle, + /*IN*/ PLPC_MESSAGE Message); + +NTOSAPI +NTSTATUS +NTAPI ZwImpersonateClientOfPort( /*IN*/ HANDLE PortHandle, /*IN*/ PLPC_MESSAGE Message); @@ -2192,6 +2837,13 @@ ZwDeleteFile( NTOSAPI NTSTATUS NTAPI +NtFlushBuffersFile( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); + +NTOSAPI +NTSTATUS +NTAPI ZwFlushBuffersFile( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); @@ -2199,6 +2851,13 @@ ZwFlushBuffersFile( NTOSAPI NTSTATUS NTAPI +NtCancelIoFile( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); + +NTOSAPI +NTSTATUS +NTAPI ZwCancelIoFile( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock); @@ -2206,6 +2865,20 @@ ZwCancelIoFile( NTOSAPI NTSTATUS NTAPI +NtReadFileScatter( + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PFILE_SEGMENT_ELEMENT Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwReadFileScatter( /*IN*/ HANDLE FileHandle, /*IN*/ HANDLE Event /*OPTIONAL*/, @@ -2220,6 +2893,20 @@ ZwReadFileScatter( NTOSAPI NTSTATUS NTAPI +NtWriteFileGather( + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PFILE_SEGMENT_ELEMENT Buffer, + /*IN*/ ULONG Length, + /*IN*/ PLARGE_INTEGER ByteOffset /*OPTIONAL*/, + /*IN*/ PULONG Key /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +NTAPI ZwWriteFileGather( /*IN*/ HANDLE FileHandle, /*IN*/ HANDLE Event /*OPTIONAL*/, @@ -2239,6 +2926,13 @@ ZwWriteFileGather( NTOSAPI NTSTATUS NTAPI +NtSaveKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwSaveKey( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE FileHandle); @@ -2246,6 +2940,14 @@ ZwSaveKey( NTOSAPI NTSTATUS NTAPI +NtSaveMergedKeys( + /*IN*/ HANDLE KeyHandle1, + /*IN*/ HANDLE KeyHandle2, + /*IN*/ HANDLE FileHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwSaveMergedKeys( /*IN*/ HANDLE KeyHandle1, /*IN*/ HANDLE KeyHandle2, @@ -2254,6 +2956,14 @@ ZwSaveMergedKeys( NTOSAPI NTSTATUS NTAPI +NtRestoreKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle, + /*IN*/ ULONG Flags); + +NTOSAPI +NTSTATUS +NTAPI ZwRestoreKey( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE FileHandle, @@ -2262,6 +2972,13 @@ ZwRestoreKey( NTOSAPI NTSTATUS NTAPI +NtLoadKey( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwLoadKey( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes); @@ -2269,6 +2986,14 @@ ZwLoadKey( NTOSAPI NTSTATUS NTAPI +NtLoadKey2( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes, + /*IN*/ ULONG Flags); + +NTOSAPI +NTSTATUS +NTAPI ZwLoadKey2( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes, @@ -2277,12 +3002,25 @@ ZwLoadKey2( NTOSAPI NTSTATUS NTAPI +NtUnloadKey( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwUnloadKey( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes); NTOSAPI NTSTATUS NTAPI +NtQueryOpenSubKeys( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*OUT*/ PULONG NumberOfKeys); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryOpenSubKeys( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, /*OUT*/ PULONG NumberOfKeys); @@ -2290,6 +3028,14 @@ ZwQueryOpenSubKeys( NTOSAPI NTSTATUS NTAPI +NtReplaceKey( + /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, + /*IN*/ HANDLE KeyHandle, + /*IN*/ POBJECT_ATTRIBUTES OldFileObjectAttributes); + +NTOSAPI +NTSTATUS +NTAPI ZwReplaceKey( /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, /*IN*/ HANDLE KeyHandle, @@ -2302,6 +3048,15 @@ typedef enum _KEY_SET_INFORMATION_CLASS { NTOSAPI NTSTATUS NTAPI +NtSetInformationKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ KEY_SET_INFORMATION_CLASS KeyInformationClass, + /*IN*/ PVOID KeyInformation, + /*IN*/ ULONG KeyInformationLength); + +NTOSAPI +NTSTATUS +NTAPI ZwSetInformationKey( /*IN*/ HANDLE KeyHandle, /*IN*/ KEY_SET_INFORMATION_CLASS KeyInformationClass, @@ -2320,6 +3075,21 @@ typedef struct _KEY_NAME_INFORMATION { NTOSAPI NTSTATUS NTAPI +NtNotifyChangeKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous); + +NTOSAPI +NTSTATUS +NTAPI ZwNotifyChangeKey( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE EventHandle /*OPTIONAL*/, @@ -2339,6 +3109,23 @@ ZwNotifyChangeKey( NTOSAPI NTSTATUS NTAPI +NtNotifyChangeMultipleKeys( + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous); + +NTOSAPI +NTSTATUS +NTAPI ZwNotifyChangeMultipleKeys( /*IN*/ HANDLE KeyHandle, /*IN*/ ULONG Flags, @@ -2356,6 +3143,17 @@ ZwNotifyChangeMultipleKeys( NTOSAPI NTSTATUS NTAPI +NtQueryMultipleValueKey( + /*IN*/ HANDLE KeyHandle, + /*IN OUT*/ PKEY_VALUE_ENTRY ValueList, + /*IN*/ ULONG NumberOfValues, + /*OUT*/ PVOID Buffer, + /*IN OUT*/ PULONG Length, + /*OUT*/ PULONG ReturnLength); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryMultipleValueKey( /*IN*/ HANDLE KeyHandle, /*IN OUT*/ PKEY_VALUE_ENTRY ValueList, @@ -2367,6 +3165,12 @@ ZwQueryMultipleValueKey( NTOSAPI NTSTATUS NTAPI +NtInitializeRegistry( + /*IN*/ BOOLEAN Setup); + +NTOSAPI +NTSTATUS +NTAPI ZwInitializeRegistry( /*IN*/ BOOLEAN Setup); @@ -2378,6 +3182,14 @@ ZwInitializeRegistry( NTOSAPI NTSTATUS NTAPI +NtPrivilegeCheck( + /*IN*/ HANDLE TokenHandle, + /*IN*/ PPRIVILEGE_SET RequiredPrivileges, + /*OUT*/ PBOOLEAN Result); + +NTOSAPI +NTSTATUS +NTAPI ZwPrivilegeCheck( /*IN*/ HANDLE TokenHandle, /*IN*/ PPRIVILEGE_SET RequiredPrivileges, @@ -2386,7 +3198,7 @@ ZwPrivilegeCheck( NTOSAPI NTSTATUS NTAPI -ZwPrivilegeObjectAuditAlarm( +NtPrivilegeObjectAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, /*IN*/ HANDLE TokenHandle, @@ -2408,6 +3220,19 @@ ZwPrivilegeObjectAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtAccessCheck( + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheck( /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, /*IN*/ HANDLE TokenHandle, @@ -2421,6 +3246,22 @@ ZwAccessCheck( NTOSAPI NTSTATUS NTAPI +NtAccessCheckAndAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckAndAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2437,6 +3278,22 @@ ZwAccessCheckAndAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtAccessCheckByType( + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ULONG DesiredAccess, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PULONG AccessStatus); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckByType( /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, /*IN*/ PSID PrincipalSelfSid, @@ -2458,6 +3315,27 @@ typedef enum _AUDIT_EVENT_TYPE { NTOSAPI NTSTATUS NTAPI +NtAccessCheckByTypeAndAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PULONG AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckByTypeAndAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2479,6 +3357,22 @@ ZwAccessCheckByTypeAndAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtAccessCheckByTypeResultList( + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ PPRIVILEGE_SET PrivilegeSet, + /*IN*/ PULONG PrivilegeSetLength, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckByTypeResultList( /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, /*IN*/ PSID PrincipalSelfSid, @@ -2495,6 +3389,27 @@ ZwAccessCheckByTypeResultList( NTOSAPI NTSTATUS NTAPI +NtAccessCheckByTypeResultListAndAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList, + /*OUT*/ PULONG GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckByTypeResultListAndAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2516,6 +3431,28 @@ ZwAccessCheckByTypeResultListAndAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtAccessCheckByTypeResultListAndAuditAlarmByHandle( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ HANDLE TokenHandle, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ PSID PrincipalSelfSid, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ AUDIT_EVENT_TYPE AuditType, + /*IN*/ ULONG Flags, + /*IN*/ POBJECT_TYPE_LIST ObjectTypeList, + /*IN*/ ULONG ObjectTypeListLength, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccessList, + /*OUT*/ PULONG AccessStatusList, + /*OUT*/ PULONG GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2538,6 +3475,23 @@ ZwAccessCheckByTypeResultListAndAuditAlarmByHandle( NTOSAPI NTSTATUS NTAPI +NtOpenObjectAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID *HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ HANDLE TokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ACCESS_MASK GrantedAccess, + /*IN*/ PPRIVILEGE_SET Privileges /*OPTIONAL*/, + /*IN*/ BOOLEAN ObjectCreation, + /*IN*/ BOOLEAN AccessGranted, + /*OUT*/ PBOOLEAN GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwOpenObjectAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID *HandleId, @@ -2555,6 +3509,14 @@ ZwOpenObjectAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtCloseObjectAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwCloseObjectAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2563,6 +3525,14 @@ ZwCloseObjectAuditAlarm( NTOSAPI NTSTATUS NTAPI +NtDeleteObjectAuditAlarm( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose); + +NTOSAPI +NTSTATUS +NTAPI ZwDeleteObjectAuditAlarm( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -2641,6 +3611,14 @@ ZwPowerInformation( NTOSAPI NTSTATUS NTAPI +NtPlugPlayControl( + /*IN*/ ULONG ControlCode, + /*IN OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength); + +NTOSAPI +NTSTATUS +NTAPI ZwPlugPlayControl( /*IN*/ ULONG ControlCode, /*IN OUT*/ PVOID Buffer, @@ -2649,6 +3627,15 @@ ZwPlugPlayControl( NTOSAPI NTSTATUS NTAPI +NtGetPlugPlayEvent( + /*IN*/ ULONG Reserved1, + /*IN*/ ULONG Reserved2, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG BufferLength); + +NTOSAPI +NTSTATUS +NTAPI ZwGetPlugPlayEvent( /*IN*/ ULONG Reserved1, /*IN*/ ULONG Reserved2, @@ -2663,6 +3650,14 @@ ZwGetPlugPlayEvent( NTOSAPI NTSTATUS NTAPI +NtRaiseException( + /*IN*/ PEXCEPTION_RECORD ExceptionRecord, + /*IN*/ PCONTEXT Context, + /*IN*/ BOOLEAN SearchFrames); + +NTOSAPI +NTSTATUS +NTAPI ZwRaiseException( /*IN*/ PEXCEPTION_RECORD ExceptionRecord, /*IN*/ PCONTEXT Context, @@ -2671,6 +3666,13 @@ ZwRaiseException( NTOSAPI NTSTATUS NTAPI +NtContinue( + /*IN*/ PCONTEXT Context, + /*IN*/ BOOLEAN TestAlert); + +NTOSAPI +NTSTATUS +NTAPI ZwContinue( /*IN*/ PCONTEXT Context, /*IN*/ BOOLEAN TestAlert); @@ -2688,30 +3690,62 @@ ZwW32Call( NTOSAPI NTSTATUS NTAPI +NtSetLowWaitHighThread( + VOID); + +NTOSAPI +NTSTATUS +NTAPI ZwSetLowWaitHighThread( VOID); NTOSAPI NTSTATUS NTAPI +NtSetHighWaitLowThread( + VOID); + +NTOSAPI +NTSTATUS +NTAPI ZwSetHighWaitLowThread( VOID); NTOSAPI NTSTATUS NTAPI +NtLoadDriver( + /*IN*/ PUNICODE_STRING DriverServiceName); + +NTOSAPI +NTSTATUS +NTAPI ZwLoadDriver( /*IN*/ PUNICODE_STRING DriverServiceName); NTOSAPI NTSTATUS NTAPI +NtUnloadDriver( + /*IN*/ PUNICODE_STRING DriverServiceName); + +NTOSAPI +NTSTATUS +NTAPI ZwUnloadDriver( /*IN*/ PUNICODE_STRING DriverServiceName); NTOSAPI NTSTATUS NTAPI +NtFlushInstructionCache( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress /*OPTIONAL*/, + /*IN*/ ULONG FlushSize); + +NTOSAPI +NTSTATUS +NTAPI ZwFlushInstructionCache( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress /*OPTIONAL*/, @@ -2720,12 +3754,25 @@ ZwFlushInstructionCache( NTOSAPI NTSTATUS NTAPI +NtFlushWriteBuffer( + VOID); + +NTOSAPI +NTSTATUS +NTAPI ZwFlushWriteBuffer( VOID); NTOSAPI NTSTATUS NTAPI +NtQueryDefaultLocale( + /*IN*/ BOOLEAN ThreadOrSystem, + /*OUT*/ PLCID Locale); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryDefaultLocale( /*IN*/ BOOLEAN ThreadOrSystem, /*OUT*/ PLCID Locale); @@ -2733,6 +3780,13 @@ ZwQueryDefaultLocale( NTOSAPI NTSTATUS NTAPI +NtSetDefaultLocale( + /*IN*/ BOOLEAN ThreadOrSystem, + /*IN*/ LCID Locale); + +NTOSAPI +NTSTATUS +NTAPI ZwSetDefaultLocale( /*IN*/ BOOLEAN ThreadOrSystem, /*IN*/ LCID Locale); @@ -2740,18 +3794,36 @@ ZwSetDefaultLocale( NTOSAPI NTSTATUS NTAPI +NtQueryDefaultUILanguage( + /*OUT*/ PLANGID LanguageId); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryDefaultUILanguage( /*OUT*/ PLANGID LanguageId); NTOSAPI NTSTATUS NTAPI +NtSetDefaultUILanguage( + /*IN*/ LANGID LanguageId); + +NTOSAPI +NTSTATUS +NTAPI ZwSetDefaultUILanguage( /*IN*/ LANGID LanguageId); NTOSAPI NTSTATUS NTAPI +NtQueryInstallUILanguage( + /*OUT*/ PLANGID LanguageId); + +NTOSAPI +NTSTATUS +NTAPI ZwQueryInstallUILanguage( /*OUT*/ PLANGID LanguageId); @@ -2773,6 +3845,21 @@ NtAllocateUuids( NTOSAPI NTSTATUS NTAPI +ZwAllocateUuids( + /*OUT*/ PLARGE_INTEGER UuidLastTimeAllocated, + /*OUT*/ PULONG UuidDeltaTime, + /*OUT*/ PULONG UuidSequenceNumber, + /*OUT*/ PUCHAR UuidSeed); + +NTOSAPI +NTSTATUS +NTAPI +NtSetUuidSeed( + /*IN*/ PUCHAR UuidSeed); + +NTOSAPI +NTSTATUS +NTAPI ZwSetUuidSeed( /*IN*/ PUCHAR UuidSeed); @@ -2801,6 +3888,17 @@ typedef enum _HARDERROR_RESPONSE { NTOSAPI NTSTATUS NTAPI +NtRaiseHardError( + /*IN*/ NTSTATUS Status, + /*IN*/ ULONG NumberOfArguments, + /*IN*/ ULONG StringArgumentsMask, + /*IN*/ PULONG Arguments, + /*IN*/ HARDERROR_RESPONSE_OPTION ResponseOption, + /*OUT*/ PHARDERROR_RESPONSE Response); + +NTOSAPI +NTSTATUS +NTAPI ZwRaiseHardError( /*IN*/ NTSTATUS Status, /*IN*/ ULONG NumberOfArguments, @@ -2812,18 +3910,39 @@ ZwRaiseHardError( NTOSAPI NTSTATUS NTAPI +NtSetDefaultHardErrorPort( + /*IN*/ HANDLE PortHandle); + +NTOSAPI +NTSTATUS +NTAPI ZwSetDefaultHardErrorPort( /*IN*/ HANDLE PortHandle); NTOSAPI NTSTATUS NTAPI +NtDisplayString( + /*IN*/ PUNICODE_STRING String); + +NTOSAPI +NTSTATUS +NTAPI ZwDisplayString( /*IN*/ PUNICODE_STRING String); NTOSAPI NTSTATUS NTAPI +NtCreatePagingFile( + /*IN*/ PUNICODE_STRING FileName, + /*IN*/ PULARGE_INTEGER InitialSize, + /*IN*/ PULARGE_INTEGER MaximumSize, + /*IN*/ ULONG Reserved); + +NTOSAPI +NTSTATUS +NTAPI ZwCreatePagingFile( /*IN*/ PUNICODE_STRING FileName, /*IN*/ PULARGE_INTEGER InitialSize, @@ -2843,6 +3962,14 @@ NtAddAtom( NTOSAPI NTSTATUS NTAPI +ZwAddAtom( + /*IN*/ PWSTR AtomName, + /*IN*/ ULONG AtomNameLength, + /*OUT*/ PRTL_ATOM Atom); + +NTOSAPI +NTSTATUS +NTAPI NtFindAtom( /*IN*/ PWSTR AtomName, /*IN*/ ULONG AtomNameLength, @@ -2851,9 +3978,23 @@ NtFindAtom( NTOSAPI NTSTATUS NTAPI +ZwFindAtom( + /*IN*/ PWSTR AtomName, + /*IN*/ ULONG AtomNameLength, + /*OUT*/ PRTL_ATOM Atom); + +NTOSAPI +NTSTATUS +NTAPI NtDeleteAtom( /*IN*/ RTL_ATOM Atom); +NTOSAPI +NTSTATUS +NTAPI +ZwDeleteAtom( + /*IN*/ RTL_ATOM Atom); + typedef enum _ATOM_INFORMATION_CLASS { AtomBasicInformation, AtomListInformation @@ -2869,6 +4010,16 @@ NtQueryInformationAtom( /*IN*/ ULONG AtomInformationLength, /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); +NTOSAPI +NTSTATUS +NTAPI +ZwQueryInformationAtom( + /*IN*/ RTL_ATOM Atom, + /*IN*/ ATOM_INFORMATION_CLASS AtomInformationClass, + /*OUT*/ PVOID AtomInformation, + /*IN*/ ULONG AtomInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/); + typedef struct _ATOM_BASIC_INFORMATION { USHORT ReferenceCount; USHORT Pinned; @@ -2884,6 +4035,15 @@ typedef struct _ATOM_LIST_INFORMATION { NTOSAPI NTSTATUS NTAPI +NtSetLdtEntries( + /*IN*/ ULONG Selector1, + /*IN*/ LDT_ENTRY LdtEntry1, + /*IN*/ ULONG Selector2, + /*IN*/ LDT_ENTRY LdtEntry2); + +NTOSAPI +NTSTATUS +NTAPI ZwSetLdtEntries( /*IN*/ ULONG Selector1, /*IN*/ LDT_ENTRY LdtEntry1, @@ -2897,6 +4057,13 @@ NtVdmControl( /*IN*/ ULONG ControlCode, /*IN*/ PVOID ControlData); +NTOSAPI +NTSTATUS +NTAPI +ZwVdmControl( + /*IN*/ ULONG ControlCode, + /*IN*/ PVOID ControlData); + #pragma pack(pop) #ifdef __cplusplus diff --git a/winsup/w32api/include/ddk/ntifs.h b/winsup/w32api/include/ddk/ntifs.h index 2524e27..42d861f 100644 --- a/winsup/w32api/include/ddk/ntifs.h +++ b/winsup/w32api/include/ddk/ntifs.h @@ -4060,6 +4060,18 @@ SeUnregisterLogonSessionTerminatedRoutine ( NTSYSAPI NTSTATUS NTAPI +NtAdjustPrivilegesToken ( + /*IN*/ HANDLE TokenHandle, + /*IN*/ BOOLEAN DisableAllPrivileges, + /*IN*/ PTOKEN_PRIVILEGES NewState, + /*IN*/ ULONG BufferLength, + /*OUT*/ PTOKEN_PRIVILEGES PreviousState /*OPTIONAL*/, + /*OUT*/ PULONG ReturnLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwAdjustPrivilegesToken ( /*IN*/ HANDLE TokenHandle, /*IN*/ BOOLEAN DisableAllPrivileges, @@ -4074,6 +4086,13 @@ ZwAdjustPrivilegesToken ( NTSYSAPI NTSTATUS NTAPI +NtAlertThread ( + /*IN*/ HANDLE ThreadHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwAlertThread ( /*IN*/ HANDLE ThreadHandle ); @@ -4081,6 +4100,18 @@ ZwAlertThread ( NTSYSAPI NTSTATUS NTAPI +NtAllocateVirtualMemory ( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN*/ ULONG ZeroBits, + /*IN OUT*/ PULONG RegionSize, + /*IN*/ ULONG AllocationType, + /*IN*/ ULONG Protect +); + +NTSYSAPI +NTSTATUS +NTAPI ZwAllocateVirtualMemory ( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -4093,6 +4124,23 @@ ZwAllocateVirtualMemory ( NTSYSAPI NTSTATUS NTAPI +NtAccessCheckAndAuditAlarm ( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ PUNICODE_STRING ObjectTypeName, + /*IN*/ PUNICODE_STRING ObjectName, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ PGENERIC_MAPPING GenericMapping, + /*IN*/ BOOLEAN ObjectCreation, + /*OUT*/ PACCESS_MASK GrantedAccess, + /*OUT*/ PBOOLEAN AccessStatus, + /*OUT*/ PBOOLEAN GenerateOnClose +); + +NTSYSAPI +NTSTATUS +NTAPI ZwAccessCheckAndAuditAlarm ( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -4112,6 +4160,14 @@ ZwAccessCheckAndAuditAlarm ( NTSYSAPI NTSTATUS NTAPI +NtCancelIoFile ( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock +); + +NTSYSAPI +NTSTATUS +NTAPI ZwCancelIoFile ( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock @@ -4122,6 +4178,13 @@ ZwCancelIoFile ( NTSYSAPI NTSTATUS NTAPI +NtClearEvent ( + /*IN*/ HANDLE EventHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwClearEvent ( /*IN*/ HANDLE EventHandle ); @@ -4129,6 +4192,15 @@ ZwClearEvent ( NTSYSAPI NTSTATUS NTAPI +NtCloseObjectAuditAlarm ( + /*IN*/ PUNICODE_STRING SubsystemName, + /*IN*/ PVOID HandleId, + /*IN*/ BOOLEAN GenerateOnClose +); + +NTSYSAPI +NTSTATUS +NTAPI ZwCloseObjectAuditAlarm ( /*IN*/ PUNICODE_STRING SubsystemName, /*IN*/ PVOID HandleId, @@ -4138,6 +4210,19 @@ ZwCloseObjectAuditAlarm ( NTSYSAPI NTSTATUS NTAPI +NtCreateSection ( + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ PLARGE_INTEGER MaximumSize /*OPTIONAL*/, + /*IN*/ ULONG SectionPageProtection, + /*IN*/ ULONG AllocationAttributes, + /*IN*/ HANDLE FileHandle /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwCreateSection ( /*OUT*/ PHANDLE SectionHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4151,6 +4236,16 @@ ZwCreateSection ( NTSYSAPI NTSTATUS NTAPI +NtCreateSymbolicLinkObject ( + /*OUT*/ PHANDLE SymbolicLinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PUNICODE_STRING TargetName +); + +NTSYSAPI +NTSTATUS +NTAPI ZwCreateSymbolicLinkObject ( /*OUT*/ PHANDLE SymbolicLinkHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4161,6 +4256,13 @@ ZwCreateSymbolicLinkObject ( NTSYSAPI NTSTATUS NTAPI +NtDeleteFile ( + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDeleteFile ( /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes ); @@ -4168,6 +4270,14 @@ ZwDeleteFile ( NTSYSAPI NTSTATUS NTAPI +NtDeleteValueKey ( + /*IN*/ HANDLE Handle, + /*IN*/ PUNICODE_STRING Name +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDeleteValueKey ( /*IN*/ HANDLE Handle, /*IN*/ PUNICODE_STRING Name @@ -4176,6 +4286,22 @@ ZwDeleteValueKey ( NTSYSAPI NTSTATUS NTAPI +NtDeviceIoControlFile ( + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG IoControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDeviceIoControlFile ( /*IN*/ HANDLE FileHandle, /*IN*/ HANDLE Event /*OPTIONAL*/, @@ -4192,6 +4318,13 @@ ZwDeviceIoControlFile ( NTSYSAPI NTSTATUS NTAPI +NtDisplayString ( + /*IN*/ PUNICODE_STRING String +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDisplayString ( /*IN*/ PUNICODE_STRING String ); @@ -4199,6 +4332,19 @@ ZwDisplayString ( NTSYSAPI NTSTATUS NTAPI +NtDuplicateObject ( + /*IN*/ HANDLE SourceProcessHandle, + /*IN*/ HANDLE SourceHandle, + /*IN*/ HANDLE TargetProcessHandle /*OPTIONAL*/, + /*OUT*/ PHANDLE TargetHandle /*OPTIONAL*/, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ ULONG HandleAttributes, + /*IN*/ ULONG Options +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDuplicateObject ( /*IN*/ HANDLE SourceProcessHandle, /*IN*/ HANDLE SourceHandle, @@ -4212,6 +4358,18 @@ ZwDuplicateObject ( NTSYSAPI NTSTATUS NTAPI +NtDuplicateToken ( + /*IN*/ HANDLE ExistingTokenHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ BOOLEAN EffectiveOnly, + /*IN*/ TOKEN_TYPE TokenType, + /*OUT*/ PHANDLE NewTokenHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwDuplicateToken ( /*IN*/ HANDLE ExistingTokenHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4224,6 +4382,15 @@ ZwDuplicateToken ( NTSYSAPI NTSTATUS NTAPI +NtFlushInstructionCache ( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PVOID BaseAddress /*OPTIONAL*/, + /*IN*/ ULONG FlushSize +); + +NTSYSAPI +NTSTATUS +NTAPI ZwFlushInstructionCache ( /*IN*/ HANDLE ProcessHandle, /*IN*/ PVOID BaseAddress /*OPTIONAL*/, @@ -4235,6 +4402,16 @@ ZwFlushInstructionCache ( NTSYSAPI NTSTATUS NTAPI +NtFlushVirtualMemory ( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG FlushSize, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock +); + +NTSYSAPI +NTSTATUS +NTAPI ZwFlushVirtualMemory ( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -4247,6 +4424,16 @@ ZwFlushVirtualMemory ( NTSYSAPI NTSTATUS NTAPI +NtFreeVirtualMemory ( + /*IN*/ HANDLE ProcessHandle, + /*IN OUT*/ PVOID *BaseAddress, + /*IN OUT*/ PULONG RegionSize, + /*IN*/ ULONG FreeType +); + +NTSYSAPI +NTSTATUS +NTAPI ZwFreeVirtualMemory ( /*IN*/ HANDLE ProcessHandle, /*IN OUT*/ PVOID *BaseAddress, @@ -4257,6 +4444,22 @@ ZwFreeVirtualMemory ( NTSYSAPI NTSTATUS NTAPI +NtFsControlFile ( + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG FsControlCode, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwFsControlFile ( /*IN*/ HANDLE FileHandle, /*IN*/ HANDLE Event /*OPTIONAL*/, @@ -4275,6 +4478,16 @@ ZwFsControlFile ( NTSYSAPI NTSTATUS NTAPI +NtInitiatePowerAction ( + /*IN*/ POWER_ACTION SystemAction, + /*IN*/ SYSTEM_POWER_STATE MinSystemState, + /*IN*/ ULONG Flags, + /*IN*/ BOOLEAN Asynchronous +); + +NTSYSAPI +NTSTATUS +NTAPI ZwInitiatePowerAction ( /*IN*/ POWER_ACTION SystemAction, /*IN*/ SYSTEM_POWER_STATE MinSystemState, @@ -4287,6 +4500,14 @@ ZwInitiatePowerAction ( NTSYSAPI NTSTATUS NTAPI +NtLoadDriver ( + /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>" */ + /*IN*/ PUNICODE_STRING RegistryPath +); + +NTSYSAPI +NTSTATUS +NTAPI ZwLoadDriver ( /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>" */ /*IN*/ PUNICODE_STRING RegistryPath @@ -4295,6 +4516,14 @@ ZwLoadDriver ( NTSYSAPI NTSTATUS NTAPI +NtLoadKey ( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, + /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwLoadKey ( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes, /*IN*/ POBJECT_ATTRIBUTES FileObjectAttributes @@ -4303,6 +4532,22 @@ ZwLoadKey ( NTSYSAPI NTSTATUS NTAPI +NtNotifyChangeKey ( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE EventHandle /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ ULONG NotifyFilter, + /*IN*/ BOOLEAN WatchSubtree, + /*IN*/ PVOID Buffer, + /*IN*/ ULONG BufferLength, + /*IN*/ BOOLEAN Asynchronous +); + +NTSYSAPI +NTSTATUS +NTAPI ZwNotifyChangeKey ( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE EventHandle /*OPTIONAL*/, @@ -4319,6 +4564,15 @@ ZwNotifyChangeKey ( NTSYSAPI NTSTATUS NTAPI +NtOpenDirectoryObject ( + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenDirectoryObject ( /*OUT*/ PHANDLE DirectoryHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4328,6 +4582,15 @@ ZwOpenDirectoryObject ( NTSYSAPI NTSTATUS NTAPI +NtOpenEvent ( + /*OUT*/ PHANDLE EventHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenEvent ( /*OUT*/ PHANDLE EventHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4337,6 +4600,16 @@ ZwOpenEvent ( NTSYSAPI NTSTATUS NTAPI +NtOpenProcess ( + /*OUT*/ PHANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenProcess ( /*OUT*/ PHANDLE ProcessHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4347,6 +4620,15 @@ ZwOpenProcess ( NTSYSAPI NTSTATUS NTAPI +NtOpenProcessToken ( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*OUT*/ PHANDLE TokenHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenProcessToken ( /*IN*/ HANDLE ProcessHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4356,6 +4638,16 @@ ZwOpenProcessToken ( NTSYSAPI NTSTATUS NTAPI +NtOpenThread ( + /*OUT*/ PHANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ PCLIENT_ID ClientId +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenThread ( /*OUT*/ PHANDLE ThreadHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4366,6 +4658,16 @@ ZwOpenThread ( NTSYSAPI NTSTATUS NTAPI +NtOpenThreadToken ( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ BOOLEAN OpenAsSelf, + /*OUT*/ PHANDLE TokenHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwOpenThreadToken ( /*IN*/ HANDLE ThreadHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -4378,6 +4680,17 @@ ZwOpenThreadToken ( NTSYSAPI NTSTATUS NTAPI +NtPowerInformation ( + /*IN*/ POWER_INFORMATION_LEVEL PowerInformationLevel, + /*IN*/ PVOID InputBuffer /*OPTIONAL*/, + /*IN*/ ULONG InputBufferLength, + /*OUT*/ PVOID OutputBuffer /*OPTIONAL*/, + /*IN*/ ULONG OutputBufferLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwPowerInformation ( /*IN*/ POWER_INFORMATION_LEVEL PowerInformationLevel, /*IN*/ PVOID InputBuffer /*OPTIONAL*/, @@ -4391,6 +4704,14 @@ ZwPowerInformation ( NTSYSAPI NTSTATUS NTAPI +NtPulseEvent ( + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwPulseEvent ( /*IN*/ HANDLE EventHandle, /*OUT*/ PULONG PreviousState /*OPTIONAL*/ @@ -4399,6 +4720,14 @@ ZwPulseEvent ( NTSYSAPI NTSTATUS NTAPI +NtQueryDefaultLocale ( + /*IN*/ BOOLEAN ThreadOrSystem, + /*OUT*/ PLCID Locale +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryDefaultLocale ( /*IN*/ BOOLEAN ThreadOrSystem, /*OUT*/ PLCID Locale @@ -4407,6 +4736,23 @@ ZwQueryDefaultLocale ( NTSYSAPI NTSTATUS NTAPI +NtQueryDirectoryFile ( + /*IN*/ HANDLE FileHandle, + /*IN*/ HANDLE Event /*OPTIONAL*/, + /*IN*/ PIO_APC_ROUTINE ApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID ApcContext /*OPTIONAL*/, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ PUNICODE_STRING FileName /*OPTIONAL*/, + /*IN*/ BOOLEAN RestartScan +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryDirectoryFile ( /*IN*/ HANDLE FileHandle, /*IN*/ HANDLE Event /*OPTIONAL*/, @@ -4426,6 +4772,19 @@ ZwQueryDirectoryFile ( NTSYSAPI NTSTATUS NTAPI +NtQueryDirectoryObject ( + /*IN*/ HANDLE DirectoryHandle, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ BOOLEAN RestartScan, + /*IN OUT*/ PULONG Context, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryDirectoryObject ( /*IN*/ HANDLE DirectoryHandle, /*OUT*/ PVOID Buffer, @@ -4439,6 +4798,21 @@ ZwQueryDirectoryObject ( NTSYSAPI NTSTATUS NTAPI +NtQueryEaFile ( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length, + /*IN*/ BOOLEAN ReturnSingleEntry, + /*IN*/ PVOID EaList /*OPTIONAL*/, + /*IN*/ ULONG EaListLength, + /*IN*/ PULONG EaIndex /*OPTIONAL*/, + /*IN*/ BOOLEAN RestartScan +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryEaFile ( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -4456,6 +4830,17 @@ ZwQueryEaFile ( NTSYSAPI NTSTATUS NTAPI +NtQueryInformationProcess ( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*OUT*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength, + /*OUT*/ PULONG ReturnLength /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryInformationProcess ( /*IN*/ HANDLE ProcessHandle, /*IN*/ PROCESSINFOCLASS ProcessInformationClass, @@ -4467,6 +4852,17 @@ ZwQueryInformationProcess ( NTSYSAPI NTSTATUS NTAPI +NtQueryInformationToken ( + /*IN*/ HANDLE TokenHandle, + /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, + /*OUT*/ PVOID TokenInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryInformationToken ( /*IN*/ HANDLE TokenHandle, /*IN*/ TOKEN_INFORMATION_CLASS TokenInformationClass, @@ -4478,6 +4874,17 @@ ZwQueryInformationToken ( NTSYSAPI NTSTATUS NTAPI +NtQueryObject ( + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*OUT*/ PVOID ObjectInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryObject ( /*IN*/ HANDLE ObjectHandle, /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, @@ -4489,6 +4896,17 @@ ZwQueryObject ( NTSYSAPI NTSTATUS NTAPI +NtQuerySection ( + /*IN*/ HANDLE SectionHandle, + /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, + /*OUT*/ PVOID SectionInformation, + /*IN*/ ULONG SectionInformationLength, + /*OUT*/ PULONG ResultLength /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQuerySection ( /*IN*/ HANDLE SectionHandle, /*IN*/ SECTION_INFORMATION_CLASS SectionInformationClass, @@ -4500,6 +4918,17 @@ ZwQuerySection ( NTSYSAPI NTSTATUS NTAPI +NtQuerySecurityObject ( + /*IN*/ HANDLE FileHandle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*OUT*/ PSECURITY_DESCRIPTOR SecurityDescriptor, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQuerySecurityObject ( /*IN*/ HANDLE FileHandle, /*IN*/ SECURITY_INFORMATION SecurityInformation, @@ -4511,6 +4940,16 @@ ZwQuerySecurityObject ( NTSYSAPI NTSTATUS NTAPI +NtQuerySystemInformation ( + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*OUT*/ PVOID SystemInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ReturnLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQuerySystemInformation ( /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, /*OUT*/ PVOID SystemInformation, @@ -4521,6 +4960,17 @@ ZwQuerySystemInformation ( NTSYSAPI NTSTATUS NTAPI +NtQueryVolumeInformationFile ( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FsInformation, + /*IN*/ ULONG Length, + /*IN*/ FS_INFORMATION_CLASS FsInformationClass +); + +NTSYSAPI +NTSTATUS +NTAPI ZwQueryVolumeInformationFile ( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -4532,6 +4982,15 @@ ZwQueryVolumeInformationFile ( NTSYSAPI NTSTATUS NTAPI +NtReplaceKey ( + /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, + /*IN*/ HANDLE KeyHandle, + /*IN*/ POBJECT_ATTRIBUTES OldFileObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwReplaceKey ( /*IN*/ POBJECT_ATTRIBUTES NewFileObjectAttributes, /*IN*/ HANDLE KeyHandle, @@ -4541,6 +5000,14 @@ ZwReplaceKey ( NTSYSAPI NTSTATUS NTAPI +NtResetEvent ( + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwResetEvent ( /*IN*/ HANDLE EventHandle, /*OUT*/ PULONG PreviousState /*OPTIONAL*/ @@ -4551,6 +5018,15 @@ ZwResetEvent ( NTSYSAPI NTSTATUS NTAPI +NtRestoreKey ( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle, + /*IN*/ ULONG Flags +); + +NTSYSAPI +NTSTATUS +NTAPI ZwRestoreKey ( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE FileHandle, @@ -4562,6 +5038,14 @@ ZwRestoreKey ( NTSYSAPI NTSTATUS NTAPI +NtSaveKey ( + /*IN*/ HANDLE KeyHandle, + /*IN*/ HANDLE FileHandle +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSaveKey ( /*IN*/ HANDLE KeyHandle, /*IN*/ HANDLE FileHandle @@ -4570,6 +5054,14 @@ ZwSaveKey ( NTSYSAPI NTSTATUS NTAPI +NtSetDefaultLocale ( + /*IN*/ BOOLEAN ThreadOrSystem, + /*IN*/ LCID Locale +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetDefaultLocale ( /*IN*/ BOOLEAN ThreadOrSystem, /*IN*/ LCID Locale @@ -4580,6 +5072,13 @@ ZwSetDefaultLocale ( NTSYSAPI NTSTATUS NTAPI +NtSetDefaultUILanguage ( + /*IN*/ LANGID LanguageId +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetDefaultUILanguage ( /*IN*/ LANGID LanguageId ); @@ -4587,6 +5086,16 @@ ZwSetDefaultUILanguage ( NTSYSAPI NTSTATUS NTAPI +NtSetEaFile ( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID Buffer, + /*IN*/ ULONG Length +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetEaFile ( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -4599,6 +5108,14 @@ ZwSetEaFile ( NTSYSAPI NTSTATUS NTAPI +NtSetEvent ( + /*IN*/ HANDLE EventHandle, + /*OUT*/ PULONG PreviousState /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetEvent ( /*IN*/ HANDLE EventHandle, /*OUT*/ PULONG PreviousState /*OPTIONAL*/ @@ -4607,6 +5124,16 @@ ZwSetEvent ( NTSYSAPI NTSTATUS NTAPI +NtSetInformationObject ( + /*IN*/ HANDLE ObjectHandle, + /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, + /*IN*/ PVOID ObjectInformation, + /*IN*/ ULONG ObjectInformationLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetInformationObject ( /*IN*/ HANDLE ObjectHandle, /*IN*/ OBJECT_INFORMATION_CLASS ObjectInformationClass, @@ -4617,6 +5144,16 @@ ZwSetInformationObject ( NTSYSAPI NTSTATUS NTAPI +NtSetInformationProcess ( + /*IN*/ HANDLE ProcessHandle, + /*IN*/ PROCESSINFOCLASS ProcessInformationClass, + /*IN*/ PVOID ProcessInformation, + /*IN*/ ULONG ProcessInformationLength +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetInformationProcess ( /*IN*/ HANDLE ProcessHandle, /*IN*/ PROCESSINFOCLASS ProcessInformationClass, @@ -4629,6 +5166,15 @@ ZwSetInformationProcess ( NTSYSAPI NTSTATUS NTAPI +NtSetSecurityObject ( + /*IN*/ HANDLE Handle, + /*IN*/ SECURITY_INFORMATION SecurityInformation, + /*IN*/ PSECURITY_DESCRIPTOR SecurityDescriptor +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetSecurityObject ( /*IN*/ HANDLE Handle, /*IN*/ SECURITY_INFORMATION SecurityInformation, @@ -4640,6 +5186,15 @@ ZwSetSecurityObject ( NTSYSAPI NTSTATUS NTAPI +NtSetSystemInformation ( + /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, + /*IN*/ PVOID SystemInformation, + /*IN*/ ULONG Length +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetSystemInformation ( /*IN*/ SYSTEM_INFORMATION_CLASS SystemInformationClass, /*IN*/ PVOID SystemInformation, @@ -4649,6 +5204,14 @@ ZwSetSystemInformation ( NTSYSAPI NTSTATUS NTAPI +NtSetSystemTime ( + /*IN*/ PLARGE_INTEGER NewTime, + /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetSystemTime ( /*IN*/ PLARGE_INTEGER NewTime, /*OUT*/ PLARGE_INTEGER OldTime /*OPTIONAL*/ @@ -4659,6 +5222,17 @@ ZwSetSystemTime ( NTSYSAPI NTSTATUS NTAPI +NtSetVolumeInformationFile ( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID FsInformation, + /*IN*/ ULONG Length, + /*IN*/ FS_INFORMATION_CLASS FsInformationClass +); + +NTSYSAPI +NTSTATUS +NTAPI ZwSetVolumeInformationFile ( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -4672,6 +5246,14 @@ ZwSetVolumeInformationFile ( NTSYSAPI NTSTATUS NTAPI +NtTerminateProcess ( + /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, + /*IN*/ NTSTATUS ExitStatus +); + +NTSYSAPI +NTSTATUS +NTAPI ZwTerminateProcess ( /*IN*/ HANDLE ProcessHandle /*OPTIONAL*/, /*IN*/ NTSTATUS ExitStatus @@ -4680,6 +5262,14 @@ ZwTerminateProcess ( NTSYSAPI NTSTATUS NTAPI +NtUnloadDriver ( + /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>" */ + /*IN*/ PUNICODE_STRING RegistryPath +); + +NTSYSAPI +NTSTATUS +NTAPI ZwUnloadDriver ( /* "\\Registry\\Machine\\System\\CurrentControlSet\\Services\\<DriverName>" */ /*IN*/ PUNICODE_STRING RegistryPath @@ -4688,6 +5278,13 @@ ZwUnloadDriver ( NTSYSAPI NTSTATUS NTAPI +NtUnloadKey ( + /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes +); + +NTSYSAPI +NTSTATUS +NTAPI ZwUnloadKey ( /*IN*/ POBJECT_ATTRIBUTES KeyObjectAttributes ); @@ -4695,6 +5292,15 @@ ZwUnloadKey ( NTSYSAPI NTSTATUS NTAPI +NtWaitForSingleObject ( + /*IN*/ HANDLE Handle, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwWaitForSingleObject ( /*IN*/ HANDLE Handle, /*IN*/ BOOLEAN Alertable, @@ -4704,6 +5310,17 @@ ZwWaitForSingleObject ( NTSYSAPI NTSTATUS NTAPI +NtWaitForMultipleObjects ( + /*IN*/ ULONG HandleCount, + /*IN*/ PHANDLE Handles, + /*IN*/ WAIT_TYPE WaitType, + /*IN*/ BOOLEAN Alertable, + /*IN*/ PLARGE_INTEGER Timeout /*OPTIONAL*/ +); + +NTSYSAPI +NTSTATUS +NTAPI ZwWaitForMultipleObjects ( /*IN*/ ULONG HandleCount, /*IN*/ PHANDLE Handles, @@ -4715,6 +5332,13 @@ ZwWaitForMultipleObjects ( NTSYSAPI NTSTATUS NTAPI +NtYieldExecution ( + VOID +); + +NTSYSAPI +NTSTATUS +NTAPI ZwYieldExecution ( VOID ); diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h index 964aeef..4b8f782 100644 --- a/winsup/w32api/include/ddk/winddk.h +++ b/winsup/w32api/include/ddk/winddk.h @@ -8576,6 +8576,13 @@ NtQueryInformationProcess( NTOSAPI NTSTATUS DDKAPI +NtCancelTimer( + /*IN*/ HANDLE TimerHandle, + /*OUT*/ PBOOLEAN CurrentState /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +DDKAPI ZwCancelTimer( /*IN*/ HANDLE TimerHandle, /*OUT*/ PBOOLEAN CurrentState /*OPTIONAL*/); @@ -8595,6 +8602,14 @@ ZwClose( NTOSAPI NTSTATUS DDKAPI +NtCreateDirectoryObject( + /*OUT*/ PHANDLE DirectoryHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +DDKAPI ZwCreateDirectoryObject( /*OUT*/ PHANDLE DirectoryHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8623,6 +8638,22 @@ ZwCreateEvent( NTOSAPI NTSTATUS DDKAPI +NtCreateFile( + /*OUT*/ PHANDLE FileHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PLARGE_INTEGER AllocationSize /*OPTIONAL*/, + /*IN*/ ULONG FileAttributes, + /*IN*/ ULONG ShareAccess, + /*IN*/ ULONG CreateDisposition, + /*IN*/ ULONG CreateOptions, + /*IN*/ PVOID EaBuffer /*OPTIONAL*/, + /*IN*/ ULONG EaLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwCreateFile( /*OUT*/ PHANDLE FileHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8639,6 +8670,18 @@ ZwCreateFile( NTOSAPI NTSTATUS DDKAPI +NtCreateKey( + /*OUT*/ PHANDLE KeyHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes, + /*IN*/ ULONG TitleIndex, + /*IN*/ PUNICODE_STRING Class /*OPTIONAL*/, + /*IN*/ ULONG CreateOptions, + /*OUT*/ PULONG Disposition /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +DDKAPI ZwCreateKey( /*OUT*/ PHANDLE KeyHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8651,6 +8694,15 @@ ZwCreateKey( NTOSAPI NTSTATUS DDKAPI +NtCreateTimer( + /*OUT*/ PHANDLE TimerHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes /*OPTIONAL*/, + /*IN*/ TIMER_TYPE TimerType); + +NTOSAPI +NTSTATUS +DDKAPI ZwCreateTimer( /*OUT*/ PHANDLE TimerHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8660,12 +8712,25 @@ ZwCreateTimer( NTOSAPI NTSTATUS DDKAPI +NtDeleteKey( + /*IN*/ HANDLE KeyHandle); + +NTOSAPI +NTSTATUS +DDKAPI ZwDeleteKey( /*IN*/ HANDLE KeyHandle); NTOSAPI NTSTATUS DDKAPI +NtDeleteValueKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName); + +NTOSAPI +NTSTATUS +DDKAPI ZwDeleteValueKey( /*IN*/ HANDLE KeyHandle, /*IN*/ PUNICODE_STRING ValueName); @@ -8703,6 +8768,17 @@ ZwDeviceIoControlFile( NTOSAPI NTSTATUS DDKAPI +NtEnumerateKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Index, + /*IN*/ KEY_INFORMATION_CLASS KeyInformationClass, + /*OUT*/ PVOID KeyInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwEnumerateKey( /*IN*/ HANDLE KeyHandle, /*IN*/ ULONG Index, @@ -8714,6 +8790,17 @@ ZwEnumerateKey( NTOSAPI NTSTATUS DDKAPI +NtEnumerateValueKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ ULONG Index, + /*IN*/ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, + /*OUT*/ PVOID KeyValueInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwEnumerateValueKey( /*IN*/ HANDLE KeyHandle, /*IN*/ ULONG Index, @@ -8725,12 +8812,24 @@ ZwEnumerateValueKey( NTOSAPI NTSTATUS DDKAPI +NtFlushKey( + /*IN*/ HANDLE KeyHandle); + +NTOSAPI +NTSTATUS +DDKAPI ZwFlushKey( /*IN*/ HANDLE KeyHandle); NTOSAPI NTSTATUS DDKAPI +NtMakeTemporaryObject( + /*IN*/ HANDLE Handle); + +NTOSAPI +NTSTATUS +DDKAPI ZwMakeTemporaryObject( /*IN*/ HANDLE Handle); @@ -8789,6 +8888,14 @@ ZwOpenFile( NTOSAPI NTSTATUS DDKAPI +NtOpenKey( + /*OUT*/ PHANDLE KeyHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +DDKAPI ZwOpenKey( /*OUT*/ PHANDLE KeyHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8797,6 +8904,14 @@ ZwOpenKey( NTOSAPI NTSTATUS DDKAPI +NtOpenSection( + /*OUT*/ PHANDLE SectionHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +DDKAPI ZwOpenSection( /*OUT*/ PHANDLE SectionHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8805,6 +8920,14 @@ ZwOpenSection( NTOSAPI NTSTATUS DDKAPI +NtOpenSymbolicLinkObject( + /*OUT*/ PHANDLE LinkHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +DDKAPI ZwOpenSymbolicLinkObject( /*OUT*/ PHANDLE LinkHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8813,6 +8936,14 @@ ZwOpenSymbolicLinkObject( NTOSAPI NTSTATUS DDKAPI +NtOpenTimer( + /*OUT*/ PHANDLE TimerHandle, + /*IN*/ ACCESS_MASK DesiredAccess, + /*IN*/ POBJECT_ATTRIBUTES ObjectAttributes); + +NTOSAPI +NTSTATUS +DDKAPI ZwOpenTimer( /*OUT*/ PHANDLE TimerHandle, /*IN*/ ACCESS_MASK DesiredAccess, @@ -8821,6 +8952,16 @@ ZwOpenTimer( NTOSAPI NTSTATUS DDKAPI +NtQueryInformationFile( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*OUT*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass); + +NTOSAPI +NTSTATUS +DDKAPI ZwQueryInformationFile( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -8831,6 +8972,16 @@ ZwQueryInformationFile( NTOSAPI NTSTATUS DDKAPI +NtQueryKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ KEY_INFORMATION_CLASS KeyInformationClass, + /*OUT*/ PVOID KeyInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwQueryKey( /*IN*/ HANDLE KeyHandle, /*IN*/ KEY_INFORMATION_CLASS KeyInformationClass, @@ -8841,6 +8992,14 @@ ZwQueryKey( NTOSAPI NTSTATUS DDKAPI +NtQuerySymbolicLinkObject( + /*IN*/ HANDLE LinkHandle, + /*IN OUT*/ PUNICODE_STRING LinkTarget, + /*OUT*/ PULONG ReturnedLength /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +DDKAPI ZwQuerySymbolicLinkObject( /*IN*/ HANDLE LinkHandle, /*IN OUT*/ PUNICODE_STRING LinkTarget, @@ -8849,6 +9008,17 @@ ZwQuerySymbolicLinkObject( NTOSAPI NTSTATUS DDKAPI +NtQueryValueKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName, + /*IN*/ KEY_VALUE_INFORMATION_CLASS KeyValueInformationClass, + /*OUT*/ PVOID KeyValueInformation, + /*IN*/ ULONG Length, + /*OUT*/ PULONG ResultLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwQueryValueKey( /*IN*/ HANDLE KeyHandle, /*IN*/ PUNICODE_STRING ValueName, @@ -8902,6 +9072,16 @@ ZwSetEvent( NTOSAPI NTSTATUS DDKAPI +NtSetInformationFile( + /*IN*/ HANDLE FileHandle, + /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, + /*IN*/ PVOID FileInformation, + /*IN*/ ULONG Length, + /*IN*/ FILE_INFORMATION_CLASS FileInformationClass); + +NTOSAPI +NTSTATUS +DDKAPI ZwSetInformationFile( /*IN*/ HANDLE FileHandle, /*OUT*/ PIO_STATUS_BLOCK IoStatusBlock, @@ -8912,6 +9092,15 @@ ZwSetInformationFile( NTOSAPI NTSTATUS DDKAPI +NtSetInformationThread( + /*IN*/ HANDLE ThreadHandle, + /*IN*/ THREADINFOCLASS ThreadInformationClass, + /*IN*/ PVOID ThreadInformation, + /*IN*/ ULONG ThreadInformationLength); + +NTOSAPI +NTSTATUS +DDKAPI ZwSetInformationThread( /*IN*/ HANDLE ThreadHandle, /*IN*/ THREADINFOCLASS ThreadInformationClass, @@ -8921,6 +9110,18 @@ ZwSetInformationThread( NTOSAPI NTSTATUS DDKAPI +NtSetTimer( + /*IN*/ HANDLE TimerHandle, + /*IN*/ PLARGE_INTEGER DueTime, + /*IN*/ PTIMER_APC_ROUTINE TimerApcRoutine /*OPTIONAL*/, + /*IN*/ PVOID TimerContext /*OPTIONAL*/, + /*IN*/ BOOLEAN WakeTimer, + /*IN*/ LONG Period /*OPTIONAL*/, + /*OUT*/ PBOOLEAN PreviousState /*OPTIONAL*/); + +NTOSAPI +NTSTATUS +DDKAPI ZwSetTimer( /*IN*/ HANDLE TimerHandle, /*IN*/ PLARGE_INTEGER DueTime, @@ -8933,6 +9134,17 @@ ZwSetTimer( NTOSAPI NTSTATUS DDKAPI +NtSetValueKey( + /*IN*/ HANDLE KeyHandle, + /*IN*/ PUNICODE_STRING ValueName, + /*IN*/ ULONG TitleIndex /*OPTIONAL*/, + /*IN*/ ULONG Type, + /*IN*/ PVOID Data, + /*IN*/ ULONG DataSize); + +NTOSAPI +NTSTATUS +DDKAPI ZwSetValueKey( /*IN*/ HANDLE KeyHandle, /*IN*/ PUNICODE_STRING ValueName, diff --git a/winsup/w32api/lib/ntdll.def b/winsup/w32api/lib/ntdll.def index d87cf39..29b94c3 100644 --- a/winsup/w32api/lib/ntdll.def +++ b/winsup/w32api/lib/ntdll.def @@ -170,6 +170,7 @@ NtOpenSymbolicLinkObject@12 NtOpenThread@16 NtOpenThreadToken@16 NtOpenTimer@12 +NtPlugPlayControl@12 NtPowerInformation@20 NtPrivilegeCheck@12 NtPrivilegedServiceAuditAlarm@20 @@ -191,6 +192,7 @@ NtQueryInformationPort@20 NtQueryInformationProcess@20 NtQueryInformationThread@20 NtQueryInformationToken@20 +NtQueryInstallUILanguage@4 NtQueryIntervalProfile@8 NtQueryIoCompletion@20 NtQueryKey@20 @@ -792,6 +794,7 @@ ZwOpenSymbolicLinkObject@12 ZwOpenThread@16 ZwOpenThreadToken@16 ZwOpenTimer@12 +ZwPlugPlayControl@12 ZwPowerInformation@20 ZwPrivilegeCheck@12 ZwPrivilegedServiceAuditAlarm@20 @@ -813,6 +816,7 @@ ZwQueryInformationPort@20 ZwQueryInformationProcess@20 ZwQueryInformationThread@20 ZwQueryInformationToken@20 +ZwQueryInstallUILanguage@4 ZwQueryIntervalProfile@8 ZwQueryIoCompletion@20 ZwQueryKey@20 |