shell32: add a stub for SHGetSetFolderCustomSettings
Austin English
austinenglish at gmail.com
Thu Jan 17 16:34:46 CST 2013
Fixes http://bugs.winehq.org/show_bug.cgi?id=32718
--
-Austin
-------------- next part --------------
diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index dc09187..790cc9f 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -259,7 +259,7 @@
701 stdcall CDefFolderMenu_Create2(ptr ptr long ptr ptr ptr long ptr ptr)
704 stdcall -noname GUIDFromStringW(wstr ptr)
-
+ 709 stdcall SHGetSetFolderCustomSettings(ptr str long)
714 stdcall @(ptr) SHELL32_714 # PathIsTemporaryW
727 stdcall SHGetImageList(long ptr ptr)
730 stdcall -noname RestartDialogEx(long wstr long long)
diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c
index c4066b9..4d9f036 100644
--- a/dlls/shell32/shlfolder.c
+++ b/dlls/shell32/shlfolder.c
@@ -592,3 +592,14 @@ HRESULT WINAPI SHOpenFolderAndSelectItems( PCIDLIST_ABSOLUTE pidlFolder, UINT ci
FIXME("%p %u %p 0x%x: stub\n", pidlFolder, cidl, apidl, flags);
return E_NOTIMPL;
}
+
+/***********************************************************************
+ * SHGetSetFolderCustomSettings
+ *
+ * Only in XP (up to SP2) and Server 2003
+ */
+HRESULT WINAPI SHGetSetFolderCustomSettings( LPSHFOLDERCUSTOMSETTINGS fcs, LPCSTR path, DWORD flag )
+{
+ FIXME("%p %s 0x%x: stub\n", fcs, path, flag);
+ return E_NOTIMPL;
+}
diff --git a/include/shlobj.h b/include/shlobj.h
index 4502187..8b3cba2 100644
--- a/include/shlobj.h
+++ b/include/shlobj.h
@@ -1430,6 +1430,29 @@ int WINAPI SHCreateDirectoryExW(HWND, LPCWSTR, LPSECURITY_ATTRIBUTES);
#define SHCreateDirectoryEx WINELIB_NAME_AW(SHCreateDirectoryEx)
/****************************************************************************
+* SHGetSetFolderCustomSettings API
+*/
+typedef struct {
+ DWORD dwSize;
+ DWORD dwMask;
+ SHELLVIEWID *pvid;
+ LPSTR pszWebViewTemplate;
+ DWORD cchWebViewTemplate;
+ LPSTR pszWebViewTemplateVersion;
+ LPSTR pszInfoTip;
+ DWORD cchInfoTip;
+ CLSID *pclsid;
+ DWORD dwFlags;
+ LPSTR pszIconFile;
+ DWORD cchIconFile;
+ int iIconIndex;
+ LPSTR pszLogo;
+ DWORD cchLogo;
+} SHFOLDERCUSTOMSETTINGS, *LPSHFOLDERCUSTOMSETTINGS;
+
+HRESULT WINAPI SHGetSetFolderCustomSettings(LPSHFOLDERCUSTOMSETTINGS pfcs, LPCSTR pszPath, DWORD dwReadWrite);
+
+/****************************************************************************
* SHGetSpecialFolderLocation API
*/
HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, int nFolder, LPITEMIDLIST * ppidl);
More information about the wine-patches
mailing list