From 9fb68df359dbd3e891c5e63765580ccee39f0d18 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Tue, 17 Oct 2023 02:20:45 +0000
Subject: [PATCH] crt: Add missing APIs in advapi32 import library

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-crt/lib-common/advapi32.def.in | 11 +++++
 mingw-w64-crt/lib32/advapi32.def         | 57 +++++++++++++++++++++++-
 2 files changed, 67 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-crt/lib-common/advapi32.def.in 
b/mingw-w64-crt/lib-common/advapi32.def.in
index b4e2aa2..45bb2bd 100644
--- a/mingw-w64-crt/lib-common/advapi32.def.in
+++ b/mingw-w64-crt/lib-common/advapi32.def.in
@@ -441,12 +441,15 @@ LsaAddAccountRights
 LsaAddPrivilegesToAccount
 LsaClearAuditLog
 LsaClose
+LsaConfigureAutoLogonCredentials
 LsaCreateAccount
 LsaCreateSecret
 LsaCreateTrustedDomain
 LsaCreateTrustedDomainEx
 LsaDelete
 LsaDeleteTrustedDomain
+LsaDisableUserArso
+LsaEnableUserArso
 LsaEnumerateAccountRights
 LsaEnumerateAccounts
 LsaEnumerateAccountsWithUserRight
@@ -456,6 +459,7 @@ LsaEnumerateTrustedDomains
 LsaEnumerateTrustedDomainsEx
 LsaFreeMemory
 LsaGetAppliedCAPIDs
+LsaGetDeviceRegistrationInfo
 LsaGetQuotasForAccount
 LsaGetRemoteUserName
 LsaGetSystemAccessAccount
@@ -464,6 +468,9 @@ LsaICLookupNames
 LsaICLookupNamesWithCreds
 LsaICLookupSids
 LsaICLookupSidsWithCreds
+LsaInvokeTrustScanner
+LsaIsUserArsoAllowed
+LsaIsUserArsoEnabled
 LsaLookupNames
 LsaLookupNames2
 LsaLookupPrivilegeDisplayName
@@ -479,9 +486,11 @@ LsaOpenPolicySce
 LsaOpenSecret
 LsaOpenTrustedDomain
 LsaOpenTrustedDomainByName
+LsaProfileDeleted
 LsaQueryCAPs
 LsaQueryDomainInformationPolicy
 LsaQueryForestTrustInformation
+LsaQueryForestTrustInformation2
 LsaQueryInfoTrustedDomain
 LsaQueryInformationPolicy
 LsaQuerySecret
@@ -494,6 +503,7 @@ LsaRetrievePrivateData
 LsaSetCAPs
 LsaSetDomainInformationPolicy
 LsaSetForestTrustInformation
+LsaSetForestTrustInformation2
 LsaSetInformationPolicy
 LsaSetInformationTrustedDomain
 LsaSetQuotasForAccount
@@ -503,6 +513,7 @@ LsaSetSystemAccessAccount
 LsaSetTrustedDomainInfoByName
 LsaSetTrustedDomainInformation
 LsaStorePrivateData
+LsaValidateProcUniqueLuid
 MD4Final
 MD4Init
 MD4Update
diff --git a/mingw-w64-crt/lib32/advapi32.def b/mingw-w64-crt/lib32/advapi32.def
index e2cc66d..5d9953b 100644
--- a/mingw-w64-crt/lib32/advapi32.def
+++ b/mingw-w64-crt/lib32/advapi32.def
@@ -67,6 +67,19 @@ AuditSetSecurity@8
 AuditSetSystemPolicy@8
 BackupEventLogA@8
 BackupEventLogW@8
+BaseRegCloseKey@4
+BaseRegCreateKey@32
+BaseRegDeleteKeyEx@16
+BaseRegDeleteValue@8
+BaseRegFlushKey@4
+BaseRegGetVersion@8
+BaseRegLoadKey@12
+BaseRegOpenKey@20
+BaseRegRestoreKey@12
+BaseRegSaveKeyEx@16
+BaseRegSetKeySecurity@12
+BaseRegSetValue@20
+BaseRegUnLoadKey@8
 BuildExplicitAccessWithNameA@20
 BuildExplicitAccessWithNameW@20
 BuildImpersonateExplicitAccessWithNameA@24
@@ -88,6 +101,7 @@ ChangeServiceConfig2A@12
 ChangeServiceConfig2W@12
 ChangeServiceConfigA@44
 ChangeServiceConfigW@44
+CheckForHiberboot@8
 CheckTokenMembership@12
 ClearEventLogA@8
 ClearEventLogW@8
@@ -106,6 +120,7 @@ ControlTraceA@20
 ControlTraceW@20
 ConvertAccessToSecurityDescriptorA@20
 ConvertAccessToSecurityDescriptorW@20
+ConvertSDToStringSDDomainW@28
 ConvertSDToStringSDRootDomainA@24
 ConvertSDToStringSDRootDomainW@24
 ConvertSecurityDescriptorToAccessA@28
@@ -222,6 +237,7 @@ CryptSignHashA@24
 CryptSignHashW@24
 CryptVerifySignatureA@24
 CryptVerifySignatureW@24
+CveEventWrite@8
 DecryptFileA@8
 DecryptFileW@8
 DeleteAce@8
@@ -261,6 +277,7 @@ EncryptedFileKeyInfo@12
 EncryptionDisable@8
 EnumDependentServicesA@24
 EnumDependentServicesW@24
+EnumDynamicTimeZoneInformation@8
 EnumServiceGroupW@36
 EnumServicesStatusA@32
 EnumServicesStatusExA@40
@@ -278,6 +295,7 @@ EventActivityIdControl@8
 EventEnabled@12
 EventProviderEnabled@20
 EventRegister@16
+EventSetInformation@20
 EventUnregister@8
 EventWrite@20
 EventWriteEndScenario@20
@@ -304,6 +322,7 @@ GetAuditedPermissionsFromAclA@16
 GetAuditedPermissionsFromAclW@16
 GetCurrentHwProfileA@4
 GetCurrentHwProfileW@4
+GetDynamicTimeZoneInformationEffectiveYears@12
 GetEffectiveRightsFromAclA@12
 GetEffectiveRightsFromAclW@12
 GetEncryptedFileMetadata@12
@@ -353,6 +372,7 @@ GetSidIdentifierAuthority@4
 GetSidLengthRequired@4
 GetSidSubAuthority@8
 GetSidSubAuthorityCount@4
+GetStringConditionFromBinary@16
 GetSiteDirectoryA@12
 GetSiteDirectoryW@12
 GetSiteNameFromSid@8
@@ -408,7 +428,7 @@ IsWellKnownSid@8
 LockServiceDatabase@4
 LogonUserA@24
 LogonUserExA@40
-LogonUserExExW@44 
+LogonUserExExW@44
 LogonUserExW@40
 LogonUserW@24
 LookupAccountNameA@28
@@ -427,12 +447,15 @@ LsaAddAccountRights@16
 LsaAddPrivilegesToAccount@8
 LsaClearAuditLog@4
 LsaClose@4
+LsaConfigureAutoLogonCredentials@0
 LsaCreateAccount@16
 LsaCreateSecret@16
 LsaCreateTrustedDomain@16
 LsaCreateTrustedDomainEx@20
 LsaDelete@4
 LsaDeleteTrustedDomain@8
+LsaDisableUserArso@4
+LsaEnableUserArso@4
 LsaEnumerateAccountRights@16
 LsaEnumerateAccounts@20
 LsaEnumerateAccountsWithUserRight@16
@@ -441,6 +464,8 @@ LsaEnumeratePrivilegesOfAccount@8
 LsaEnumerateTrustedDomains@20
 LsaEnumerateTrustedDomainsEx@20
 LsaFreeMemory@4
+LsaGetAppliedCAPIDs@12
+LsaGetDeviceRegistrationInfo@4
 LsaGetQuotasForAccount@8
 LsaGetRemoteUserName@12
 LsaGetSystemAccessAccount@8
@@ -449,11 +474,15 @@ LsaICLookupNames@40
 LsaICLookupNamesWithCreds@48
 LsaICLookupSids@36
 LsaICLookupSidsWithCreds@48
+LsaInvokeTrustScanner@16
+LsaIsUserArsoAllowed@4
+LsaIsUserArsoEnabled@8
 LsaLookupNames2@24
 LsaLookupNames@20
 LsaLookupPrivilegeDisplayName@16
 LsaLookupPrivilegeName@12
 LsaLookupPrivilegeValue@12
+LsaLookupSids2@24
 LsaLookupSids@20
 LsaManageSidNameMapping@12
 LsaNtStatusToWinError@4
@@ -463,7 +492,10 @@ LsaOpenPolicySce@16
 LsaOpenSecret@16
 LsaOpenTrustedDomain@16
 LsaOpenTrustedDomainByName@16
+LsaProfileDeleted@4
+LsaQueryCAPs@16
 LsaQueryDomainInformationPolicy@12
+LsaQueryForestTrustInformation2@16
 LsaQueryForestTrustInformation@12
 LsaQueryInfoTrustedDomain@12
 LsaQueryInformationPolicy@12
@@ -474,7 +506,9 @@ LsaQueryTrustedDomainInfoByName@16
 LsaRemoveAccountRights@20
 LsaRemovePrivilegesFromAccount@12
 LsaRetrievePrivateData@12
+LsaSetCAPs@12
 LsaSetDomainInformationPolicy@12
+LsaSetForestTrustInformation2@24
 LsaSetForestTrustInformation@20
 LsaSetInformationPolicy@12
 LsaSetInformationTrustedDomain@12
@@ -485,6 +519,7 @@ LsaSetSystemAccessAccount@8
 LsaSetTrustedDomainInfoByName@16
 LsaSetTrustedDomainInformation@16
 LsaStorePrivateData@12
+LsaValidateProcUniqueLuid@4
 MD4Final@4
 MD4Init@4
 MD4Update@12
@@ -502,6 +537,7 @@ NotifyChangeEventLog@8
 NotifyServiceStatusChange@12
 NotifyServiceStatusChangeA@12
 NotifyServiceStatusChangeW@12
+NpGetUserName@12
 ObjectCloseAuditAlarmA@12
 ObjectCloseAuditAlarmW@12
 ObjectDeleteAuditAlarmA@12
@@ -525,6 +561,8 @@ OpenThreadToken@16
 OpenThreadWaitChainSession@8
 OpenTraceA@4
 OpenTraceW@4
+OperationEnd@4
+OperationStart@4
 PerfAddCounters@12
 PerfCloseQueryHandle@4
 PerfCreateInstance@16
@@ -541,6 +579,12 @@ PerfQueryCounterData@16
 PerfQueryCounterInfo@16
 PerfQueryCounterSetRegistrationInfo@28
 PerfQueryInstance@16
+PerfRegCloseKey@4
+PerfRegEnumKey@24
+PerfRegEnumValue@32
+PerfRegQueryInfoKey@44
+PerfRegQueryValue@28
+PerfRegSetValue@24
 PerfSetCounterRefValue@16
 PerfSetCounterSetInfo@12
 PerfSetULongCounterValue@16
@@ -562,12 +606,14 @@ QueryServiceConfig2A@20
 QueryServiceConfig2W@20
 QueryServiceConfigA@16
 QueryServiceConfigW@16
+QueryServiceDynamicInformation@12
 QueryServiceLockStatusA@16
 QueryServiceLockStatusW@16
 QueryServiceObjectSecurity@20
 QueryServiceStatus@8
 QueryServiceStatusEx@20
 QueryTraceA@16
+QueryTraceProcessingHandle@32
 QueryTraceW@16
 QueryUsersOnEncryptedFile@8
 QueryWindows31FilesMigration@4
@@ -666,11 +712,18 @@ RegisterServiceCtrlHandlerW@8
 RegisterTraceGuidsA@32
 RegisterTraceGuidsW@32
 RegisterWaitChainCOMCallback@8
+RemoteRegEnumKeyWrapper@20
+RemoteRegEnumValueWrapper@28
+RemoteRegQueryInfoKeyWrapper@40
+RemoteRegQueryMultipleValues2Wrapper@24
+RemoteRegQueryMultipleValuesWrapper@20
+RemoteRegQueryValueWrapper@24
 RemoveTraceCallback@4
 RemoveUsersFromEncryptedFile@8
 ReportEventA@36
 ReportEventW@36
 RevertToSelf@0
+SafeBaseRegGetKeySecurity@16
 SaferCloseLevel@4
 SaferComputeTokenFromLevel@20
 SaferCreateLevel@20
@@ -775,6 +828,7 @@ TraceEvent@12
 TraceEventInstance@20
 TraceMessage
 TraceMessageVa@24
+TraceQueryInformation@24
 TraceSetInformation@20
 TreeResetNamedSecurityInfoA@44
 TreeResetNamedSecurityInfoW@44
@@ -790,6 +844,7 @@ UpdateTraceA@16
 UpdateTraceW@16
 UsePinForEncryptedFilesA@12
 UsePinForEncryptedFilesW@12
+WaitServiceState@16
 WmiCloseBlock@4
 WmiDevInstToInstanceNameA@16
 WmiDevInstToInstanceNameW@16
-- 
2.42.0

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to