From 7185df8eda6c25d101170a2809094adc9f493b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Fri, 16 Feb 2024 20:31:44 +0900 Subject: [PATCH] Add some eventlog APIs to WindowsAPIs.txt (#98545) Hello world size regressed by 50 kB because we now need the lazy p/invoke code paths. This API is present in OneCore.lib and has existed since at least Windows 2000. It's missing in mincore.lib, but AFAIK mincore is pretty much deprecated. --- src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt b/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt index bc68e90ec7673..d5a50a702a6d1 100644 --- a/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt +++ b/src/coreclr/nativeaot/BuildIntegration/WindowsAPIs.txt @@ -86,6 +86,7 @@ advapi32!CredWriteDomainCredentialsW advapi32!CredWriteW advapi32!DeleteAce advapi32!DeleteService +advapi32!DeregisterEventSource advapi32!DestroyPrivateObjectSecurity advapi32!DuplicateToken advapi32!DuplicateTokenEx @@ -206,6 +207,8 @@ advapi32!RegFlushKey advapi32!RegGetKeySecurity advapi32!RegGetValueA advapi32!RegGetValueW +advapi32!RegisterEventSourceA +advapi32!RegisterEventSourceW advapi32!RegisterServiceCtrlHandlerA advapi32!RegisterServiceCtrlHandlerExA advapi32!RegisterServiceCtrlHandlerExW @@ -239,6 +242,8 @@ advapi32!RegSetValueExA advapi32!RegSetValueExW advapi32!RegUnLoadKeyA advapi32!RegUnLoadKeyW +advapi32!ReportEventA +advapi32!ReportEventW advapi32!RevertToSelf advapi32!SetAclInformation advapi32!SetFileSecurityW