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

Vincent Povirk madewokherd at gmail.com
Thu May 10 09:47:08 CDT 2012


-------------- next part --------------
From 3eb95ce5bee17411cda94201d86171c80e945fda Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 10:55:30 -0500
Subject: [PATCH 05/18] windowscodecs: Add wrapper functions for
 IWICComponentInfo methods.

---
 dlls/windowscodecs/proxy.c            |   30 ++++++++++++++++++++++++++++++
 dlls/windowscodecs/windowscodecs.spec |   10 +++++-----
 2 files changed, 35 insertions(+), 5 deletions(-)

diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index ec3ed9b..c1c99ca 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -108,6 +108,36 @@ HRESULT WINAPI IWICColorContext_InitializeFromMemory_Proxy_W(IWICColorContext *i
     return IWICColorContext_InitializeFromMemory(iface, pbBuffer, cbBufferSize);
 }
 
+HRESULT WINAPI IWICComponentInfo_GetCLSID_Proxy_W(IWICComponentInfo *iface,
+    CLSID *pclsid)
+{
+    return IWICComponentInfo_GetCLSID(iface, pclsid);
+}
+
+HRESULT WINAPI IWICComponentInfo_GetAuthor_Proxy_W(IWICComponentInfo *iface,
+    UINT cchAuthor, WCHAR *wzAuthor, UINT *pcchActual)
+{
+    return IWICComponentInfo_GetAuthor(iface, cchAuthor, wzAuthor, pcchActual);
+}
+
+HRESULT WINAPI IWICComponentInfo_GetVersion_Proxy_W(IWICComponentInfo *iface,
+    UINT cchVersion, WCHAR *wzVersion, UINT *pcchActual)
+{
+    return IWICComponentInfo_GetVersion(iface, cchVersion, wzVersion, pcchActual);
+}
+
+HRESULT WINAPI IWICComponentInfo_GetSpecVersion_Proxy_W(IWICComponentInfo *iface,
+    UINT cchSpecVersion, WCHAR *wzSpecVersion, UINT *pcchActual)
+{
+    return IWICComponentInfo_GetSpecVersion(iface, cchSpecVersion, wzSpecVersion, pcchActual);
+}
+
+HRESULT WINAPI IWICComponentInfo_GetFriendlyName_Proxy_W(IWICComponentInfo *iface,
+    UINT cchFriendlyName, WCHAR *wzFriendlyName, UINT *pcchActual)
+{
+    return IWICComponentInfo_GetFriendlyName(iface, cchFriendlyName, wzFriendlyName, pcchActual);
+}
+
 HRESULT WINAPI IWICFastMetadataEncoder_Commit_Proxy_W(IWICFastMetadataEncoder *iface)
 {
     return IWICFastMetadataEncoder_Commit(iface);
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 8636343..930f2c4 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -55,11 +55,11 @@
 @ stdcall IWICColorContext_InitializeFromMemory_Proxy(ptr ptr long) IWICColorContext_InitializeFromMemory_Proxy_W
 @ stub IWICComponentFactory_CreateMetadataWriterFromReader_Proxy
 @ stub IWICComponentFactory_CreateQueryWriterFromBlockWriter_Proxy
-@ stub IWICComponentInfo_GetAuthor_Proxy
-@ stub IWICComponentInfo_GetCLSID_Proxy
-@ stub IWICComponentInfo_GetFriendlyName_Proxy
-@ stub IWICComponentInfo_GetSpecVersion_Proxy
-@ stub IWICComponentInfo_GetVersion_Proxy
+@ stdcall IWICComponentInfo_GetAuthor_Proxy(ptr long ptr ptr) IWICComponentInfo_GetAuthor_Proxy_W
+@ stdcall IWICComponentInfo_GetCLSID_Proxy(ptr ptr) IWICComponentInfo_GetCLSID_Proxy_W
+@ stdcall IWICComponentInfo_GetFriendlyName_Proxy(ptr long ptr ptr) IWICComponentInfo_GetFriendlyName_Proxy_W
+@ stdcall IWICComponentInfo_GetSpecVersion_Proxy(ptr long ptr ptr) IWICComponentInfo_GetSpecVersion_Proxy_W
+@ stdcall IWICComponentInfo_GetVersion_Proxy(ptr long ptr ptr) IWICComponentInfo_GetVersion_Proxy_W
 @ stdcall IWICFastMetadataEncoder_Commit_Proxy(ptr) IWICFastMetadataEncoder_Commit_Proxy_W
 @ stdcall IWICFastMetadataEncoder_GetMetadataQueryWriter_Proxy(ptr ptr) IWICFastMetadataEncoder_GetMetadataQueryWriter_Proxy_W
 @ stub IWICFormatConverter_Initialize_Proxy
-- 
1.7.9.5


More information about the wine-patches mailing list