[PATCH 1/4] include: Add IMapView interface.

Jactry Zeng jzeng at codeweavers.com
Fri Oct 29 03:52:53 CDT 2021


Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
---
 include/windows.foundation.collections.idl | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl
index b0b9430048b..876e15336a2 100644
--- a/include/windows.foundation.collections.idl
+++ b/include/windows.foundation.collections.idl
@@ -74,6 +74,18 @@ cpp_quote("#endif")
 
         namespace Collections
         {
+            [
+                contract(Windows.Foundation.FoundationContract, 1.0),
+                uuid(e480ce40-a338-4ada-adcf-272272e48cb9)
+            ]
+            interface IMapView<K, V> : IInspectable
+            {
+                HRESULT Lookup([in] K key, [out] V *value);
+                [propget] HRESULT Size([out] unsigned int *size);
+                HRESULT HasKey([in] K key, [out] boolean *found);
+                HRESULT Split([out] IMapView<K, V> **first, [out] IMapView<K, V> **second);
+            }
+
             [
                 contract(Windows.Foundation.FoundationContract, 1.0),
                 uuid(6a79e863-4300-459a-9966-cbb660963ee1)
-- 
2.33.0




More information about the wine-devel mailing list