From 5060d48ee78cd300072c597c44eb76a33f46e613 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Sun, 3 Aug 2003 09:09:07 +0000 Subject: [PATCH] * include/shlobj.h (SHELLFLAGSTATE): Add structure. (SHGetInstanceExplorer): Correct return type. (SHGetFolderPath[AW]: Likewise. Thanks to Magnus Olsen for report. --- winsup/w32api/ChangeLog | 8 ++++++++ winsup/w32api/include/shlobj.h | 23 ++++++++++++++++++++--- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index df56d86ab..c507fa392 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2003-08-01 Danny Smith + + * include/shlobj.h (SHELLFLAGSTATE): Add structure. + (SHGetInstanceExplorer): Correct return type. + (SHGetFolderPath[AW]): Likewise. + Thanks to Magnus Olsen + for report. + 2003-08-01 Danny Smith * lib/test.c: Include winldap.h, ntldap.h, winber.h. diff --git a/winsup/w32api/include/shlobj.h b/winsup/w32api/include/shlobj.h index a8cf13e83..0c09fe7a4 100644 --- a/winsup/w32api/include/shlobj.h +++ b/winsup/w32api/include/shlobj.h @@ -759,6 +759,23 @@ DECLARE_INTERFACE_(IShellIcon,IUnknown) }; typedef IShellIcon *LPSHELLICON; +typedef struct { + BOOL fShowAllObjects : 1; + BOOL fShowExtensions : 1; + BOOL fNoConfirmRecycle : 1; + BOOL fShowSysFiles : 1; + BOOL fShowCompColor : 1; + BOOL fDoubleClickInWebView : 1; + BOOL fDesktopHTML : 1; + BOOL fWin95Classic : 1; + BOOL fDontPrettyPath : 1; + BOOL fShowAttribCol : 1; + BOOL fMapNetDrvBtn : 1; + BOOL fShowInfoTip : 1; + BOOL fHideIcons : 1; + UINT fRestFlags : 3; +} SHELLFLAGSTATE, * LPSHELLFLAGSTATE; + void WINAPI SHAddToRecentDocs(UINT,PCVOID); LPITEMIDLIST WINAPI SHBrowseForFolderA(PBROWSEINFOA); LPITEMIDLIST WINAPI SHBrowseForFolderW(PBROWSEINFOW); @@ -766,7 +783,7 @@ void WINAPI SHChangeNotify(LONG,UINT,PCVOID,PCVOID); HRESULT WINAPI SHGetDataFromIDListA(LPSHELLFOLDER,LPCITEMIDLIST,int,PVOID,int); HRESULT WINAPI SHGetDataFromIDListW(LPSHELLFOLDER,LPCITEMIDLIST,int,PVOID,int); HRESULT WINAPI SHGetDesktopFolder(LPSHELLFOLDER*); -HRESULT WINAPI SHGetInstanceExplorer(LPUNKNOWN); +HRESULT WINAPI SHGetInstanceExplorer(IUnknown **); HRESULT WINAPI SHGetMalloc(LPMALLOC*); BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST,LPSTR); BOOL WINAPI SHGetPathFromIDListW(LPCITEMIDLIST,LPWSTR); @@ -777,8 +794,8 @@ BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,int,BOOL); BOOL WINAPI SHGetSpecialFolderPathW(HWND,LPWSTR,int,BOOL); #endif /* SHGetFolderPath in shfolder.dll on W9x, NT4, also in shell32.dll on W2K */ -BOOL WINAPI SHGetFolderPathA(HWND,int,HANDLE,DWORD,LPSTR); -BOOL WINAPI SHGetFolderPathW(HWND,int,HANDLE,DWORD,LPWSTR); +HRESULT WINAPI SHGetFolderPathA(HWND,int,HANDLE,DWORD,LPSTR); +HRESULT WINAPI SHGetFolderPathW(HWND,int,HANDLE,DWORD,LPWSTR); #if (_WIN32_WINDOWS >= 0x0490) || (_WIN32_WINNT >= 0x0500) /* ME or W2K */ HRESULT WINAPI SHGetFolderLocation(HWND,int,HANDLE,DWORD,LPITEMIDLIST*); #endif