Austin English : shell32: Add a stub for SHGetSetFolderCustomSettings.

Alexandre Julliard julliard at winehq.org
Fri Jan 18 12:07:36 CST 2013


Module: wine
Branch: master
Commit: 605f2f941e52e2f641ef38eabc0465add4ac6a11
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=605f2f941e52e2f641ef38eabc0465add4ac6a11

Author: Austin English <austinenglish at gmail.com>
Date:   Thu Jan 17 14:34:46 2013 -0800

shell32: Add a stub for SHGetSetFolderCustomSettings.

---

 dlls/shell32/shell32.spec |    2 +-
 dlls/shell32/shlfolder.c  |   11 +++++++++++
 include/shlobj.h          |   23 +++++++++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletions(-)

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..450aba0 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;
+    LPWSTR pszWebViewTemplate;
+    DWORD cchWebViewTemplate;
+    LPWSTR pszWebViewTemplateVersion;
+    LPWSTR pszInfoTip;
+    DWORD cchInfoTip;
+    CLSID *pclsid;
+    DWORD dwFlags;
+    LPWSTR pszIconFile;
+    DWORD cchIconFile;
+    int iIconIndex;
+    LPWSTR 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-cvs mailing list