[1/5] windowscodecs: Add wrapper functions for IWICMetadataQueryReader methods.

Vincent Povirk madewokherd at gmail.com
Mon May 14 09:26:12 CDT 2012


-------------- next part --------------
From 435accf59661a748eac1f518f5e11b9aa01e5fe3 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 11:01:10 -0500
Subject: [PATCH 01/13] windowscodecs: Add wrapper functions for
 IWICMetadataQueryReader methods.

---
 dlls/windowscodecs/proxy.c            |   24 ++++++++++++++++++++++++
 dlls/windowscodecs/windowscodecs.spec |    8 ++++----
 2 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index c1c99ca..aa1f08b 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -277,6 +277,30 @@ HRESULT WINAPI IWICImagingFactory_CreateStream_Proxy_W(IWICImagingFactory *pFact
     return IWICImagingFactory_CreateStream(pFactory, ppIWICStream);
 }
 
+HRESULT WINAPI IWICMetadataQueryReader_GetContainerFormat_Proxy_W(IWICMetadataQueryReader *iface,
+    GUID *pguidContainerFormat)
+{
+    return IWICMetadataQueryReader_GetContainerFormat(iface, pguidContainerFormat);
+}
+
+HRESULT WINAPI IWICMetadataQueryReader_GetLocation_Proxy_W(IWICMetadataQueryReader *iface,
+    UINT cchMaxLength, WCHAR *wzNamespace, UINT *pcchActualLength)
+{
+    return IWICMetadataQueryReader_GetLocation(iface, cchMaxLength, wzNamespace, pcchActualLength);
+}
+
+HRESULT WINAPI IWICMetadataQueryReader_GetMetadataByName_Proxy_W(IWICMetadataQueryReader *iface,
+    LPCWSTR wzName, PROPVARIANT *pvarValue)
+{
+    return IWICMetadataQueryReader_GetMetadataByName(iface, wzName, pvarValue);
+}
+
+HRESULT WINAPI IWICMetadataQueryReader_GetEnumerator_Proxy_W(IWICMetadataQueryReader *iface,
+    IEnumString **ppIEnumString)
+{
+    return IWICMetadataQueryReader_GetEnumerator(iface, ppIEnumString);
+}
+
 HRESULT WINAPI IWICPalette_InitializePredefined_Proxy_W(IWICPalette *iface,
     WICBitmapPaletteType ePaletteType, BOOL fAddTransparentColor)
 {
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 930f2c4..3629bad 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -85,10 +85,10 @@
 @ stdcall IWICImagingFactory_CreateStream_Proxy(ptr ptr) IWICImagingFactory_CreateStream_Proxy_W
 @ stub IWICMetadataBlockReader_GetCount_Proxy
 @ stub IWICMetadataBlockReader_GetReaderByIndex_Proxy
-@ stub IWICMetadataQueryReader_GetContainerFormat_Proxy
-@ stub IWICMetadataQueryReader_GetEnumerator_Proxy
-@ stub IWICMetadataQueryReader_GetLocation_Proxy
-@ stub IWICMetadataQueryReader_GetMetadataByName_Proxy
+@ stdcall IWICMetadataQueryReader_GetContainerFormat_Proxy(ptr ptr) IWICMetadataQueryReader_GetContainerFormat_Proxy_W
+@ stdcall IWICMetadataQueryReader_GetEnumerator_Proxy(ptr ptr) IWICMetadataQueryReader_GetEnumerator_Proxy_W
+@ stdcall IWICMetadataQueryReader_GetLocation_Proxy(ptr long ptr ptr) IWICMetadataQueryReader_GetLocation_Proxy_W
+@ stdcall IWICMetadataQueryReader_GetMetadataByName_Proxy(ptr wstr ptr) IWICMetadataQueryReader_GetMetadataByName_Proxy_W
 @ stub IWICMetadataQueryWriter_RemoveMetadataByName_Proxy
 @ stub IWICMetadataQueryWriter_SetMetadataByName_Proxy
 @ stdcall IWICPalette_GetColorCount_Proxy(ptr ptr) IWICPalette_GetColorCount_Proxy_W
-- 
1.7.9.5


More information about the wine-patches mailing list