Author: hpoussin
Date: Mon Oct 22 18:43:01 2007
New Revision: 29779
URL:
http://svn.reactos.org/svn/reactos?rev=29779&view=rev
Log:
Add SHCreateDefaultExtractIcon prototype and IDefaultExtractIconInit interface.
IID_IDefaultExtractIconInit is not correct, it has to be fixed later
Modified:
trunk/reactos/include/psdk/shlobj.h
trunk/reactos/include/psdk/shobjidl.idl
Modified: trunk/reactos/include/psdk/shlobj.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/shlobj.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/shlobj.h (original)
+++ trunk/reactos/include/psdk/shlobj.h Mon Oct 22 18:43:01 2007
@@ -1394,6 +1394,15 @@
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) */
Modified: trunk/reactos/include/psdk/shobjidl.idl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/shobjidl.idl?…
==============================================================================
--- trunk/reactos/include/psdk/shobjidl.idl (original)
+++ trunk/reactos/include/psdk/shobjidl.idl Mon Oct 22 18:43:01 2007
@@ -1345,5 +1345,33 @@
[in] UINT uMsg,
[in] WPARAM wParam,
[in] LPARAM lParam);
-
-}
+}
+
+/*****************************************************************************
+ * IDefaultExtractIconInit interface
+ */
+
+[
+ 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);
+}