https://git.reactos.org/?p=reactos.git;a=commitdiff;h=249f2388bd7ce08657811…
commit 249f2388bd7ce086578119b50c988ba752169fc1
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Sat May 1 21:11:34 2021 +0200
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat May 1 21:11:34 2021 +0200
[REACTOS] Fix parameter types on some exports (#3217)
Fix some wrong parameter types on some exports in NTDLL, KERNEL32, WTSAPI32, and
NTOSKRNL.
---
dll/ntdll/def/ntdll.spec | 38 +++++++++++++++++++-------------------
dll/win32/kernel32/kernel32.spec | 6 +++---
dll/win32/wtsapi32/wtsapi32.spec | 2 +-
ntoskrnl/ntoskrnl.spec | 8 ++++----
4 files changed, 27 insertions(+), 27 deletions(-)
diff --git a/dll/ntdll/def/ntdll.spec b/dll/ntdll/def/ntdll.spec
index dc9969102e2..63fd851dc8d 100644
--- a/dll/ntdll/def/ntdll.spec
+++ b/dll/ntdll/def/ntdll.spec
@@ -284,7 +284,7 @@
@ stdcall NtCreateProcessEx(ptr long ptr ptr long ptr ptr ptr long)
@ stdcall NtCreateProfile(ptr ptr ptr long long ptr long long long) ; CHECKME
@ stub -version=0x600+ NtCreateResourceManager
-@ stdcall NtCreateSection(ptr long ptr ptr long long long)
+@ stdcall NtCreateSection(ptr long ptr ptr long long ptr)
@ stdcall NtCreateSemaphore(ptr long ptr long long)
@ stdcall NtCreateSymbolicLinkObject(ptr long ptr ptr)
@ stdcall NtCreateThread(ptr long ptr ptr ptr ptr ptr long)
@@ -427,13 +427,13 @@
@ stdcall NtQueryFullAttributesFile(ptr ptr)
@ stdcall NtQueryInformationAtom(long long ptr long ptr)
@ stub -version=0x600+ NtQueryInformationEnlistment
-@ stdcall NtQueryInformationFile(long ptr ptr long long)
-@ stdcall NtQueryInformationJobObject(long long ptr long ptr)
+@ stdcall NtQueryInformationFile(ptr ptr ptr long long)
+@ stdcall NtQueryInformationJobObject(ptr long ptr long ptr)
@ stdcall NtQueryInformationPort(ptr long ptr long ptr)
-@ stdcall NtQueryInformationProcess(long long ptr long ptr)
+@ stdcall NtQueryInformationProcess(ptr long ptr long ptr)
@ stub -version=0x600+ NtQueryInformationResourceManager
-@ stdcall NtQueryInformationThread(long long ptr long ptr)
-@ stdcall NtQueryInformationToken(long long ptr long ptr)
+@ stdcall NtQueryInformationThread(ptr long ptr long ptr)
+@ stdcall NtQueryInformationToken(ptr long ptr long ptr)
@ stub -version=0x600+ NtQueryInformationTransaction
@ stub -version=0x600+ NtQueryInformationTransactionManager
@ stub -version=0x600+ NtQueryInformationWorkerFactory
@@ -524,14 +524,14 @@
@ stdcall NtSetHighWaitLowEventPair(ptr)
@ stdcall NtSetInformationDebugObject(ptr long ptr long ptr)
@ stub -version=0x600+ NtSetInformationEnlistment
-@ stdcall NtSetInformationFile(long long long long long)
-@ stdcall NtSetInformationJobObject(long long ptr long)
-@ stdcall NtSetInformationKey(long long ptr long)
-@ stdcall NtSetInformationObject(long long ptr long)
-@ stdcall NtSetInformationProcess(long long long long)
+@ stdcall NtSetInformationFile(ptr ptr ptr long long)
+@ stdcall NtSetInformationJobObject(ptr long ptr long)
+@ stdcall NtSetInformationKey(ptr long ptr long)
+@ stdcall NtSetInformationObject(ptr long ptr long)
+@ stdcall NtSetInformationProcess(ptr long ptr long)
@ stub -version=0x600+ NtSetInformationResourceManager
-@ stdcall NtSetInformationThread(long long ptr long)
-@ stdcall NtSetInformationToken(long long ptr long)
+@ stdcall NtSetInformationThread(ptr long ptr long)
+@ stdcall NtSetInformationToken(ptr long ptr long)
@ stub -version=0x600+ NtSetInformationTransaction
@ stub -version=0x600+ NtSetInformationTransactionManager
@ stub -version=0x600+ NtSetInformationWorkerFactory
@@ -562,9 +562,9 @@
@ stdcall NtSuspendProcess(ptr)
@ stdcall NtSuspendThread(long ptr)
@ stdcall NtSystemDebugControl(long ptr long ptr long ptr)
-@ stdcall NtTerminateJobObject(long long)
-@ stdcall NtTerminateProcess(long long)
-@ stdcall NtTerminateThread(long long)
+@ stdcall NtTerminateJobObject(ptr long)
+@ stdcall NtTerminateProcess(ptr long)
+@ stdcall NtTerminateThread(ptr long)
@ stdcall NtTestAlert()
@ stub -version=0x600+ NtThawRegistry
@ stub -version=0x600+ NtThawTransactions
@@ -1720,9 +1720,9 @@
@ stdcall ZwSuspendProcess(ptr)
@ stdcall ZwSuspendThread(long ptr)
@ stdcall ZwSystemDebugControl(long ptr long ptr long ptr)
-@ stdcall ZwTerminateJobObject(long long)
-@ stdcall ZwTerminateProcess(long long)
-@ stdcall ZwTerminateThread(long long)
+@ stdcall ZwTerminateJobObject(ptr long)
+@ stdcall ZwTerminateProcess(ptr long)
+@ stdcall ZwTerminateThread(ptr long)
@ stdcall ZwTestAlert()
@ stub -version=0x600+ ZwThawRegistry
@ stub -version=0x600+ ZwThawTransactions
diff --git a/dll/win32/kernel32/kernel32.spec b/dll/win32/kernel32/kernel32.spec
index 765d5f450bb..1b8dd416be9 100644
--- a/dll/win32/kernel32/kernel32.spec
+++ b/dll/win32/kernel32/kernel32.spec
@@ -1109,9 +1109,9 @@
@ stdcall SwitchToThread()
@ stdcall SystemTimeToFileTime(ptr ptr)
@ stdcall SystemTimeToTzSpecificLocalTime (ptr ptr ptr)
-@ stdcall TerminateJobObject(long long)
-@ stdcall TerminateProcess(long long)
-@ stdcall TerminateThread(long long)
+@ stdcall TerminateJobObject(ptr long)
+@ stdcall TerminateProcess(ptr long)
+@ stdcall TerminateThread(ptr long)
@ stdcall TermsrvAppInstallMode()
@ stdcall Thread32First(long ptr)
@ stdcall Thread32Next(long ptr)
diff --git a/dll/win32/wtsapi32/wtsapi32.spec b/dll/win32/wtsapi32/wtsapi32.spec
index 37838d5e07a..fe44d07248b 100644
--- a/dll/win32/wtsapi32/wtsapi32.spec
+++ b/dll/win32/wtsapi32/wtsapi32.spec
@@ -38,7 +38,7 @@
@ stdcall WTSStartRemoteControlSessionA(ptr long long long)
@ stdcall WTSStartRemoteControlSessionW(ptr long long long)
@ stdcall WTSStopRemoteControlSession(long)
-@ stdcall WTSTerminateProcess(long long long)
+@ stdcall WTSTerminateProcess(ptr long long)
@ stdcall WTSUnRegisterSessionNotification(long)
@ stdcall WTSUnRegisterSessionNotificationEx(long long)
@ stdcall WTSVirtualChannelClose(long)
diff --git a/ntoskrnl/ntoskrnl.spec b/ntoskrnl/ntoskrnl.spec
index 96660a3fea1..8d2dc6f4b23 100644
--- a/ntoskrnl/ntoskrnl.spec
+++ b/ntoskrnl/ntoskrnl.spec
@@ -868,9 +868,9 @@
@ stdcall NtOpenThreadTokenEx(ptr long long long ptr)
@ stdcall NtQueryDirectoryFile(ptr ptr ptr ptr ptr ptr long long long ptr long)
@ stdcall NtQueryEaFile(ptr ptr ptr long long ptr long ptr long)
-@ stdcall NtQueryInformationAtom(ptr long ptr long ptr)
+@ stdcall NtQueryInformationAtom(long long ptr long ptr)
@ stdcall NtQueryInformationFile(ptr ptr ptr long long)
-@ stdcall NtQueryInformationProcess(ptr ptr ptr long ptr)
+@ stdcall NtQueryInformationProcess(ptr long ptr long ptr)
@ stdcall NtQueryInformationThread(ptr long ptr long ptr)
@ stdcall NtQueryInformationToken(ptr long ptr long ptr)
@ stdcall NtQueryQuotaInformationFile(ptr ptr ptr long long ptr long ptr long)
@@ -883,7 +883,7 @@
@ stdcall NtSetEaFile(ptr ptr ptr long)
@ stdcall NtSetEvent(ptr ptr)
@ stdcall NtSetInformationFile(ptr ptr ptr long long)
-@ stdcall NtSetInformationProcess(ptr ptr ptr long)
+@ stdcall NtSetInformationProcess(ptr long ptr long)
@ stdcall NtSetInformationThread(ptr long ptr long)
@ stdcall NtSetQuotaInformationFile(ptr ptr ptr long)
@ stdcall NtSetSecurityObject(ptr long ptr)
@@ -1249,7 +1249,7 @@
@ fastcall RtlPrefetchMemoryNonTemporal(ptr long)
@ stdcall RtlPrefixString(ptr ptr long)
@ stdcall RtlPrefixUnicodeString(ptr ptr long)
-@ stdcall RtlQueryAtomInAtomTable(ptr ptr ptr ptr ptr ptr)
+@ stdcall RtlQueryAtomInAtomTable(ptr long ptr ptr ptr ptr)
@ stdcall RtlQueryRegistryValues(long wstr ptr ptr ptr)
@ stdcall RtlQueryTimeZoneInformation(ptr)
@ stdcall RtlRaiseException(ptr)