Added some extra CSIDLs.

This commit is contained in:
Sergey Turchanov 1999-03-10 13:29:37 +00:00 committed by Alexandre Julliard
parent aa23b0bd63
commit f8fe2744ee
2 changed files with 24 additions and 1 deletions

View File

@ -527,6 +527,15 @@ HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDL
case CSIDL_TEMPLATES:
strcpy (buffer,"Templates");
break;
case CSIDL_INTERNET_CACHE:
strcpy (buffer,"Cache");
break;
case CSIDL_HISTORY:
strcpy (buffer,"History");
break;
case CSIDL_COOKIES:
strcpy(buffer,"Cookies");
break;
default:
ERR (shell,"unknown CSIDL 0x%08x\n", nFolder);
tFolder=FT_UNKNOWN;
@ -595,6 +604,15 @@ HRESULT WINAPI SHGetSpecialFolderLocation(HWND hwndOwner, INT nFolder, LPITEMIDL
case CSIDL_TEMPLATES:
strcat (npath,"Templates");
break;
case CSIDL_INTERNET_CACHE:
strcat(npath,"Temporary Internet Files");
break;
case CSIDL_HISTORY:
strcat (npath,"History");
break;
case CSIDL_COOKIES:
strcat (npath,"Cookies");
break;
default:
RegCloseKey(key);
return E_OUTOFMEMORY;

View File

@ -349,6 +349,11 @@ DWORD WINAPI SHFree(LPVOID x);
#define CSIDL_COMMON_DESKTOPDIRECTORY 0x0019
#define CSIDL_APPDATA 0x001a
#define CSIDL_PRINTHOOD 0x001b
#define CSIDL_ALTSTARTUP 0x001d
#define CSIDL_COMMON_ALTSTARTUP 0x001e
#define CSIDL_COMMON_FAVORITES 0x001f
#define CSIDL_INTERNET_CACHE 0x0020
#define CSIDL_COOKIES 0x0021
#define CSIDL_HISTORY 0x0022
#endif /* __WINE_SHELL_H */