From 5fc539ca199519e9f2594f0f087b1d1efbcc0337 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <nathbap...@gmail.com>
Date: Thu, 3 Oct 2024 08:55:01 +0000
Subject: [PATCH] headers: Add wscapi.h

Required for https://github.com/mozilla/gecko-dev/blob/f0b3dafb55f1e7904847f5dc889f131040789ba6/xpcom/base/nsSystemInfo.cpp#L34

Signed-off-by: Biswapriyo Nath <nathbap...@gmail.com>
---
 mingw-w64-headers/include/wscapi.h | 47 ++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 mingw-w64-headers/include/wscapi.h

diff --git a/mingw-w64-headers/include/wscapi.h b/mingw-w64-headers/include/wscapi.h
new file mode 100644
index 0000000..d52fff4
--- /dev/null
+++ b/mingw-w64-headers/include/wscapi.h
@@ -0,0 +1,47 @@
+/**
+ * This file has no copyright assigned and is placed in the Public Domain.
+ * This file is part of the mingw-w64 runtime package.
+ * No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+#ifndef WSCAPI_H
+#define WSCAPI_H
+
+#include <winapifamily.h>
+
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+
+#if _WIN32_WINNT >= 0x0600
+typedef enum _WSC_SECURITY_PROVIDER {
+    WSC_SECURITY_PROVIDER_FIREWALL = 0x1,
+    WSC_SECURITY_PROVIDER_AUTOUPDATE_SETTINGS = 0x2,
+    WSC_SECURITY_PROVIDER_ANTIVIRUS = 0x4,
+    WSC_SECURITY_PROVIDER_ANTISPYWARE = 0x8,
+    WSC_SECURITY_PROVIDER_INTERNET_SETTINGS = 0x10,
+    WSC_SECURITY_PROVIDER_USER_ACCOUNT_CONTROL = 0x20,
+    WSC_SECURITY_PROVIDER_SERVICE = 0x40,
+    WSC_SECURITY_PROVIDER_NONE = 0,
+    WSC_SECURITY_PROVIDER_ALL = WSC_SECURITY_PROVIDER_FIREWALL | WSC_SECURITY_PROVIDER_AUTOUPDATE_SETTINGS | WSC_SECURITY_PROVIDER_ANTIVIRUS | WSC_SECURITY_PROVIDER_ANTISPYWARE | WSC_SECURITY_PROVIDER_INTERNET_SETTINGS | WSC_SECURITY_PROVIDER_USER_ACCOUNT_CONTROL | WSC_SECURITY_PROVIDER_SERVICE
+} WSC_SECURITY_PROVIDER, *PWSC_SECURITY_PROVIDER;
+
+typedef enum _WSC_SECURITY_PROVIDER_HEALTH {
+    WSC_SECURITY_PROVIDER_HEALTH_GOOD,
+    WSC_SECURITY_PROVIDER_HEALTH_NOTMONITORED,
+    WSC_SECURITY_PROVIDER_HEALTH_POOR,
+    WSC_SECURITY_PROVIDER_HEALTH_SNOOZE
+} WSC_SECURITY_PROVIDER_HEALTH, *PWSC_SECURITY_PROVIDER_HEALTH;
+
+STDAPI WscRegisterForChanges(LPVOID Reserved, PHANDLE phCallbackRegistration, LPTHREAD_START_ROUTINE lpCallbackAddress, PVOID pContext);
+STDAPI WscUnRegisterChanges(HANDLE hRegistrationHandle);
+STDAPI WscRegisterForUserNotifications(void);
+STDAPI WscGetSecurityProviderHealth(DWORD Providers, PWSC_SECURITY_PROVIDER_HEALTH pHealth);
+HRESULT wscShowAMSCN(DWORD InputFlags, PDWORD pdwResultFlags);
+HRESULT wscLaunchAdminMakeDefaultUI(PCWSTR pwszProductName);
+STDAPI WscQueryAntiMalwareUri(void);
+STDAPI WscGetAntiMalwareUri(LPWSTR *ppszUri);
+
+#endif /* _WIN32_WINNT >= 0x0600 */
+
+#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
+
+#endif /* WSCAPI_H */
-- 
2.46.2

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

Reply via email to