MIDL turns [eventadd] into a "add_" prefix on the method.
MIDL turns [eventremove] into a "remove_" prefix on the method.
---
mingw-w64-headers/include/windows.storage.h | 23 +++++++++++++++----
mingw-w64-headers/include/windows.storage.idl | 4 ++--
2 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/mingw-w64-headers/include/windows.storage.h
b/mingw-w64-headers/include/windows.storage.h
index 16f5e3ae..df7db329 100644
--- a/mingw-w64-headers/include/windows.storage.h
+++ b/mingw-w64-headers/include/windows.storage.h
@@ -1220,7 +1220,11 @@ namespace ABI {
virtual HRESULT STDMETHODCALLTYPE get_TemporaryFolder(
IStorageFolder **value) = 0;
- virtual HRESULT STDMETHODCALLTYPE DataChanged(
+ virtual HRESULT STDMETHODCALLTYPE add_DataChanged(
+ IInspectable *handler,
+ EventRegistrationToken *token) = 0;
+
+ virtual HRESULT STDMETHODCALLTYPE remove_DataChanged(
EventRegistrationToken token) = 0;
virtual HRESULT STDMETHODCALLTYPE SignalDataChanged(
@@ -1307,7 +1311,12 @@ typedef struct
__x_ABI_CWindows_CStorage_CIApplicationDataVtbl {
__x_ABI_CWindows_CStorage_CIApplicationData *This,
__x_ABI_CWindows_CStorage_CIStorageFolder **value);
- HRESULT (STDMETHODCALLTYPE *DataChanged)(
+ HRESULT (STDMETHODCALLTYPE *add_DataChanged)(
+ __x_ABI_CWindows_CStorage_CIApplicationData *This,
+ IInspectable *handler,
+ EventRegistrationToken *token);
+
+ HRESULT (STDMETHODCALLTYPE *remove_DataChanged)(
__x_ABI_CWindows_CStorage_CIApplicationData *This,
EventRegistrationToken token);
@@ -1345,7 +1354,8 @@ interface __x_ABI_CWindows_CStorage_CIApplicationData {
#define
__x_ABI_CWindows_CStorage_CIApplicationData_get_LocalFolder(This,value)
(This)->lpVtbl->get_LocalFolder(This,value)
#define
__x_ABI_CWindows_CStorage_CIApplicationData_get_RoamingFolder(This,value)
(This)->lpVtbl->get_RoamingFolder(This,value)
#define
__x_ABI_CWindows_CStorage_CIApplicationData_get_TemporaryFolder(This,value)
(This)->lpVtbl->get_TemporaryFolder(This,value)
-#define __x_ABI_CWindows_CStorage_CIApplicationData_DataChanged(This,token)
(This)->lpVtbl->DataChanged(This,token)
+#define
__x_ABI_CWindows_CStorage_CIApplicationData_add_DataChanged(This,handler,token)
(This)->lpVtbl->add_DataChanged(This,handler,token)
+#define
__x_ABI_CWindows_CStorage_CIApplicationData_remove_DataChanged(This,token)
(This)->lpVtbl->remove_DataChanged(This,token)
#define __x_ABI_CWindows_CStorage_CIApplicationData_SignalDataChanged(This)
(This)->lpVtbl->SignalDataChanged(This)
#define
__x_ABI_CWindows_CStorage_CIApplicationData_RoamingStorageQuota(This,value)
(This)->lpVtbl->RoamingStorageQuota(This,value)
#else
@@ -1397,8 +1407,11 @@ static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_get_Roami
static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_get_TemporaryFolder(__x_ABI_CWindows_CStorage_CIApplicationData*
This,__x_ABI_CWindows_CStorage_CIStorageFolder **value) {
return This->lpVtbl->get_TemporaryFolder(This,value);
}
-static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_DataChanged(__x_ABI_CWindows_CStorage_CIApplicationData*
This,EventRegistrationToken token) {
- return This->lpVtbl->DataChanged(This,token);
+static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_add_DataChanged(__x_ABI_CWindows_CStorage_CIApplicationData*
This,IInspectable *handler,EventRegistrationToken *token) {
+ return This->lpVtbl->add_DataChanged(This,handler,token);
+}
+static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_remove_DataChanged(__x_ABI_CWindows_CStorage_CIApplicationData*
This,EventRegistrationToken token) {
+ return This->lpVtbl->remove_DataChanged(This,token);
}
static FORCEINLINE HRESULT
__x_ABI_CWindows_CStorage_CIApplicationData_SignalDataChanged(__x_ABI_CWindows_CStorage_CIApplicationData*
This) {
return This->lpVtbl->SignalDataChanged(This);
diff --git a/mingw-w64-headers/include/windows.storage.idl
b/mingw-w64-headers/include/windows.storage.idl
index e9dac8da..281c69b5 100644
--- a/mingw-w64-headers/include/windows.storage.idl
+++ b/mingw-w64-headers/include/windows.storage.idl
@@ -144,8 +144,8 @@ namespace Windows {
[propget] HRESULT LocalFolder(IStorageFolder** value);
[propget] HRESULT RoamingFolder(IStorageFolder** value);
[propget] HRESULT TemporaryFolder(IStorageFolder** value);
- // [eventadd] HRESULT DataChanged(/*TypedEventHandler<ApplicationData*,
IInspectable*>*/IInspectable* handler, EventRegistrationToken* token);
- /* [eventremove] */ HRESULT DataChanged(EventRegistrationToken token);
+ /* [eventadd] */ HRESULT
add_DataChanged(/*TypedEventHandler<ApplicationData*,
IInspectable*>*/IInspectable* handler, EventRegistrationToken* token);
+ /* [eventremove] */ HRESULT remove_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