crt: Add missing APIs in kernel32.def
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/lib-common/kernel32.def.in b/mingw-w64-crt/lib-common/kernel32.def.in
index f64ca31..36bed39 100644
--- a/mingw-w64-crt/lib-common/kernel32.def.in
+++ b/mingw-w64-crt/lib-common/kernel32.def.in
@@ -6,6 +6,7 @@
AcquireSRWLockShared
ActivateActCtx
ActivateActCtxWorker
+ActivatePackageVirtualizationContext
AddAtomA
AddAtomW
AddConsoleAliasA
@@ -117,6 +118,12 @@
BuildCommDCBAndTimeoutsA
BuildCommDCBAndTimeoutsW
BuildCommDCBW
+BuildIoRingCancelRequest
+BuildIoRingFlushFile
+BuildIoRingReadFile
+BuildIoRingRegisterBuffers
+BuildIoRingRegisterFileHandles
+BuildIoRingWriteFile
CallNamedPipeA
CallNamedPipeW
CallbackMayRunLong
@@ -144,6 +151,7 @@
ClearCommError
CloseConsoleHandle
CloseHandle
+CloseIoRing
ClosePackageInfo
ClosePrivateNamespace
CloseProfileUserMapping
@@ -220,6 +228,7 @@
CreateHardLinkTransactedW
CreateHardLinkW
CreateIoCompletionPort
+CreateIoRing
CreateJobObjectA
CreateJobObjectW
CreateJobSet
@@ -233,6 +242,7 @@
CreateNamedPipeA
CreateNamedPipeW
CreateNlsSecurityDescriptor
+CreatePackageVirtualizationContext
CreatePipe
CreatePrivateNamespaceA
CreatePrivateNamespaceW
@@ -274,6 +284,7 @@
CtrlRoutine
DeactivateActCtx
DeactivateActCtxWorker
+DeactivatePackageVirtualizationContext
DebugActiveProcess
DebugActiveProcessStop
DebugBreak
@@ -317,6 +328,8 @@
DuplicateConsoleHandle
DuplicateEncryptionInfoFileExt
DuplicateHandle
+DuplicatePackageVirtualizationContext
+EnableProcessOptionalXStateFeatures
EnableThreadProfiling
EncodePointer
EncodeSystemPointer
@@ -555,6 +568,7 @@
GetCurrentPackageId
GetCurrentPackageInfo
GetCurrentPackagePath
+GetCurrentPackageVirtualizationContext
GetCurrentProcess
GetCurrentProcessId
GetCurrentProcessorNumber
@@ -631,6 +645,7 @@
GetGeoInfoW
GetGeoInfoEx
GetHandleInformation
+GetIoRingInfo
GetLargePageMinimum
GetLargestConsoleWindowSize
GetLastError
@@ -648,6 +663,7 @@
GetLongPathNameTransactedA
GetLongPathNameTransactedW
GetLongPathNameW
+GetMachineTypeAttributes
GetMailslotInfo
GetMaximumProcessorCount
GetMaximumProcessorGroupCount
@@ -679,6 +695,7 @@
GetNumaHighestNodeNumber
GetNumaNodeNumberFromHandle
GetNumaNodeProcessorMask
+GetNumaNodeProcessorMask2
GetNumaNodeProcessorMaskEx
GetNumaProcessorNode
GetNumaProcessorNodeEx
@@ -715,6 +732,7 @@
GetPrivateProfileStructW
GetProcAddress
GetProcessAffinityMask
+GetProcessDefaultCpuSetMasks
GetProcessDefaultCpuSets
GetProcessDEPPolicy
GetProcessGroupAffinity
@@ -733,6 +751,7 @@
GetProcessVersion
GetProcessWorkingSetSize
GetProcessWorkingSetSizeEx
+GetProcessesInVirtualizationContext
GetProcessorSystemCycleTime
GetProductInfo
GetProfileIntA
@@ -790,6 +809,7 @@
GetTempPath2W
GetThreadContext
GetThreadDescription
+GetThreadEnabledXStateFeatures
GetThreadErrorMode
GetThreadGroupAffinity
GetThreadIOPendingFlag
@@ -800,6 +820,7 @@
GetThreadPreferredUILanguages
GetThreadPriority
GetThreadPriorityBoost
+GetThreadSelectedCpuSetMasks
GetThreadSelectedCpuSets
GetThreadSelectorEntry
GetThreadTimes
@@ -927,6 +948,7 @@
IsDBCSLeadByteEx
IsDebuggerPresent
IsEnclaveTypeSupported
+IsIoRingOpSupported
IsNLSDefinedString
IsNativeVhdBoot
IsNormalizedString
@@ -937,6 +959,7 @@
IsThreadAFiber
IsThreadpoolTimerSet
IsTimeZoneRedirectionEnabled
+IsUserCetAvailableInEnvironment
IsValidCalDateTime
IsValidCodePage
IsValidLanguageGroup
@@ -1098,6 +1121,7 @@
PeekConsoleInputA
PeekConsoleInputW
PeekNamedPipe
+PopIoRingCompletion
PostQueuedCompletionStatus
PowerClearRequest
PowerCreateRequest
@@ -1139,6 +1163,7 @@
QueryIdleProcessorCycleTimeEx
QueryInformationJobObject
QueryIoRateControlInformationJobObject
+QueryIoRingCapabilities
QueryMemoryResourceNotification
QueryPerformanceCounter
QueryPerformanceFrequency
@@ -1151,6 +1176,7 @@
F_X64(QueryUmsThreadInformation)
QueryUnbiasedInterruptTime
QueueUserAPC
+QueueUserAPC2
QueueUserWorkItem
QuirkGetData2Worker
QuirkGetDataWorker
@@ -1253,6 +1279,7 @@
ReleaseActCtxWorker
ReleaseMutex
ReleaseMutexWhenCallbackReturns
+ReleasePackageVirtualizationContext
ReleaseSRWLockExclusive
ReleaseSRWLockShared
ReleaseSemaphore
@@ -1289,6 +1316,7 @@
RtlDeleteFunctionTable
RtlFillMemory
RtlInstallFunctionTableCallback
+RtlIsEcCode
RtlLookupFunctionEntry
RtlMoveMemory
RtlPcToFileHeader
@@ -1297,6 +1325,7 @@
RtlUnwind
RtlUnwindEx
RtlVirtualUnwind
+RtlVirtualUnwind2
RtlZeroMemory
ScrollConsoleScreenBufferA
ScrollConsoleScreenBufferW
@@ -1392,6 +1421,7 @@
SetHandleInformation
SetInformationJobObject
SetIoRateControlInformationJobObject
+SetIoRingCompletionEvent
SetLastConsoleEventActive
SetLastError
SetLocalPrimaryComputerNameA
@@ -1407,7 +1437,10 @@
SetProcessAffinityMask
SetProcessAffinityUpdateMode
SetProcessDEPPolicy
+SetProcessDefaultCpuSetMasks
SetProcessDefaultCpuSets
+SetProcessDynamicEHContinuationTargets
+SetProcessDynamicEnforcedCetCompatibleRanges
SetProcessInformation
SetProcessMitigationPolicy
SetProcessPreferredUILanguages
@@ -1439,6 +1472,7 @@
SetThreadPreferredUILanguages
SetThreadPriority
SetThreadPriorityBoost
+SetThreadSelectedCpuSetMasks
SetThreadSelectedCpuSets
SetThreadStackGuarantee
; MSDN says this is exported from ADVAPI32.DLL.
@@ -1477,6 +1511,7 @@
SortCloseHandle
SortGetHandle
StartThreadpoolIo
+SubmitIoRing
SubmitThreadpoolWork
SuspendThread
SwitchToFiber
diff --git a/mingw-w64-crt/lib32/kernel32.def b/mingw-w64-crt/lib32/kernel32.def
index 880db8e..6cc295a 100644
--- a/mingw-w64-crt/lib32/kernel32.def
+++ b/mingw-w64-crt/lib32/kernel32.def
@@ -11,6 +11,7 @@
AcquireSRWLockShared@4
ActivateActCtx@8
ActivateActCtxWorker@8
+ActivatePackageVirtualizationContext@8
AddAtomA@4
AddAtomW@4
AddConsoleAliasA@12
@@ -33,7 +34,7 @@
AllocateUserPhysicalPagesNuma@16
AppPolicyGetClrCompat@8
AppPolicyGetCreateFileAccess@8
-AAppPolicyGetLifecycleManagement@8
+AppPolicyGetLifecycleManagement@8
AppPolicyGetMediaFoundationCodecLoading@8
AppPolicyGetProcessTerminationMethod@8
AppPolicyGetShowDeveloperDiagnostic@8
@@ -117,6 +118,12 @@
BuildCommDCBAndTimeoutsA@12
BuildCommDCBAndTimeoutsW@12
BuildCommDCBW@8
+BuildIoRingCancelRequest@20
+BuildIoRingFlushFile@24
+BuildIoRingReadFile@44
+BuildIoRingRegisterBuffers@16
+BuildIoRingRegisterFileHandles@16
+BuildIoRingWriteFile@48
CallNamedPipeA@28
CallNamedPipeW@28
CallbackMayRunLong@4
@@ -143,6 +150,7 @@
ClearCommError@12
CloseConsoleHandle@4
CloseHandle@4
+CloseIoRing@4
ClosePackageInfo@4
ClosePrivateNamespace@8
CloseProfileUserMapping@0
@@ -219,6 +227,7 @@
CreateHardLinkTransactedW@16
CreateHardLinkW@12
CreateIoCompletionPort@16
+CreateIoRing@24
CreateJobObjectA@8
CreateJobObjectW@8
CreateJobSet@12
@@ -231,6 +240,7 @@
CreateMutexW@12
CreateNamedPipeA@32
CreateNamedPipeW@32
+CreatePackageVirtualizationContext@8
CreatePipe@16
CreatePrivateNamespaceA@12
CreatePrivateNamespaceW@12
@@ -272,6 +282,7 @@
CtrlRoutine@4
DeactivateActCtx@8
DeactivateActCtxWorker@8
+DeactivatePackageVirtualizationContext@4
DebugActiveProcess@4
DebugActiveProcessStop@4
DebugBreak@0
@@ -312,6 +323,8 @@
DuplicateConsoleHandle@16
DuplicateEncryptionInfoFileExt@20
DuplicateHandle@28
+DuplicatePackageVirtualizationContext@8
+EnableProcessOptionalXStateFeatures@8
EnableThreadProfiling@20
EncodePointer@4
EncodeSystemPointer@4
@@ -550,6 +563,7 @@
GetCurrentPackageId@8
GetCurrentPackageInfo@16
GetCurrentPackagePath@8
+GetCurrentPackageVirtualizationContext@0
GetCurrentProcess@0
GetCurrentProcessId@0
GetCurrentProcessorNumber@0
@@ -622,6 +636,7 @@
GetGeoInfoW@20
GetHandleContext@4
GetHandleInformation@8
+GetIoRingInfo@8
GetLargePageMinimum@0
GetLargestConsoleWindowSize@4
GetLastError@0
@@ -638,6 +653,7 @@
GetLongPathNameTransactedA@16
GetLongPathNameTransactedW@16
GetLongPathNameW@12
+GetMachineTypeAttributes@8
GetMailslotInfo@20
GetMaximumProcessorCount@4
GetMaximumProcessorGroupCount@0
@@ -666,6 +682,7 @@
GetNumaAvailableMemoryNodeEx@8
GetNumaHighestNodeNumber@4
GetNumaNodeNumberFromHandle@8
+GetNumaNodeProcessorMask2@16
GetNumaNodeProcessorMask@8
GetNumaNodeProcessorMaskEx@8
GetNumaProcessorNode@8
@@ -704,6 +721,7 @@
GetProcAddress@8
GetProcessAffinityMask@12
GetProcessDEPPolicy@12
+GetProcessDefaultCpuSetMasks@16
GetProcessDefaultCpuSets@16
GetProcessGroupAffinity@12
GetProcessHandleCount@8
@@ -722,6 +740,7 @@
GetProcessVersion@4
GetProcessWorkingSetSize@12
GetProcessWorkingSetSizeEx@16
+GetProcessesInVirtualizationContext@12
GetProcessorSystemCycleTime@12
GetProductInfo@20
GetProductName@8
@@ -780,6 +799,7 @@
GetTempPath2W@8
GetThreadContext@8
GetThreadDescription@8
+GetThreadEnabledXStateFeatures@0
GetThreadErrorMode@0
GetThreadGroupAffinity@8
GetThreadIOPendingFlag@8
@@ -790,6 +810,7 @@
GetThreadPreferredUILanguages@16
GetThreadPriority@4
GetThreadPriorityBoost@8
+GetThreadSelectedCpuSetMasks@16
GetThreadSelectedCpuSets@16
GetThreadSelectorEntry@12
GetThreadTimes@20
@@ -920,6 +941,7 @@
IsDBCSLeadByteEx@8
IsDebuggerPresent@0
IsEnclaveTypeSupported@4
+IsIoRingOpSupported@8
IsNLSDefinedString@20
IsNativeVhdBoot@4
IsNormalizedString@12
@@ -930,6 +952,7 @@
IsThreadAFiber@0
IsThreadpoolTimerSet@4
IsTimeZoneRedirectionEnabled@0
+IsUserCetAvailableInEnvironment@4
IsValidCalDateTime@8
IsValidCodePage@4
IsValidLanguageGroup@8
@@ -1087,6 +1110,7 @@
PeekConsoleInputA@16
PeekConsoleInputW@16
PeekNamedPipe@24
+PopIoRingCompletion@8
PostQueuedCompletionStatus@16
PowerClearRequest@8
PowerCreateRequest@4
@@ -1128,6 +1152,7 @@
QueryIdleProcessorCycleTimeEx@12
QueryInformationJobObject@20
QueryIoRateControlInformationJobObject@16
+QueryIoRingCapabilities@4
QueryMemoryResourceNotification@8
QueryPerformanceCounter@4
QueryPerformanceFrequency@4
@@ -1138,6 +1163,7 @@
QueryThreadProfiling@8
QueryThreadpoolStackInformation@8
QueryUnbiasedInterruptTime@4
+QueueUserAPC2@16
QueueUserAPC@12
QueueUserWorkItem@12
QueryWin31IniFilesMappedToRegistry@16
@@ -1241,6 +1267,7 @@
ReleaseActCtxWorker@4
ReleaseMutex@4
ReleaseMutexWhenCallbackReturns@8
+ReleasePackageVirtualizationContext@4
ReleaseSRWLockExclusive@4
ReleaseSRWLockShared@4
ReleaseSemaphore@12
@@ -1370,6 +1397,7 @@
SetHandleInformation@12
SetInformationJobObject@16
SetIoRateControlInformationJobObject@8
+SetIoRingCompletionEvent@8
SetLastConsoleEventActive@0
SetLastError@4
SetLocalPrimaryComputerNameA@8
@@ -1385,7 +1413,10 @@
SetProcessAffinityMask@8
SetProcessAffinityUpdateMode@8
SetProcessDEPPolicy@4
+SetProcessDefaultCpuSetMasks@12
SetProcessDefaultCpuSets@12
+SetProcessDynamicEHContinuationTargets@12
+SetProcessDynamicEnforcedCetCompatibleRanges@12
SetProcessInformation@16
SetProcessMitigationPolicy@12
SetProcessPreferredUILanguages@12
@@ -1418,6 +1449,7 @@
SetThreadPreferredUILanguages@12
SetThreadPriority@8
SetThreadPriorityBoost@8
+SetThreadSelectedCpuSetMasks@12
SetThreadSelectedCpuSets@12
SetThreadStackGuarantee@4
; MSDN says this is exported from ADVAPI32.DLL.
@@ -1455,6 +1487,7 @@
SortCloseHandle@4
SortGetHandle@12
StartThreadpoolIo@4
+SubmitIoRing@16
SubmitThreadpoolWork@4
SuspendThread@4
SwitchToFiber@4
@@ -1501,6 +1534,7 @@
UnlockFile@20
UnlockFileEx@20
UnmapViewOfFile@4
+UnmapViewOfFileEx@8
UnmapViewOfFileVlm@4
UnregisterApplicationRecoveryCallback@0
UnregisterApplicationRestart@0
@@ -1541,6 +1575,7 @@
WTSGetActiveConsoleSessionId@0
WaitCommEvent@12
WaitForDebugEvent@8
+WaitForDebugEventEx@8
WaitForMultipleObjects@16
WaitForMultipleObjectsEx@20
WaitForSingleObject@8