From 605f2f941e52e2f641ef38eabc0465add4ac6a11 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 17 Jan 2013 14:34:46 -0800 Subject: [PATCH] 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 deletion(-) diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec index dc09187271c..790cc9ff251 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 c4066b94766..4d9f03623ae 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 4502187742a..450aba0fdab 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); -- 2.11.4.GIT