[1/5] windowscodecs: Implement WICCreateImagingFactory_Proxy.

Vincent Povirk madewokherd at gmail.com
Tue May 8 13:41:44 CDT 2012


-------------- next part --------------
From f563a9101f3fe52f06d6b29b10c717f7ebcd635a Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 09:43:23 -0500
Subject: [PATCH 01/23] windowscodecs: Implement
 WICCreateImagingFactory_Proxy.

---
 dlls/windowscodecs/Makefile.in        |    1 +
 dlls/windowscodecs/proxy.c            |   45 +++++++++++++++++++++++++++++++++
 dlls/windowscodecs/windowscodecs.spec |    2 +-
 3 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 dlls/windowscodecs/proxy.c

diff --git a/dlls/windowscodecs/Makefile.in b/dlls/windowscodecs/Makefile.in
index bcb7a8a..28b5852 100644
--- a/dlls/windowscodecs/Makefile.in
+++ b/dlls/windowscodecs/Makefile.in
@@ -22,6 +22,7 @@ C_SRCS = \
 	palette.c \
 	pngformat.c \
 	propertybag.c \
+	proxy.c \
 	regsvr.c \
 	stream.c \
 	tgaformat.c \
diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
new file mode 100644
index 0000000..53e39d7
--- /dev/null
+++ b/dlls/windowscodecs/proxy.c
@@ -0,0 +1,45 @@
+/*
+ * Misleadingly named convenience functions for accessing WIC.
+ *
+ * Copyright 2012 Vincent Povirk for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#define COBJMACROS
+#define NONAMELESSUNION
+
+#include "windef.h"
+#include "winbase.h"
+#include "objbase.h"
+#include "wincodec.h"
+
+#include "wincodecs_private.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wincodecs);
+
+HRESULT WINAPI WICCreateImagingFactory_Proxy(UINT SDKVersion, IWICImagingFactory **ppIImagingFactory)
+{
+    TRACE("%x, %p\n", SDKVersion, ppIImagingFactory);
+
+    return ImagingFactory_CreateInstance(NULL, &IID_IWICImagingFactory, (void**)ppIImagingFactory);
+}
+
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 71022cb..fac0f9d7 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -107,7 +107,7 @@
 @ stdcall WICConvertBitmapSource(ptr ptr ptr)
 @ stub WICCreateBitmapFromSection
 @ stub WICCreateColorContext_Proxy
-@ stub WICCreateImagingFactory_Proxy
+@ stdcall WICCreateImagingFactory_Proxy(long ptr)
 @ stub WICGetMetadataContentSize
 @ stub WICMapGuidToShortName
 @ stub WICMapSchemaToName
-- 
1.7.9.5


More information about the wine-patches mailing list