From 28996a95b9c2609cd73f84ca2c7f0f673ebb95b3 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Thu, 20 Aug 2026 14:14:10 +0000
Subject: [PATCH] headers: add notificationactivationcallback.idl

Fixes: https://github.com/mingw-w64/mingw-w64/issues/183
Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-headers/Makefile.am                 |  1 +
 .../notificationactivationcallback.idl        | 33 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 mingw-w64-headers/include/notificationactivationcallback.idl

diff --git a/mingw-w64-headers/Makefile.am b/mingw-w64-headers/Makefile.am
index 30535b88afb0..5d9088deaa27 100644
--- a/mingw-w64-headers/Makefile.am
+++ b/mingw-w64-headers/Makefile.am
@@ -199,6 +199,7 @@ IDL_SRCS = \
   include/netcfgx.idl \
   include/netfw.idl \
   include/netlistmgr.idl \
+  include/notificationactivationcallback.idl \
   include/objectarray.idl \
   include/objidl.idl \
   include/objidlbase.idl \
diff --git a/mingw-w64-headers/include/notificationactivationcallback.idl b/mingw-w64-headers/include/notificationactivationcallback.idl
new file mode 100644
index 000000000000..c919423d2cbf
--- /dev/null
+++ b/mingw-w64-headers/include/notificationactivationcallback.idl
@@ -0,0 +1,33 @@
+/**
+ * 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.
+ */
+
+cpp_quote("#include <winapifamily.h>")
+cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)")
+cpp_quote("#if (NTDDI_VERSION >= NTDDI_WIN10)")
+
+import "oaidl.idl";
+
+typedef struct NOTIFICATION_USER_INPUT_DATA {
+  LPCWSTR Key;
+  LPCWSTR Value;
+} NOTIFICATION_USER_INPUT_DATA;
+
+[
+    object,
+    uuid("53e31837-6600-4a81-9395-75cffe746f94"),
+    pointer_default(ref)
+]
+interface INotificationActivationCallback : IUnknown
+{
+    HRESULT Activate(
+        [in, string] LPCWSTR app_user_model_id,
+        [in, string, unique] LPCWSTR invoked_args,
+        [in, size_is(count), unique] const NOTIFICATION_USER_INPUT_DATA *data,
+        [in] ULONG count);
+}
+
+cpp_quote("#endif /* NTDDI_WIN10 */")
+cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */")
-- 
2.55.0

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

Reply via email to