Author: ion
Date: Tue Oct 24 01:19:15 2006
New Revision: 24636
URL:
http://svn.reactos.org/svn/reactos?rev=24636&view=rev
Log:
- Add NtApphelpCacheControl, NtFilterToken (WARNING: PATENTED. TAKE CARE WHEN
IMPLEMENTING).
- Add all the recently added functions to their proper place in the NDK.
Modified:
trunk/reactos/include/ndk/cmfuncs.h
trunk/reactos/include/ndk/exfuncs.h
trunk/reactos/include/ndk/iofuncs.h
trunk/reactos/include/ndk/kefuncs.h
trunk/reactos/include/ndk/lpcfuncs.h
trunk/reactos/include/ndk/mmfuncs.h
trunk/reactos/include/ndk/obfuncs.h
trunk/reactos/include/ndk/psfuncs.h
trunk/reactos/include/ndk/sefuncs.h
trunk/reactos/ntoskrnl/ps/psmgr.c
trunk/reactos/ntoskrnl/se/token.c
Modified: trunk/reactos/include/ndk/cmfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/cmfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/cmfuncs.h (original)
+++ trunk/reactos/include/ndk/cmfuncs.h Tue Oct 24 01:19:15 2006
@@ -27,6 +27,20 @@
//
// Native calls
//
+NTSTATUS
+NTAPI
+NtCompactKeys(
+ IN ULONG Count,
+ IN PHANDLE KeyArray
+);
+
+NTSTATUS
+NTAPI
+NtCompressKey(
+ IN HANDLE Key,
+ IN ULONG Mode
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -120,6 +134,31 @@
IN ULONG Flags
);
+NTSTATUS
+NTAPI
+NtLoadKeyEx(
+ IN POBJECT_ATTRIBUTES TargetKey,
+ IN POBJECT_ATTRIBUTES SourceFile,
+ IN ULONG Flags,
+ IN HANDLE TrustClassKey,
+ IN HANDLE Event,
+ IN ACCESS_MASK DesiredAccess,
+ OUT PHANDLE RootHandle
+);
+
+NTSTATUS
+NTAPI
+NtLockProductActivationKeys(
+ IN PULONG pPrivateVer,
+ IN PULONG pSafeMode
+);
+
+NTSTATUS
+NTAPI
+NtLockRegistryKey(
+ IN HANDLE KeyHandle
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -136,6 +175,23 @@
IN BOOLEAN WatchSubtree
);
+NTSTATUS
+NTAPI
+NtNotifyChangeMultipleKeys(
+ IN HANDLE MasterKeyHandle,
+ IN ULONG Count,
+ IN POBJECT_ATTRIBUTES SlaveObjects,
+ IN HANDLE Event,
+ IN PIO_APC_ROUTINE ApcRoutine OPTIONAL,
+ IN PVOID ApcContext OPTIONAL,
+ OUT PIO_STATUS_BLOCK IoStatusBlock,
+ IN ULONG CompletionFilter,
+ IN BOOLEAN WatchTree,
+ OUT PVOID Buffer,
+ IN ULONG Length,
+ IN BOOLEAN Asynchronous
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -177,6 +233,22 @@
OUT PULONG ReturnLength
);
+NTSTATUS
+NTAPI
+NtQueryOpenSubKeys(
+ IN POBJECT_ATTRIBUTES TargetKey,
+ IN ULONG HandleCount
+);
+
+NTSTATUS
+NTAPI
+NtQueryOpenSubKeysEx(
+ IN POBJECT_ATTRIBUTES TargetKey,
+ IN ULONG BufferLength,
+ IN PVOID Buffer,
+ IN PULONG RequiredSize
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -222,6 +294,15 @@
IN HANDLE KeyHandle,
IN HANDLE FileHandle,
IN ULONG Flags
+);
+
+
+NTSTATUS
+NTAPI
+NtSaveMergedKeys(
+ IN HANDLE HighPrecedenceKeyHandle,
+ IN HANDLE LowPrecedenceKeyHandle,
+ IN HANDLE FileHandle
);
NTSYSCALLAPI
@@ -251,6 +332,20 @@
NTAPI
NtUnloadKey(
IN POBJECT_ATTRIBUTES KeyObjectAttributes
+);
+
+NTSTATUS
+NTAPI
+NtUnloadKey2(
+ IN POBJECT_ATTRIBUTES TargetKey,
+ IN ULONG Flags
+);
+
+NTSTATUS
+NTAPI
+NtUnloadKeyEx(
+ IN POBJECT_ATTRIBUTES TargetKey,
+ IN HANDLE Event
);
#ifdef NTOS_MODE_USER
Modified: trunk/reactos/include/ndk/exfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/exfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/exfuncs.h (original)
+++ trunk/reactos/include/ndk/exfuncs.h Tue Oct 24 01:19:15 2006
@@ -142,6 +142,15 @@
IN POBJECT_ATTRIBUTES ObjectAttributes
);
+NTSTATUS
+NTAPI
+NtCreateKeyedEvent(
+ OUT PHANDLE KeyedEventHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN POBJECT_ATTRIBUTES ObjectAttributes,
+ IN ULONG Flags
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -185,6 +194,15 @@
NTAPI
NtDisplayString(
IN PUNICODE_STRING DisplayString
+);
+
+
+NTSTATUS
+NTAPI
+NtEnumerateSystemEnvironmentValuesEx(
+ IN ULONG InformationClass,
+ IN PVOID Buffer,
+ IN ULONG BufferLength
);
NTSYSCALLAPI
@@ -332,6 +350,13 @@
OUT PWSTR Value,
ULONG Length,
PULONG ReturnLength
+);
+
+NTSTATUS
+NTAPI
+NtQuerySystemEnvironmentValueEx(
+ IN PUNICODE_STRING VariableName,
+ IN LPGUID VendorGuid
);
NTSYSCALLAPI
@@ -473,6 +498,13 @@
NtSetSystemEnvironmentValue(
IN PUNICODE_STRING VariableName,
IN PUNICODE_STRING Value
+);
+
+NTSTATUS
+NTAPI
+NtSetSystemEnvironmentValueEx(
+ IN PUNICODE_STRING VariableName,
+ IN LPGUID VendorGuid
);
NTSYSCALLAPI
Modified: trunk/reactos/include/ndk/iofuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/iofuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/iofuncs.h (original)
+++ trunk/reactos/include/ndk/iofuncs.h Tue Oct 24 01:19:15 2006
@@ -32,6 +32,14 @@
NTSTATUS
NTAPI
NtAddBootEntry(
+ IN PBOOT_ENTRY BootEntry,
+ IN ULONG Id
+);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
+NtAddDriverEntry(
IN PBOOT_ENTRY BootEntry,
IN ULONG Id
);
@@ -105,6 +113,14 @@
IN PLARGE_INTEGER DefaultTimeOut
);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
+NtDeleteDriverEntry(
+ IN ULONG Id
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -146,6 +162,14 @@
NTSYSCALLAPI
NTSTATUS
NTAPI
+NtEnumerateDriverEntries(
+ IN PVOID Buffer,
+ IN PULONG BufferLength
+);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
NtFlushBuffersFile(
IN HANDLE FileHandle,
OUT PIO_STATUS_BLOCK IoStatusBlock
@@ -198,6 +222,20 @@
NTSYSCALLAPI
NTSTATUS
NTAPI
+NtModifyBootEntry(
+ IN PBOOT_ENTRY BootEntry
+);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
+NtModifyDriverEntry(
+ IN PEFI_DRIVER_ENTRY DriverEntry
+);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
NtNotifyChangeDirectoryFile(
IN HANDLE FileHandle,
IN HANDLE Event OPTIONAL,
@@ -237,6 +275,13 @@
NtQueryAttributesFile(
IN POBJECT_ATTRIBUTES ObjectAttributes,
OUT PFILE_BASIC_INFORMATION FileInformation
+);
+
+NTSTATUS
+NTAPI
+NtQueryDriverEntryOrder(
+ IN PULONG Ids,
+ IN PULONG Count
);
NTSYSCALLAPI
@@ -398,6 +443,13 @@
NtSetBootOptions(
IN PBOOT_OPTIONS BootOptions,
IN ULONG FieldsToChange
+);
+
+NTSTATUS
+NTAPI
+NtSetDriverEntryOrder(
+ IN PULONG Ids,
+ IN PULONG Count
);
NTSYSCALLAPI
Modified: trunk/reactos/include/ndk/kefuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/kefuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/kefuncs.h (original)
+++ trunk/reactos/include/ndk/kefuncs.h Tue Oct 24 01:19:15 2006
@@ -357,6 +357,12 @@
IN ULONG NumberOfBytesToFlush
);
+ULONG
+NTAPI
+NtGetCurrentProcessorNumber(
+ VOID
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
Modified: trunk/reactos/include/ndk/lpcfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/lpcfuncs.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/lpcfuncs.h (original)
+++ trunk/reactos/include/ndk/lpcfuncs.h Tue Oct 24 01:19:15 2006
@@ -107,6 +107,12 @@
PVOID PortInformation,
ULONG PortInformationLength,
PULONG ReturnLength
+);
+
+NTSTATUS
+NTAPI
+NtQueryPortInformationProcess(
+ VOID
);
NTSYSCALLAPI
Modified: trunk/reactos/include/ndk/mmfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/mmfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/mmfuncs.h (original)
+++ trunk/reactos/include/ndk/mmfuncs.h Tue Oct 24 01:19:15 2006
@@ -64,6 +64,14 @@
IN PVOID File2MappedAsFile
);
+NTSTATUS
+NTAPI
+NtAllocateUserPhysicalPages(
+ IN HANDLE ProcessHandle,
+ IN OUT PULONG NumberOfPages,
+ IN OUT PULONG UserPfnArray
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -117,6 +125,14 @@
OUT PULONG NumberOfBytesFlushed OPTIONAL
);
+NTSTATUS
+NTAPI
+NtFreeUserPhysicalPages(
+ IN HANDLE ProcessHandle,
+ IN OUT PULONG NumberOfPages,
+ IN OUT PULONG UserPfnArray
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
@@ -125,6 +141,19 @@
IN PVOID *BaseAddress,
IN PSIZE_T RegionSize,
IN ULONG FreeType
+);
+
+
+NTSTATUS
+NTAPI
+NtGetWriteWatch(
+ IN HANDLE ProcessHandle,
+ IN ULONG Flags,
+ IN PVOID BaseAddress,
+ IN ULONG RegionSize,
+ IN PVOID *UserAddressArray,
+ OUT PULONG EntriesInUserAddressArray,
+ OUT PULONG Granularity
);
NTSYSCALLAPI
@@ -135,6 +164,22 @@
PVOID BaseAddress,
ULONG NumberOfBytesToLock,
PULONG NumberOfBytesLocked
+);
+
+NTSTATUS
+NTAPI
+NtMapUserPhysicalPages(
+ IN PVOID *VirtualAddresses,
+ IN ULONG NumberOfPages,
+ IN OUT PULONG UserPfnArray
+);
+
+NTSTATUS
+NTAPI
+NtMapUserPhysicalPagesScatter(
+ IN PVOID *VirtualAddresses,
+ IN ULONG NumberOfPages,
+ IN OUT PULONG UserPfnArray
);
NTSYSCALLAPI
@@ -207,6 +252,14 @@
OUT PULONG NumberOfBytesRead
);
+NTSTATUS
+NTAPI
+NtResetWriteWatch(
+ IN HANDLE ProcessHandle,
+ IN PVOID BaseAddress,
+ IN ULONG RegionSize
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
Modified: trunk/reactos/include/ndk/obfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/obfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/obfuncs.h (original)
+++ trunk/reactos/include/ndk/obfuncs.h Tue Oct 24 01:19:15 2006
@@ -294,6 +294,16 @@
IN PLARGE_INTEGER Time
);
+NTSTATUS
+NTAPI
+NtWaitForMultipleObjects32(
+ IN ULONG ObjectCount,
+ IN PLONG Handles,
+ IN WAIT_TYPE WaitType,
+ IN BOOLEAN Alertable,
+ IN PLARGE_INTEGER TimeOut OPTIONAL
+);
+
NTSYSCALLAPI
NTSTATUS
NTAPI
Modified: trunk/reactos/include/ndk/psfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/psfuncs.h (original)
+++ trunk/reactos/include/ndk/psfuncs.h Tue Oct 24 01:19:15 2006
@@ -145,6 +145,14 @@
PHANDLE JobHandle,
ACCESS_MASK DesiredAccess,
POBJECT_ATTRIBUTES ObjectAttributes
+);
+
+NTSTATUS
+NTAPI
+NtCreateJobSet(
+ IN ULONG NumJob,
+ IN PJOB_SET_ARRAY UserJobSet,
+ IN ULONG Flags
);
NTSYSCALLAPI
@@ -159,6 +167,21 @@
IN HANDLE SectionHandle OPTIONAL,
IN HANDLE DebugPort OPTIONAL,
IN HANDLE ExceptionPort OPTIONAL
+);
+
+NTSYSCALLAPI
+NTSTATUS
+NTAPI
+NtCreateProcessEx(
+ OUT PHANDLE ProcessHandle,
+ IN ACCESS_MASK DesiredAccess,
+ IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL,
+ IN HANDLE ParentProcess,
+ IN ULONG Flags,
+ IN HANDLE SectionHandle OPTIONAL,
+ IN HANDLE DebugPort OPTIONAL,
+ IN HANDLE ExceptionPort OPTIONAL,
+ IN BOOLEAN InJob
);
NTSYSCALLAPI
Modified: trunk/reactos/include/ndk/sefuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/sefuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/sefuncs.h (original)
+++ trunk/reactos/include/ndk/sefuncs.h Tue Oct 24 01:19:15 2006
@@ -94,6 +94,38 @@
IN PGENERIC_MAPPING GenericMapping,
OUT PPRIVILEGE_SET PrivilegeSet,
OUT PULONG ReturnLength,
+ OUT PACCESS_MASK GrantedAccess,
+ OUT PNTSTATUS AccessStatus
+);
+
+NTSTATUS
+NTAPI
+NtAccessCheckByType(
+ IN PSECURITY_DESCRIPTOR SecurityDescriptor,
+ IN PSID PrincipalSelfSid,
+ IN PTOKEN ClientToken,
+ IN ACCESS_MASK DesiredAccess,
+ IN POBJECT_TYPE_LIST ObjectTypeList,
+ IN ULONG ObjectTypeLength,
+ IN PGENERIC_MAPPING GenericMapping,
+ IN PPRIVILEGE_SET PrivilegeSet,
+ IN ULONG PrivilegeSetLength,
+ OUT PACCESS_MASK GrantedAccess,
+ OUT PNTSTATUS AccessStatus
+);
+
+NTSTATUS
+NTAPI
+NtAccessCheckByTypeResultList(
+ IN PSECURITY_DESCRIPTOR SecurityDescriptor,
+ IN PSID PrincipalSelfSid,
+ IN PTOKEN ClientToken,
+ IN ACCESS_MASK DesiredAccess,
+ IN POBJECT_TYPE_LIST ObjectTypeList,
+ IN ULONG ObjectTypeLength,
+ IN PGENERIC_MAPPING GenericMapping,
+ IN PPRIVILEGE_SET PrivilegeSet,
+ IN ULONG PrivilegeSetLength,
OUT PACCESS_MASK GrantedAccess,
OUT PNTSTATUS AccessStatus
);
Modified: trunk/reactos/ntoskrnl/ps/psmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/psmgr.c?rev=24…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/psmgr.c (original)
+++ trunk/reactos/ntoskrnl/ps/psmgr.c Tue Oct 24 01:19:15 2006
@@ -530,4 +530,14 @@
return (NtBuildNumber >> 28) == 0xC;
}
+typedef ULONG APPHELPCACHESERVICECLASS;
+NTSTATUS
+NTAPI
+NtApphelpCacheControl(APPHELPCACHESERVICECLASS Service,
+ PVOID ServiceData)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
/* EOF */
Modified: trunk/reactos/ntoskrnl/se/token.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/token.c?rev=24…
==============================================================================
--- trunk/reactos/ntoskrnl/se/token.c (original)
+++ trunk/reactos/ntoskrnl/se/token.c Tue Oct 24 01:19:15 2006
@@ -2750,4 +2750,17 @@
return Status;
}
+NTSTATUS
+NTAPI
+NtFilterToken(IN HANDLE ExistingTokenHandle,
+ IN ULONG Flags,
+ IN PTOKEN_GROUPS SidsToDisable OPTIONAL,
+ IN PTOKEN_PRIVILEGES PrivilegesToDelete OPTIONAL,
+ IN PTOKEN_GROUPS RestrictedSids OPTIONAL,
+ OUT PHANDLE NewTokenHandle)
+{
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
+}
+
/* EOF */