From 2dae9ef970b84ddf47665c20950416cd6410a531 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 23 Oct 2006 21:28:17 +0000 Subject: [PATCH] - Fix/add some remaining prototypes. - Add all the Nt functions to sysfuncs.lst and fixup some entries which were out-of-order. Unless I skipped anything (might've skipped 1 or 2 APIs), we should now have the same system call table as Windows 2003 SP1 (useful for my testing of ntdll.dll inside Windows). svn path=/trunk/; revision=24638 --- reactos/include/ndk/iofuncs.h | 2 +- reactos/include/ndk/psfuncs.h | 8 +++++ reactos/ntoskrnl/ps/psmgr.c | 5 ++- reactos/tools/nci/sysfuncs.lst | 61 ++++++++++++++++++++++++++++++---- 4 files changed, 65 insertions(+), 11 deletions(-) diff --git a/reactos/include/ndk/iofuncs.h b/reactos/include/ndk/iofuncs.h index 20c7488da5f..e3a50f36f72 100644 --- a/reactos/include/ndk/iofuncs.h +++ b/reactos/include/ndk/iofuncs.h @@ -40,7 +40,7 @@ NTSYSCALLAPI NTSTATUS NTAPI NtAddDriverEntry( - IN PBOOT_ENTRY BootEntry, + IN PEFI_DRIVER_ENTRY BootEntry, IN ULONG Id ); diff --git a/reactos/include/ndk/psfuncs.h b/reactos/include/ndk/psfuncs.h index a9b3996c561..60104645473 100644 --- a/reactos/include/ndk/psfuncs.h +++ b/reactos/include/ndk/psfuncs.h @@ -123,6 +123,14 @@ NtAlertResumeThread( OUT PULONG SuspendCount ); +typedef ULONG APPHELPCACHESERVICECLASS; +NTSTATUS +NTAPI +NtApphelpCacheControl( + IN APPHELPCACHESERVICECLASS Service, + IN PVOID ServiceData +); + NTSYSCALLAPI NTSTATUS NTAPI diff --git a/reactos/ntoskrnl/ps/psmgr.c b/reactos/ntoskrnl/ps/psmgr.c index bed8efd9b5a..a05c8059895 100644 --- a/reactos/ntoskrnl/ps/psmgr.c +++ b/reactos/ntoskrnl/ps/psmgr.c @@ -530,11 +530,10 @@ PsGetVersion(IN PULONG MajorVersion OPTIONAL, return (NtBuildNumber >> 28) == 0xC; } -typedef ULONG APPHELPCACHESERVICECLASS; NTSTATUS NTAPI -NtApphelpCacheControl(APPHELPCACHESERVICECLASS Service, - PVOID ServiceData) +NtApphelpCacheControl(IN APPHELPCACHESERVICECLASS Service, + IN PVOID ServiceData) { UNIMPLEMENTED; return STATUS_NOT_IMPLEMENTED; diff --git a/reactos/tools/nci/sysfuncs.lst b/reactos/tools/nci/sysfuncs.lst index 6c8eed4cd82..579545d91de 100644 --- a/reactos/tools/nci/sysfuncs.lst +++ b/reactos/tools/nci/sysfuncs.lst @@ -1,15 +1,24 @@ NtAcceptConnectPort 6 NtAccessCheck 8 NtAccessCheckAndAuditAlarm 11 +NtAccessCheckByType 11 +NtAccessCheckByTypeAndAuditAlarm 16 +NtAccessCheckByTypeResultList 11 +NtAccessCheckByTypeResultListAndAuditAlarm 16 +NtAccessCheckByTypeResultListAndAuditAlarmByHandle 17 NtAddAtom 3 NtAddBootEntry 2 +NtAddDriverEntry 2 NtAdjustGroupsToken 6 NtAdjustPrivilegesToken 6 NtAlertResumeThread 2 NtAlertThread 1 NtAllocateLocallyUniqueId 1 +NtAllocateUserPhysicalPages 3 NtAllocateUuids 4 NtAllocateVirtualMemory 6 +NtApphelpCacheControl 2 +NtAreMappedFilesTheSame 2 NtAssignProcessToJobObject 2 NtCallbackReturn 3 NtCancelIoFile 2 @@ -17,8 +26,10 @@ NtCancelTimer 2 NtClearEvent 1 NtClose 1 NtCloseObjectAuditAlarm 3 +NtCompactKeys 2 NtCompareTokens 3 NtCompleteConnectPort 1 +NtCompressKey 1 NtConnectPort 8 NtContinue 2 NtCreateDebugObject 4 @@ -28,6 +39,7 @@ NtCreateEventPair 3 NtCreateFile 11 NtCreateIoCompletion 4 NtCreateJobObject 3 +NtCreateJobSet 3 NtCreateKey 7 NtCreateMailslotFile 8 NtCreateMutant 4 @@ -35,6 +47,7 @@ NtCreateNamedPipeFile 14 NtCreatePagingFile 4 NtCreatePort 5 NtCreateProcess 8 +NtCreateProcessEx 9 NtCreateProfile 9 NtCreateSection 7 NtCreateSemaphore 5 @@ -47,7 +60,8 @@ NtDebugActiveProcess 2 NtDebugContinue 3 NtDelayExecution 2 NtDeleteAtom 1 -NtDeleteBootEntry 2 +NtDeleteBootEntry 1 +NtDeleteDriverEntry 1 NtDeleteFile 1 NtDeleteKey 1 NtDeleteObjectAuditAlarm 3 @@ -57,37 +71,51 @@ NtDisplayString 1 NtDuplicateObject 7 NtDuplicateToken 6 NtEnumerateBootEntries 2 +NtEnumerateDriverEntries 2 NtEnumerateKey 6 +NtEnumerateSystemEnvironmentValuesEx 3 NtEnumerateValueKey 6 NtExtendSection 2 +NtFilterToken 6 NtFindAtom 3 NtFlushBuffersFile 2 NtFlushInstructionCache 3 NtFlushKey 1 NtFlushVirtualMemory 4 NtFlushWriteBuffer 0 +NtFreeUserPhysicalPages 3 NtFreeVirtualMemory 4 NtFsControlFile 10 NtGetContextThread 2 +NtGetDevicePowerState 2 NtGetPlugPlayEvent 4 -NtGetTickCount 0 +NtGetWriteWatch 7 NtImpersonateAnonymousToken 1 NtImpersonateClientOfPort 2 NtImpersonateThread 3 NtInitializeRegistry 1 NtInitiatePowerAction 4 NtIsProcessInJob 2 +NtIsSystemResumeAutomatic 0 NtListenPort 2 NtLoadDriver 1 NtLoadKey 2 NtLoadKey2 3 +NtLoadKeyEx 3 NtLockFile 10 +NtLockProductActivationKeys 2 +NtLockRegistryKey 1 NtLockVirtualMemory 4 NtMakePermanentObject 1 NtMakeTemporaryObject 1 +NtMapUserPhysicalPages 3 +NtMapUserPhysicalPagesScatter 3 NtMapViewOfSection 10 +NtModifyBootEntry 1 +NtModifyDriverEntry 1 NtNotifyChangeDirectoryFile 9 NtNotifyChangeKey 10 +NtNotifyChangeMultipleKeys 12 NtOpenDirectoryObject 3 NtOpenEvent 3 NtOpenEventPair 3 @@ -114,7 +142,6 @@ NtPrivilegedServiceAuditAlarm 5 NtPrivilegeObjectAuditAlarm 6 NtProtectVirtualMemory 5 NtPulseEvent 2 -NtQueryInformationAtom 5 NtQueryAttributesFile 2 NtQueryBootEntryOrder 2 NtQueryBootOptions 2 @@ -123,9 +150,11 @@ NtQueryDefaultLocale 2 NtQueryDefaultUILanguage 1 NtQueryDirectoryFile 11 NtQueryDirectoryObject 7 +NtQueryDriverEntryOrder 2 NtQueryEaFile 9 NtQueryEvent 5 NtQueryFullAttributesFile 2 +NtQueryInformationAtom 5 NtQueryInformationFile 5 NtQueryInformationJobObject 5 NtQueryInformationPort 5 @@ -139,6 +168,8 @@ NtQueryKey 5 NtQueryMultipleValueKey 6 NtQueryMutant 5 NtQueryObject 5 +NtQueryOpenSubKeys 2 +NtQueryOpenSubKeysEx 2 NtQueryPerformanceCounter 2 NtQueryQuotaInformationFile 9 NtQuerySection 5 @@ -146,6 +177,7 @@ NtQuerySecurityObject 5 NtQuerySemaphore 5 NtQuerySymbolicLinkObject 3 NtQuerySystemEnvironmentValue 4 +NtQuerySystemEnvironmentValueEx 5 NtQuerySystemInformation 4 NtQuerySystemTime 1 NtQueryTimer 5 @@ -172,43 +204,50 @@ NtReplyWaitReceivePortEx 5 NtReplyWaitReplyPort 2 NtRequestPort 2 NtRequestWaitReplyPort 3 +NtRequestWakeupLatency 1 NtResetEvent 2 +NtResetWriteWatch 3 NtRestoreKey 3 NtResumeProcess 1 NtResumeThread 2 NtSaveKey 2 NtSaveKeyEx 3 +NtSaveMergedKeys 3 NtSecureConnectPort 9 NtSetBootEntryOrder 2 NtSetBootOptions 2 -NtSetDebugFilterState 3 -NtSetIoCompletion 5 NtSetContextThread 2 +NtSetDebugFilterState 3 NtSetDefaultHardErrorPort 1 NtSetDefaultLocale 2 NtSetDefaultUILanguage 1 +NtSetDriverEntryOrder 2 NtSetEaFile 4 NtSetEvent 2 +NtSetEventBoostPriority 1 NtSetHighEventPair 1 NtSetHighWaitLowEventPair 1 NtSetInformationDebugObject 5 NtSetInformationFile 5 -NtSetInformationKey 4 NtSetInformationJobObject 4 +NtSetInformationKey 4 NtSetInformationObject 4 NtSetInformationProcess 4 NtSetInformationThread 4 NtSetInformationToken 4 NtSetIntervalProfile 2 +NtSetIoCompletion 5 NtSetLdtEntries 6 NtSetLowEventPair 1 NtSetLowWaitHighEventPair 1 NtSetQuotaInformationFile 4 NtSetSecurityObject 3 NtSetSystemEnvironmentValue 2 +NtSetSystemEnvironmentValueEx 2 NtSetSystemInformation 3 NtSetSystemPowerState 3 NtSetSystemTime 2 +NtSetThreadExecutionState 2 NtSetTimer 7 NtSetTimerResolution 3 NtSetUuidSeed 1 @@ -229,6 +268,8 @@ NtTraceEvent 4 NtTranslateFilePath 3 NtUnloadDriver 1 NtUnloadKey 1 +NtUnloadKey2 2 +NtUnloadKeyEx 2 NtUnlockFile 5 NtUnlockVirtualMemory 4 NtUnmapViewOfSection 2 @@ -242,5 +283,11 @@ NtWriteFile 9 NtWriteFileGather 9 NtWriteRequestData 6 NtWriteVirtualMemory 5 -NtW32Call 5 NtYieldExecution 0 +NtCreateKeyedEvent 4 +NtOpenKeyedEvent 3 +NtReleaseKeyedEvent 4 +NtWaitForKeyedEvent 4 +NtQueryPortInformationProcess 0 +NtGetCurrentProcessorNumber 0 +NtWaitForMultipleObjects32 5