Add SHCreateDefaultExtractIcon prototype and IDefaultExtractIconInit interface.
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 22 Oct 2007 14:43:01 +0000 (14:43 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 22 Oct 2007 14:43:01 +0000 (14:43 +0000)
IID_IDefaultExtractIconInit is not correct, it has to be fixed later

svn path=/trunk/; revision=29779

reactos/include/psdk/shlobj.h
reactos/include/psdk/shobjidl.idl

index afef125..079be83 100644 (file)
@@ -1394,6 +1394,15 @@ HRESULT WINAPI SHCreateDefaultContextMenu(const DEFCONTEXTMENU *,REFIID,void **p
 typedef HRESULT (CALLBACK * LPFNDFMCALLBACK)(IShellFolder*,HWND,IDataObject*,UINT,WPARAM,LPARAM);
 INT CDefFolderMenu_Create2(LPCITEMIDLIST,HWND,UINT,LPCITEMIDLIST*,IShellFolder*,LPFNDFMCALLBACK,UINT,HKEY *,IContextMenu **);
 
+/****************************************************************************
+ * SHCreateDefaultContextMenu API
+ */
+
+HRESULT WINAPI
+SHCreateDefaultExtractIcon(
+  REFIID riid,
+  void **ppv);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif /* defined(__cplusplus) */
index c5c53d7..8abb442 100644 (file)
@@ -1345,5 +1345,33 @@ interface IContextMenuCB : IUnknown
                 [in] UINT uMsg,
                 [in] WPARAM wParam,
                 [in] LPARAM lParam);
+}
+
+/*****************************************************************************
+ * IDefaultExtractIconInit interface
+ */
 
-}
\ No newline at end of file
+[
+    object,
+    uuid(800AB0B8-F5FA-4e72-8FF3-B1A243B87BD9), /* FIXME: wrong value! */
+    pointer_default(unique)
+]
+interface IDefaultExtractIconInit : IUnknown
+{
+    HRESULT SetDefaultIcon(
+                       [in] LPCWSTR pszFile,
+                       [in] int iIcon);
+    HRESULT SetFlags(
+                       [in] UINT uFlags);
+    HRESULT SetKey(
+                       [in] HKEY hkey);
+    HRESULT SetNormalIcon(
+                       [in] LPCWSTR pszFile,
+                       [in] int iIcon);
+    HRESULT SetOpenIcon(
+                       [in] LPCWSTR pszFile,
+                       [in] int iIcon);
+    HRESULT SetShortcutIcon(
+                       [in] LPCWSTR pszFile,
+                       [in] int iIcon);
+}