Here's the commit with a downloadable diff:
https://sourceforge.net/u/avasam/mingw-w64/ci/6175bc8d9b3b895d9f74814c9e3dd867baf09faf/
________________________________
From: Samuel Therrien <[email protected]>
Sent: June 29, 2026 00:58
To: [email protected]
<[email protected]>
Subject: [Mingw-w64-public] [PATCH] Change Request: wincred.h incorrect and
missing macros for pywin32
Hi! Whilst adding MinGW support to pywin32, I noticed a few missing macros.
After comparing with the values obtained from MSVC, it seems some values are
even incorrect! Here's a patch for the missing macros pywin32 is using:
diff --git a/mingw-w64-headers/include/wincred.h
b/mingw-w64-headers/include/wincred.h
index 7525870f1..32d404196 100644
--- a/mingw-w64-headers/include/wincred.h
+++ b/mingw-w64-headers/include/wincred.h
@@ -106,7 +106,9 @@ extern "C" {
#define CRED_TYPE_DOMAIN_PASSWORD 2
#define CRED_TYPE_DOMAIN_CERTIFICATE 3
#define CRED_TYPE_DOMAIN_VISIBLE_PASSWORD 4
-#define CRED_TYPE_MAXIMUM 5
+#define CRED_TYPE_GENERIC_CERTIFICATE 5
+#define CRED_TYPE_DOMAIN_EXTENDED 6
+#define CRED_TYPE_MAXIMUM 7
#define CRED_TYPE_MAXIMUM_EX (CRED_TYPE_MAXIMUM+1000)
#define CRED_MAX_CREDENTIAL_BLOB_SIZE 512
@@ -251,6 +253,9 @@ extern "C" {
#define CredWrite __MINGW_NAME_AW(CredWrite)
#define CredRead __MINGW_NAME_AW(CredRead)
+
+#define CRED_ENUMERATE_ALL_CREDENTIALS 0x1
+
#define CredEnumerate __MINGW_NAME_AW(CredEnumerate)
#define CredWriteDomainCredentials __MINGW_NAME_AW(CredWriteDomainCredentials)
#define CredReadDomainCredentials __MINGW_NAME_AW(CredReadDomainCredentials)
Relevant doc:
https://learn.microsoft.com/en-us/windows/win32/api/wincred/ns-wincred-credentiala
and
https://learn.microsoft.com/en-us/windows/win32/api/wincred/nf-wincred-credenumeratea#parameters
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public