[8/21] gdiplus: added GdipFindFirstImageItem stub

Evan Stade estade at gmail.com
Tue Jul 31 21:15:33 CDT 2007


Hi,

neither the type ImageItemData nor the function GdipFindFirstImageItem
are declared in microsoft's public headers.  This function is,
however, exported by the dll and the parameter list is documented
online.

 dlls/gdiplus/gdiplus.spec |    2 +-
 dlls/gdiplus/image.c      |   10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index dc7633c..8dd2e2a 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -231,7 +231,7 @@
 @ stub GdipFillRectangles
 @ stub GdipFillRectanglesI
 @ stub GdipFillRegion
-@ stub GdipFindFirstImageItem
+@ stdcall GdipFindFirstImageItem(ptr ptr)
 @ stub GdipFindNextImageItem
 @ stub GdipFlattenPath
 @ stub GdipFlush
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 46b3357..ba5a23e 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -31,6 +31,8 @@ #include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(gdiplus);
 
+typedef void ImageItemData;
+
 GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image)
 {
     if(!image)
@@ -42,6 +44,14 @@ GpStatus WINGDIPAPI GdipDisposeImage(GpI
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipFindFirstImageItem(GpImage *image, ImageItemData* item)
+{
+    if(!image || !item)
+        return InvalidParameter;
+
+    return NotImplemented;
+}
+
 GpStatus WINGDIPAPI GdipGetImageBounds(GpImage *image, GpRectF *srcRect,
     GpUnit *srcUnit)
 {
-- 
1.4.1


More information about the wine-patches mailing list