From 5e80d7d546b37b99045ac3f9b87ec094a1acd7f3 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Sat, 14 Nov 2009 19:47:23 +0000 Subject: [PATCH] 2009-14-09 Chris Sutcliffe * include/shlobj.h (IDO_SHGIOI_SHARE, IDO_SHGIOI_LINK, IDO_SHGIOI_SLOWFILE, IDO_SHGIOI_DEFAULT, SHGetIconOverlayIndexW, SHGetIconOverlayIndexA, SHGetIconOverlayIndex): Define. Thanks to Tim Kosse for report. --- winsup/w32api/ChangeLog | 8 ++++++++ winsup/w32api/include/shlobj.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 05672200a..c78a6c0be 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,11 @@ +2009-14-09 Chris Sutcliffe + + * include/shlobj.h (IDO_SHGIOI_SHARE, IDO_SHGIOI_LINK, IDO_SHGIOI_SLOWFILE, + IDO_SHGIOI_DEFAULT, SHGetIconOverlayIndexW, SHGetIconOverlayIndexA, + SHGetIconOverlayIndex): Define. + + Thanks to Tim Kosse for report. + 2009-13-09 Chris Sutcliffe * include/wincon.h (AttachConsole): Correct guard. diff --git a/winsup/w32api/include/shlobj.h b/winsup/w32api/include/shlobj.h index 348fe7f6e..4ef065760 100644 --- a/winsup/w32api/include/shlobj.h +++ b/winsup/w32api/include/shlobj.h @@ -1414,6 +1414,10 @@ BOOL WINAPI PathResolve(LPWSTR, LPCWSTR*, UINT); #define PRF_TRYPROGRAMEXTENSIONS (0x0002 | PRF_VERIFYEXISTS) #define PRF_FIRSTDIRDEF 0x0004 #define PRF_DONTFINDLNK 0x0008 +#define IDO_SHGIOI_SHARE 0x0FFFFFFF +#define IDO_SHGIOI_LINK 0x0FFFFFFE +#define IDO_SHGIOI_SLOWFILE 0x0FFFFFFD +#define IDO_SHGIOI_DEFAULT 0x0FFFFFFC #endif void WINAPI SHAddToRecentDocs(UINT,PCVOID); @@ -1440,6 +1444,8 @@ HRESULT WINAPI SHGetFolderPathW(HWND,int,HANDLE,DWORD,LPWSTR); HRESULT WINAPI SHGetFolderLocation(HWND,int,HANDLE,DWORD,LPITEMIDLIST*); #endif #if (_WIN32_WINNT >= 0x0500) +INT WINAPI SHGetIconOverlayIndexW(LPCWSTR pszIconPath, int iIconIndex); +INT WINAPI SHGetIconOverlayIndexA(LPCSTR pszIconPath, int iIconIndex); INT WINAPI SHCreateDirectoryExA(HWND,LPCSTR,LPSECURITY_ATTRIBUTES); INT WINAPI SHCreateDirectoryExW(HWND,LPCWSTR,LPSECURITY_ATTRIBUTES); HRESULT WINAPI SHBindToParent(LPCITEMIDLIST,REFIID,VOID**,LPCITEMIDLIST*); @@ -1484,6 +1490,7 @@ typedef BROWSEINFOW BROWSEINFO,*PBROWSEINFO,*LPBROWSEINFO; #endif #define SHGetFolderPath SHGetFolderPathW #if (_WIN32_WINNT >= 0x0500) +#define SHGetIconOverlayIndex SHGetIconOverlayIndexW #define SHCreateDirectoryEx SHCreateDirectoryExW #endif #if (_WIN32_WINNT >= 0x0501) @@ -1506,6 +1513,7 @@ typedef BROWSEINFOA BROWSEINFO,*PBROWSEINFO,*LPBROWSEINFO; #endif #define SHGetFolderPath SHGetFolderPathA #if (_WIN32_WINNT >= 0x0500) +#define SHGetIconOverlayIndex SHGetIconOverlayIndexA #define SHCreateDirectoryEx SHCreateDirectoryExA #endif #if (_WIN32_WINNT >= 0x0501) -- 2.43.5