It's not supposed to be in the Windows.Foundation namespace [1].

It's supposed to be defined in a separate IDL/header but we can define it here.

[1] 
https://docs.microsoft.com/en-us/windows/win32/api/eventtoken/ns-eventtoken-eventregistrationtoken
---
 mingw-w64-headers/include/windows.foundation.idl | 9 ++++-----
 mingw-w64-headers/include/windows.storage.idl    | 3 +--
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/mingw-w64-headers/include/windows.foundation.idl 
b/mingw-w64-headers/include/windows.foundation.idl
index cfacff0d7..6f7c26d64 100644
--- a/mingw-w64-headers/include/windows.foundation.idl
+++ b/mingw-w64-headers/include/windows.foundation.idl
@@ -12,6 +12,10 @@ import "inspectable.idl";
 import "windowscontracts.idl";
 import "windows.foundation.collections.idl";
 
+typedef struct EventRegistrationToken {
+  UINT64 Value;
+} EventRegistrationToken;
+
 namespace Windows {
   namespace Foundation {
     interface IAsyncInfo;
@@ -20,7 +24,6 @@ namespace Windows {
     interface AsyncActionCompletedHandler; // delegate
     interface TypedEventHandler;           // delegate
     struct    DateTime;
-    struct    EventRegistrationToken;
 
     namespace Collections {
       interface IPropertySet;
@@ -41,10 +44,6 @@ namespace Windows {
       UINT64 UniversalTime;
     } DateTime;
 
-    typedef struct EventRegistrationToken {
-      UINT64 Value;
-    } EventRegistrationToken;
-
     [uuid(00000036-0000-0000-C000-000000000046)]
     interface IAsyncInfo : IInspectable
     {
diff --git a/mingw-w64-headers/include/windows.storage.idl 
b/mingw-w64-headers/include/windows.storage.idl
index dc7057e3d..44566bd1d 100644
--- a/mingw-w64-headers/include/windows.storage.idl
+++ b/mingw-w64-headers/include/windows.storage.idl
@@ -15,7 +15,6 @@ import "windows.foundation.idl";
 namespace Windows {
   namespace Foundation {
     interface TypedEventHandler;
-    //struct EventRegistrationToken;
 
     namespace Collections {
       interface IPropertySet;
@@ -151,7 +150,7 @@ namespace Windows {
       [propget] HRESULT RoamingFolder(IStorageFolder** value);
       [propget] HRESULT TemporaryFolder(IStorageFolder** value);
       // [eventadd] HRESULT DataChanged(/*TypedEventHandler<ApplicationData*, 
IInspectable*>*/IInspectable* handler, EventRegistrationToken* token);
-      /* [eventremove] */ HRESULT 
DataChanged(Windows.Foundation.EventRegistrationToken token);
+      /* [eventremove] */ HRESULT DataChanged(EventRegistrationToken token);
       HRESULT SignalDataChanged();
       HRESULT RoamingStorageQuota(UINT64* value);
     }
-- 
2.29.2



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

Reply via email to