From 521f14eedb940946b97f0f2470015db3ef775987 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath <[email protected]> Date: Fri, 28 Jul 2023 18:21:18 +0530 Subject: [PATCH] crt: Add missing APIs in kernel32.def
Signed-off-by: Biswapriyo Nath <[email protected]> --- mingw-w64-crt/lib-common/kernel32.def.in | 35 ++++++++++++++++++++++ mingw-w64-crt/lib32/kernel32.def | 38 +++++++++++++++++++++++- 2 files changed, 72 insertions(+), 1 deletion(-) 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 @@ AcquireSRWLockExclusive AcquireSRWLockShared ActivateActCtx ActivateActCtxWorker +ActivatePackageVirtualizationContext AddAtomA AddAtomW AddConsoleAliasA @@ -117,6 +118,12 @@ BuildCommDCBA BuildCommDCBAndTimeoutsA BuildCommDCBAndTimeoutsW BuildCommDCBW +BuildIoRingCancelRequest +BuildIoRingFlushFile +BuildIoRingReadFile +BuildIoRingRegisterBuffers +BuildIoRingRegisterFileHandles +BuildIoRingWriteFile CallNamedPipeA CallNamedPipeW CallbackMayRunLong @@ -144,6 +151,7 @@ ClearCommBreak ClearCommError CloseConsoleHandle CloseHandle +CloseIoRing ClosePackageInfo ClosePrivateNamespace CloseProfileUserMapping @@ -220,6 +228,7 @@ CreateHardLinkTransactedA CreateHardLinkTransactedW CreateHardLinkW CreateIoCompletionPort +CreateIoRing CreateJobObjectA CreateJobObjectW CreateJobSet @@ -233,6 +242,7 @@ CreateMutexW CreateNamedPipeA CreateNamedPipeW CreateNlsSecurityDescriptor +CreatePackageVirtualizationContext CreatePipe CreatePrivateNamespaceA CreatePrivateNamespaceW @@ -274,6 +284,7 @@ CreateWaitableTimerW CtrlRoutine DeactivateActCtx DeactivateActCtxWorker +DeactivatePackageVirtualizationContext DebugActiveProcess DebugActiveProcessStop DebugBreak @@ -317,6 +328,8 @@ DosPathToSessionPathW DuplicateConsoleHandle DuplicateEncryptionInfoFileExt DuplicateHandle +DuplicatePackageVirtualizationContext +EnableProcessOptionalXStateFeatures EnableThreadProfiling EncodePointer EncodeSystemPointer @@ -555,6 +568,7 @@ GetCurrentPackageFullName GetCurrentPackageId GetCurrentPackageInfo GetCurrentPackagePath +GetCurrentPackageVirtualizationContext GetCurrentProcess GetCurrentProcessId GetCurrentProcessorNumber @@ -631,6 +645,7 @@ GetGeoInfoA GetGeoInfoW GetGeoInfoEx GetHandleInformation +GetIoRingInfo GetLargePageMinimum GetLargestConsoleWindowSize GetLastError @@ -648,6 +663,7 @@ GetLongPathNameA GetLongPathNameTransactedA GetLongPathNameTransactedW GetLongPathNameW +GetMachineTypeAttributes GetMailslotInfo GetMaximumProcessorCount GetMaximumProcessorGroupCount @@ -679,6 +695,7 @@ GetNumaAvailableMemoryNodeEx GetNumaHighestNodeNumber GetNumaNodeNumberFromHandle GetNumaNodeProcessorMask +GetNumaNodeProcessorMask2 GetNumaNodeProcessorMaskEx GetNumaProcessorNode GetNumaProcessorNodeEx @@ -715,6 +732,7 @@ GetPrivateProfileStructA GetPrivateProfileStructW GetProcAddress GetProcessAffinityMask +GetProcessDefaultCpuSetMasks GetProcessDefaultCpuSets GetProcessDEPPolicy GetProcessGroupAffinity @@ -733,6 +751,7 @@ GetProcessTimes GetProcessVersion GetProcessWorkingSetSize GetProcessWorkingSetSizeEx +GetProcessesInVirtualizationContext GetProcessorSystemCycleTime GetProductInfo GetProfileIntA @@ -790,6 +809,7 @@ GetTempPath2A GetTempPath2W GetThreadContext GetThreadDescription +GetThreadEnabledXStateFeatures GetThreadErrorMode GetThreadGroupAffinity GetThreadIOPendingFlag @@ -800,6 +820,7 @@ GetThreadLocale GetThreadPreferredUILanguages GetThreadPriority GetThreadPriorityBoost +GetThreadSelectedCpuSetMasks GetThreadSelectedCpuSets GetThreadSelectorEntry GetThreadTimes @@ -927,6 +948,7 @@ IsDBCSLeadByte IsDBCSLeadByteEx IsDebuggerPresent IsEnclaveTypeSupported +IsIoRingOpSupported IsNLSDefinedString IsNativeVhdBoot IsNormalizedString @@ -937,6 +959,7 @@ IsSystemResumeAutomatic IsThreadAFiber IsThreadpoolTimerSet IsTimeZoneRedirectionEnabled +IsUserCetAvailableInEnvironment IsValidCalDateTime IsValidCodePage IsValidLanguageGroup @@ -1098,6 +1121,7 @@ ParseApplicationUserModelId PeekConsoleInputA PeekConsoleInputW PeekNamedPipe +PopIoRingCompletion PostQueuedCompletionStatus PowerClearRequest PowerCreateRequest @@ -1139,6 +1163,7 @@ QueryIdleProcessorCycleTime QueryIdleProcessorCycleTimeEx QueryInformationJobObject QueryIoRateControlInformationJobObject +QueryIoRingCapabilities QueryMemoryResourceNotification QueryPerformanceCounter QueryPerformanceFrequency @@ -1151,6 +1176,7 @@ QueryThreadpoolStackInformation F_X64(QueryUmsThreadInformation) QueryUnbiasedInterruptTime QueueUserAPC +QueueUserAPC2 QueueUserWorkItem QuirkGetData2Worker QuirkGetDataWorker @@ -1253,6 +1279,7 @@ ReleaseActCtx ReleaseActCtxWorker ReleaseMutex ReleaseMutexWhenCallbackReturns +ReleasePackageVirtualizationContext ReleaseSRWLockExclusive ReleaseSRWLockShared ReleaseSemaphore @@ -1289,6 +1316,7 @@ RtlCopyMemory RtlDeleteFunctionTable RtlFillMemory RtlInstallFunctionTableCallback +RtlIsEcCode RtlLookupFunctionEntry RtlMoveMemory RtlPcToFileHeader @@ -1297,6 +1325,7 @@ RtlRestoreContext RtlUnwind RtlUnwindEx RtlVirtualUnwind +RtlVirtualUnwind2 RtlZeroMemory ScrollConsoleScreenBufferA ScrollConsoleScreenBufferW @@ -1392,6 +1421,7 @@ SetHandleCount SetHandleInformation SetInformationJobObject SetIoRateControlInformationJobObject +SetIoRingCompletionEvent SetLastConsoleEventActive SetLastError SetLocalPrimaryComputerNameA @@ -1407,7 +1437,10 @@ SetPriorityClass SetProcessAffinityMask SetProcessAffinityUpdateMode SetProcessDEPPolicy +SetProcessDefaultCpuSetMasks SetProcessDefaultCpuSets +SetProcessDynamicEHContinuationTargets +SetProcessDynamicEnforcedCetCompatibleRanges SetProcessInformation SetProcessMitigationPolicy SetProcessPreferredUILanguages @@ -1439,6 +1472,7 @@ SetThreadLocale SetThreadPreferredUILanguages SetThreadPriority SetThreadPriorityBoost +SetThreadSelectedCpuSetMasks SetThreadSelectedCpuSets SetThreadStackGuarantee ; MSDN says this is exported from ADVAPI32.DLL. @@ -1477,6 +1511,7 @@ SleepEx 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..603ff80 100644 --- a/mingw-w64-crt/lib32/kernel32.def +++ b/mingw-w64-crt/lib32/kernel32.def @@ -11,6 +11,7 @@ AcquireSRWLockExclusive@4 AcquireSRWLockShared@4 ActivateActCtx@8 ActivateActCtxWorker@8 +ActivatePackageVirtualizationContext@8 AddAtomA@4 AddAtomW@4 AddConsoleAliasA@12 @@ -33,7 +34,7 @@ AllocateUserPhysicalPages@12 AllocateUserPhysicalPagesNuma@16 AppPolicyGetClrCompat@8 AppPolicyGetCreateFileAccess@8 -AAppPolicyGetLifecycleManagement@8 +AppPolicyGetLifecycleManagement@8 AppPolicyGetMediaFoundationCodecLoading@8 AppPolicyGetProcessTerminationMethod@8 AppPolicyGetShowDeveloperDiagnostic@8 @@ -117,6 +118,12 @@ BuildCommDCBA@8 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 @@ ClearCommBreak@4 ClearCommError@12 CloseConsoleHandle@4 CloseHandle@4 +CloseIoRing@4 ClosePackageInfo@4 ClosePrivateNamespace@8 CloseProfileUserMapping@0 @@ -219,6 +227,7 @@ CreateHardLinkTransactedA@16 CreateHardLinkTransactedW@16 CreateHardLinkW@12 CreateIoCompletionPort@16 +CreateIoRing@24 CreateJobObjectA@8 CreateJobObjectW@8 CreateJobSet@12 @@ -231,6 +240,7 @@ CreateMutexExW@16 CreateMutexW@12 CreateNamedPipeA@32 CreateNamedPipeW@32 +CreatePackageVirtualizationContext@8 CreatePipe@16 CreatePrivateNamespaceA@12 CreatePrivateNamespaceW@12 @@ -272,6 +282,7 @@ CreateWaitableTimerW@12 CtrlRoutine@4 DeactivateActCtx@8 DeactivateActCtxWorker@8 +DeactivatePackageVirtualizationContext@4 DebugActiveProcess@4 DebugActiveProcessStop@4 DebugBreak@0 @@ -312,6 +323,8 @@ DosPathToSessionPathW@12 DuplicateConsoleHandle@16 DuplicateEncryptionInfoFileExt@20 DuplicateHandle@28 +DuplicatePackageVirtualizationContext@8 +EnableProcessOptionalXStateFeatures@8 EnableThreadProfiling@20 EncodePointer@4 EncodeSystemPointer@4 @@ -550,6 +563,7 @@ GetCurrentPackageFullName@8 GetCurrentPackageId@8 GetCurrentPackageInfo@16 GetCurrentPackagePath@8 +GetCurrentPackageVirtualizationContext@0 GetCurrentProcess@0 GetCurrentProcessId@0 GetCurrentProcessorNumber@0 @@ -622,6 +636,7 @@ GetGeoInfoEx@16 GetGeoInfoW@20 GetHandleContext@4 GetHandleInformation@8 +GetIoRingInfo@8 GetLargePageMinimum@0 GetLargestConsoleWindowSize@4 GetLastError@0 @@ -638,6 +653,7 @@ GetLongPathNameA@12 GetLongPathNameTransactedA@16 GetLongPathNameTransactedW@16 GetLongPathNameW@12 +GetMachineTypeAttributes@8 GetMailslotInfo@20 GetMaximumProcessorCount@4 GetMaximumProcessorGroupCount@0 @@ -666,6 +682,7 @@ GetNumaAvailableMemoryNode@8 GetNumaAvailableMemoryNodeEx@8 GetNumaHighestNodeNumber@4 GetNumaNodeNumberFromHandle@8 +GetNumaNodeProcessorMask2@16 GetNumaNodeProcessorMask@8 GetNumaNodeProcessorMaskEx@8 GetNumaProcessorNode@8 @@ -704,6 +721,7 @@ GetPrivateProfileStructW@20 GetProcAddress@8 GetProcessAffinityMask@12 GetProcessDEPPolicy@12 +GetProcessDefaultCpuSetMasks@16 GetProcessDefaultCpuSets@16 GetProcessGroupAffinity@12 GetProcessHandleCount@8 @@ -722,6 +740,7 @@ GetProcessUserModeExceptionPolicy@4 GetProcessVersion@4 GetProcessWorkingSetSize@12 GetProcessWorkingSetSizeEx@16 +GetProcessesInVirtualizationContext@12 GetProcessorSystemCycleTime@12 GetProductInfo@20 GetProductName@8 @@ -780,6 +799,7 @@ GetTempPath2A@8 GetTempPath2W@8 GetThreadContext@8 GetThreadDescription@8 +GetThreadEnabledXStateFeatures@0 GetThreadErrorMode@0 GetThreadGroupAffinity@8 GetThreadIOPendingFlag@8 @@ -790,6 +810,7 @@ GetThreadLocale@0 GetThreadPreferredUILanguages@16 GetThreadPriority@4 GetThreadPriorityBoost@8 +GetThreadSelectedCpuSetMasks@16 GetThreadSelectedCpuSets@16 GetThreadSelectorEntry@12 GetThreadTimes@20 @@ -920,6 +941,7 @@ IsDBCSLeadByte@4 IsDBCSLeadByteEx@8 IsDebuggerPresent@0 IsEnclaveTypeSupported@4 +IsIoRingOpSupported@8 IsNLSDefinedString@20 IsNativeVhdBoot@4 IsNormalizedString@12 @@ -930,6 +952,7 @@ IsSystemResumeAutomatic@0 IsThreadAFiber@0 IsThreadpoolTimerSet@4 IsTimeZoneRedirectionEnabled@0 +IsUserCetAvailableInEnvironment@4 IsValidCalDateTime@8 IsValidCodePage@4 IsValidLanguageGroup@8 @@ -1087,6 +1110,7 @@ ParseApplicationUserModelId@20 PeekConsoleInputA@16 PeekConsoleInputW@16 PeekNamedPipe@24 +PopIoRingCompletion@8 PostQueuedCompletionStatus@16 PowerClearRequest@8 PowerCreateRequest@4 @@ -1128,6 +1152,7 @@ QueryIdleProcessorCycleTime@8 QueryIdleProcessorCycleTimeEx@12 QueryInformationJobObject@20 QueryIoRateControlInformationJobObject@16 +QueryIoRingCapabilities@4 QueryMemoryResourceNotification@8 QueryPerformanceCounter@4 QueryPerformanceFrequency@4 @@ -1138,6 +1163,7 @@ QueryThreadCycleTime@8 QueryThreadProfiling@8 QueryThreadpoolStackInformation@8 QueryUnbiasedInterruptTime@4 +QueueUserAPC2@16 QueueUserAPC@12 QueueUserWorkItem@12 QueryWin31IniFilesMappedToRegistry@16 @@ -1241,6 +1267,7 @@ ReleaseActCtx@4 ReleaseActCtxWorker@4 ReleaseMutex@4 ReleaseMutexWhenCallbackReturns@8 +ReleasePackageVirtualizationContext@4 ReleaseSRWLockExclusive@4 ReleaseSRWLockShared@4 ReleaseSemaphore@12 @@ -1370,6 +1397,7 @@ SetHandleCount@4 SetHandleInformation@12 SetInformationJobObject@16 SetIoRateControlInformationJobObject@8 +SetIoRingCompletionEvent@8 SetLastConsoleEventActive@0 SetLastError@4 SetLocalPrimaryComputerNameA@8 @@ -1385,7 +1413,11 @@ SetPriorityClass@8 SetProcessAffinityMask@8 SetProcessAffinityUpdateMode@8 SetProcessDEPPolicy@4 +SetProcessDefaultCpuSetMasks@12 SetProcessDefaultCpuSets@12 +SetProcessDynamicEHContinuationTargets@12 +SetProcessDynamicEnforcedCetCompatibleRanges@12 +SetProcessInformation@16 SetProcessInformation@16 SetProcessMitigationPolicy@12 SetProcessPreferredUILanguages@12 @@ -1418,6 +1450,7 @@ SetThreadLocale@4 SetThreadPreferredUILanguages@12 SetThreadPriority@8 SetThreadPriorityBoost@8 +SetThreadSelectedCpuSetMasks@12 SetThreadSelectedCpuSets@12 SetThreadStackGuarantee@4 ; MSDN says this is exported from ADVAPI32.DLL. @@ -1455,6 +1488,7 @@ SleepEx@8 SortCloseHandle@4 SortGetHandle@12 StartThreadpoolIo@4 +SubmitIoRing@16 SubmitThreadpoolWork@4 SuspendThread@4 SwitchToFiber@4 @@ -1501,6 +1535,7 @@ UnhandledExceptionFilter@4 UnlockFile@20 UnlockFileEx@20 UnmapViewOfFile@4 +UnmapViewOfFileEx@8 UnmapViewOfFileVlm@4 UnregisterApplicationRecoveryCallback@0 UnregisterApplicationRestart@0 @@ -1541,6 +1576,7 @@ VirtualUnlock@8 WTSGetActiveConsoleSessionId@0 WaitCommEvent@12 WaitForDebugEvent@8 +WaitForDebugEventEx@8 WaitForMultipleObjects@16 WaitForMultipleObjectsEx@20 WaitForSingleObject@8 -- 2.41.0
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
