Here a commit with a downloadable diff: 
https://sourceforge.net/u/avasam/mingw-w64/ci/64f42f9bc8eb38160f966fd95ac2bb57c063262b/

Now signed-off, and not including generated files regeneration.

________________________________
From: LIU Hao
Sent: Tuesday, June 30, 2026 00:53
To: [email protected]; Samuel Therrien
Subject: Re: [Mingw-w64-public] [PATCH] Change Request: Missing lib32/sfc.def 
and lib32/loadperf.def

在 2026-6-29 12:58, Samuel Therrien 写道:
> Hi. Trying to build pywin32 against i686 MSYS2 MinGW, it seems that some defs 
> are missing under mingw-w64-crt/lib32, here's a patch to add them. I've 
> excluded undocumented exports because I couldn't verify arg count reliably 
> without gendef on real 32-bit DLLs (feel free to do so). The excluded symbols 
> are listed in the top-of-file comment.

Please send patches as attachments instead, use `git commit -s` to create a 
Signed-off-by line, and do
not include changes in generated files such as Makefile.in.


--
Best regards,
LIU Hao
From 64f42f9bc8eb38160f966fd95ac2bb57c063262b Mon Sep 17 00:00:00 2001
From: Avasam <[email protected]>
Date: Tue, 30 Jun 2026 18:58:12 -0400
Subject: [PATCH 1/1] Add missing loadperf and sfc in lib32

Signed-off-by: Avasam <[email protected]>
---
 mingw-w64-crt/lib32/Makefile.am  |  2 ++
 mingw-w64-crt/lib32/loadperf.def | 20 ++++++++++++++++++++
 mingw-w64-crt/lib32/sfc.def      | 15 +++++++++++++++
 3 files changed, 37 insertions(+)
 create mode 100644 mingw-w64-crt/lib32/loadperf.def
 create mode 100644 mingw-w64-crt/lib32/sfc.def

diff --git a/mingw-w64-crt/lib32/Makefile.am b/mingw-w64-crt/lib32/Makefile.am
index bcbb3bd89..88d557ef4 100644
--- a/mingw-w64-crt/lib32/Makefile.am
+++ b/mingw-w64-crt/lib32/Makefile.am
@@ -175,6 +175,7 @@ lib32_DATA += %reldir%/libksecdd.a
 lib32_DATA += %reldir%/libksproxy.a
 #lib32_DATA += %reldir%/libksuser.a    # Handled by custom rule
 lib32_DATA += %reldir%/libktmw32.a
+lib32_DATA += %reldir%/libloadperf.a
 lib32_DATA += %reldir%/liblogoncli.a
 lib32_DATA += %reldir%/liblz32.a
 lib32_DATA += %reldir%/libmapi32.a
@@ -281,6 +282,7 @@ lib32_DATA += %reldir%/libsecurity.a
 lib32_DATA += %reldir%/libsensapi.a
 lib32_DATA += %reldir%/libsens.a
 lib32_DATA += %reldir%/libsetupapi.a
+lib32_DATA += %reldir%/libsfc.a
 lib32_DATA += %reldir%/libshcore.a
 #lib32_DATA += %reldir%/libshell32.a    # Handled by custom rule
 lib32_DATA += %reldir%/libshfolder.a
diff --git a/mingw-w64-crt/lib32/loadperf.def b/mingw-w64-crt/lib32/loadperf.def
new file mode 100644
index 000000000..3088d0d24
--- /dev/null
+++ b/mingw-w64-crt/lib32/loadperf.def
@@ -0,0 +1,20 @@
+;
+; Definition file of loadperf.dll
+; Based on mingw-w64-crt/lib-common/loadperf.def
+; Excluding undocumented LpAcquireInstallationMutex/LpReleaseInstallationMutex
+; Written by Samuel Therrien, 2026
+;
+LIBRARY "loadperf.dll"
+EXPORTS
+BackupPerfRegistryToFileW@8
+InstallPerfDllA@12
+InstallPerfDllW@12
+LoadPerfCounterTextStringsA@8
+LoadPerfCounterTextStringsW@8
+RestorePerfRegistryFromFileW@8
+SetServiceAsTrustedA@8
+SetServiceAsTrustedW@8
+UnloadPerfCounterTextStringsA@8
+UnloadPerfCounterTextStringsW@8
+UpdatePerfNameFilesA@16
+UpdatePerfNameFilesW@16
diff --git a/mingw-w64-crt/lib32/sfc.def b/mingw-w64-crt/lib32/sfc.def
new file mode 100644
index 000000000..5762ac5e9
--- /dev/null
+++ b/mingw-w64-crt/lib32/sfc.def
@@ -0,0 +1,15 @@
+;
+; Definition file of sfc.dll
+; Based on mingw-w64-crt/lib64/sfc.def
+; Excluding undocumented SfcWLEventLogoff/SfcWLEventLogon
+; Written by Samuel Therrien, 2026
+;
+LIBRARY "sfc.dll"
+EXPORTS
+SRSetRestorePoint@8
+SRSetRestorePointA@8
+SRSetRestorePointW@8
+SfcGetNextProtectedFile@8
+SfcIsFileProtected@8
+SfcIsKeyProtected@12
+SfpVerifyFile@12
-- 
2.53.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to