Skip to content
Snippets Groups Projects
Commit f8fe2744 authored by Sergey Turchanov's avatar Sergey Turchanov Committed by Alexandre Julliard
Browse files

Added some extra CSIDLs.

parent aa23b0bd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment