[PATCH 2/5] include: Add IEnumShellItems interface declaration.

David Hedberg david.hedberg at gmail.com
Fri Jun 11 06:17:16 CDT 2010


---
 dlls/actxprxy/usrmarshal.c |   21 +++++++++++++++++++++
 include/shobjidl.idl       |   30 ++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/dlls/actxprxy/usrmarshal.c b/dlls/actxprxy/usrmarshal.c
index f2aacf8..85e534c 100644
--- a/dlls/actxprxy/usrmarshal.c
+++ b/dlls/actxprxy/usrmarshal.c
@@ -34,6 +34,7 @@
 #include "servprov.h"
 #include "comcat.h"
 #include "docobj.h"
+#include "shobjidl.h"
 
 #include "wine/debug.h"
 
@@ -168,3 +169,23 @@ HRESULT __RPC_STUB IEnumOleDocumentViews_Next_Stub(
     TRACE("(%p)\n", This);
     return IEnumOleDocumentViews_Next( This, cViews, rgpView, pcFetched );
 }
+
+HRESULT CALLBACK IEnumShellItems_Next_Proxy(
+    IEnumShellItems *This,
+    ULONG celt,
+    IShellItem **rgelt,
+    ULONG *pceltFetched)
+{
+    TRACE("(%p)\n", This);
+    return IEnumShellItems_RemoteNext_Proxy( This, celt, rgelt, pceltFetched );
+}
+
+HRESULT __RPC_STUB IEnumShellItems_Next_Stub(
+    IEnumShellItems *This,
+    ULONG celt,
+    IShellItem **rgelt,
+    ULONG *pceltFetched)
+{
+    TRACE("(%p)\n", This);
+    return IEnumShellItems_Next( This, celt, rgelt, pceltFetched );
+}
diff --git a/include/shobjidl.idl b/include/shobjidl.idl
index 413da8f..5e5c9e4 100644
--- a/include/shobjidl.idl
+++ b/include/shobjidl.idl
@@ -395,6 +395,36 @@ typedef enum tagNWMF {
 } NWMF;
 
 /*****************************************************************************
+ * IEnumShellItems interface
+ */
+[
+ object,
+ uuid(70629033-E363-4A28-A567-0DB78006E6D7),
+ pointer_default(unique)
+]
+interface IEnumShellItems : IUnknown
+{
+    [local] HRESULT Next(
+        [in, annotation("__in")] ULONG celt,
+        [out, size_is(celt), length_is(*pceltFetched), annotation("__out_ecount_part(celt, *pceltFetched)")]
+             IShellItem **rgelt,
+        [out, annotation("__out_opt __deref_out_range(0, celt)")] ULONG *pceltFetched);
+
+    [call_as(Next)] HRESULT RemoteNext(
+        [in] ULONG celt,
+        [out, size_is(celt), length_is(*pceltFetched)] IShellItem **rgelt,
+        [out] ULONG *pceltFetched);
+
+    HRESULT Skip(
+        [in] ULONG celt);
+
+    HRESULT Reset();
+
+    HRESULT Clone(
+        [out] IEnumShellItems **ppenum);
+}
+
+/*****************************************************************************
  * FOLDERSETTINGS
  */
 typedef char *LPVIEWSETTINGS;
-- 
1.7.1




More information about the wine-patches mailing list