Commit 20cd9f63 authored by Mariusz Pluciński's avatar Mariusz Pluciński Committed by Alexandre Julliard

shell32/tests: Add verification of known folders definition attributes.

parent 183bc500
...@@ -890,8 +890,8 @@ if (0) { /* crashes */ ...@@ -890,8 +890,8 @@ if (0) { /* crashes */
/* Standard CSIDL values (and their flags) uses only two less-significant bytes */ /* Standard CSIDL values (and their flags) uses only two less-significant bytes */
#define NO_CSIDL 0x10000 #define NO_CSIDL 0x10000
#define CSIDL_TODO_WINE 0x20000 #define CSIDL_TODO_WINE 0x20000
#define KNOWN_FOLDER(id, csidl, name, category, parent, relative_path, parsing_name, attributes) \ #define KNOWN_FOLDER(id, csidl, name, category, parent, relative_path, parsing_name, attributes, definitionFlags) \
{ &id, # id, csidl, # csidl, name, category, &parent, # parent, relative_path, parsing_name, attributes, __LINE__ } { &id, # id, csidl, # csidl, name, category, &parent, # parent, relative_path, parsing_name, attributes, definitionFlags, __LINE__ }
/* non-published known folders test */ /* non-published known folders test */
static const GUID _FOLDERID_CryptoKeys = {0xB88F4DAA, 0xE7BD, 0x49A9, {0xB7, 0x4D, 0x02, 0x88, 0x5A, 0x5D, 0xC7, 0x65} }; static const GUID _FOLDERID_CryptoKeys = {0xB88F4DAA, 0xE7BD, 0x49A9, {0xB7, 0x4D, 0x02, 0x88, 0x5A, 0x5D, 0xC7, 0x65} };
...@@ -911,6 +911,7 @@ struct knownFolderDef { ...@@ -911,6 +911,7 @@ struct knownFolderDef {
const char *sRelativePath; const char *sRelativePath;
const char *sParsingName; const char *sParsingName;
const DWORD attributes; const DWORD attributes;
const KF_DEFINITION_FLAGS definitionFlags;
const int line; const int line;
}; };
...@@ -932,6 +933,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -932,6 +933,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{15eae92e-f17a-4431-9f28-805e482dafd4}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{15eae92e-f17a-4431-9f28-805e482dafd4}\0"
"shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{15eae92e-f17a-4431-9f28-805e482dafd4}\0\0" /* 6.1 */, "shell:::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{15eae92e-f17a-4431-9f28-805e482dafd4}\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_AdminTools, KNOWN_FOLDER(FOLDERID_AdminTools,
CSIDL_ADMINTOOLS, CSIDL_ADMINTOOLS,
...@@ -940,7 +942,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -940,7 +942,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Programs, FOLDERID_Programs,
"Administrative Tools", "Administrative Tools",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_AppUpdates, KNOWN_FOLDER(FOLDERID_AppUpdates,
NO_CSIDL, NO_CSIDL,
"AppUpdatesFolder", "AppUpdatesFolder",
...@@ -949,6 +952,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -949,6 +952,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\\::{d450a8a1-9568-45c7-9c0e-b4f9fb4537bd}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\\::{d450a8a1-9568-45c7-9c0e-b4f9fb4537bd}\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\\::{d450a8a1-9568-45c7-9c0e-b4f9fb4537bd}\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\\::{d450a8a1-9568-45c7-9c0e-b4f9fb4537bd}\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_CDBurning, KNOWN_FOLDER(FOLDERID_CDBurning,
CSIDL_CDBURN_AREA, CSIDL_CDBURN_AREA,
...@@ -957,7 +961,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -957,7 +961,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows\\Burn\\Burn", "Microsoft\\Windows\\Burn\\Burn",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_LOCAL_REDIRECT_ONLY),
KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms, KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms,
NO_CSIDL, NO_CSIDL,
"ChangeRemoveProgramsFolder", "ChangeRemoveProgramsFolder",
...@@ -966,6 +971,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -966,6 +971,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7b81be6a-ce2b-4676-a29e-eb907a5126c5}\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_CommonAdminTools, KNOWN_FOLDER(FOLDERID_CommonAdminTools,
CSIDL_COMMON_ADMINTOOLS, CSIDL_COMMON_ADMINTOOLS,
...@@ -974,13 +980,15 @@ static const struct knownFolderDef known_folders[] = { ...@@ -974,13 +980,15 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_CommonPrograms, FOLDERID_CommonPrograms,
"Administrative Tools", "Administrative Tools",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_CommonOEMLinks, KNOWN_FOLDER(FOLDERID_CommonOEMLinks,
CSIDL_COMMON_OEM_LINKS,"OEM Links", CSIDL_COMMON_OEM_LINKS,"OEM Links",
KF_CATEGORY_COMMON, KF_CATEGORY_COMMON,
FOLDERID_ProgramData, FOLDERID_ProgramData,
"OEM Links", "OEM Links",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_CommonPrograms, KNOWN_FOLDER(FOLDERID_CommonPrograms,
CSIDL_COMMON_PROGRAMS, CSIDL_COMMON_PROGRAMS,
...@@ -989,7 +997,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -989,7 +997,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_CommonStartMenu, FOLDERID_CommonStartMenu,
"Programs", "Programs",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_CommonStartMenu, KNOWN_FOLDER(FOLDERID_CommonStartMenu,
CSIDL_COMMON_STARTMENU, CSIDL_COMMON_STARTMENU,
"Common Start Menu", "Common Start Menu",
...@@ -997,7 +1006,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -997,7 +1006,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramData, FOLDERID_ProgramData,
"Microsoft\\Windows\\Start Menu", "Microsoft\\Windows\\Start Menu",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_CommonStartup, KNOWN_FOLDER(FOLDERID_CommonStartup,
CSIDL_COMMON_STARTUP, CSIDL_COMMON_STARTUP,
"Common Startup", "Common Startup",
...@@ -1005,7 +1015,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1005,7 +1015,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_CommonPrograms, FOLDERID_CommonPrograms,
"StartUp", "StartUp",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_CommonTemplates, KNOWN_FOLDER(FOLDERID_CommonTemplates,
CSIDL_COMMON_TEMPLATES, CSIDL_COMMON_TEMPLATES,
"Common Templates", "Common Templates",
...@@ -1013,6 +1024,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1013,6 +1024,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramData, FOLDERID_ProgramData,
"Microsoft\\Windows\\Templates", "Microsoft\\Windows\\Templates",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ComputerFolder, KNOWN_FOLDER(FOLDERID_ComputerFolder,
CSIDL_DRIVES, CSIDL_DRIVES,
...@@ -1021,6 +1033,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1021,6 +1033,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\0\0", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ConflictFolder, KNOWN_FOLDER(FOLDERID_ConflictFolder,
NO_CSIDL, NO_CSIDL,
...@@ -1030,6 +1043,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1030,6 +1043,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{E413D040-6788-4C22-957E-175D1C513A34},\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{E413D040-6788-4C22-957E-175D1C513A34},\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{E413D040-6788-4C22-957E-175D1C513A34},\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{E413D040-6788-4C22-957E-175D1C513A34},\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ConnectionsFolder, KNOWN_FOLDER(FOLDERID_ConnectionsFolder,
CSIDL_CONNECTIONS, CSIDL_CONNECTIONS,
...@@ -1039,6 +1053,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1039,6 +1053,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Contacts, KNOWN_FOLDER(FOLDERID_Contacts,
NO_CSIDL, NO_CSIDL,
...@@ -1047,7 +1062,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1047,7 +1062,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Contacts", "Contacts",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{56784854-C6CB-462B-8169-88E350ACB882}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{56784854-C6CB-462B-8169-88E350ACB882}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_ControlPanelFolder, KNOWN_FOLDER(FOLDERID_ControlPanelFolder,
CSIDL_CONTROLS, CSIDL_CONTROLS,
"ControlPanelFolder", "ControlPanelFolder",
...@@ -1056,6 +1072,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1056,6 +1072,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Cookies, KNOWN_FOLDER(FOLDERID_Cookies,
CSIDL_COOKIES, CSIDL_COOKIES,
...@@ -1064,6 +1081,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1064,6 +1081,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Cookies", "Microsoft\\Windows\\Cookies",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Desktop, KNOWN_FOLDER(FOLDERID_Desktop,
CSIDL_DESKTOP, CSIDL_DESKTOP,
...@@ -1072,7 +1090,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1072,7 +1090,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Desktop", "Desktop",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_DeviceMetadataStore, KNOWN_FOLDER(FOLDERID_DeviceMetadataStore,
NO_CSIDL, NO_CSIDL,
"Device Metadata Store", "Device Metadata Store",
...@@ -1080,6 +1099,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1080,6 +1099,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramData, FOLDERID_ProgramData,
"Microsoft\\Windows\\DeviceMetadataStore", "Microsoft\\Windows\\DeviceMetadataStore",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Documents, KNOWN_FOLDER(FOLDERID_Documents,
CSIDL_MYDOCUMENTS, CSIDL_MYDOCUMENTS,
...@@ -1088,7 +1108,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1088,7 +1108,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Documents", "Documents",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{FDD39AD0-238F-46AF-ADB4-6C85480369C7}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{FDD39AD0-238F-46AF-ADB4-6C85480369C7}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_DocumentsLibrary, KNOWN_FOLDER(FOLDERID_DocumentsLibrary,
NO_CSIDL, NO_CSIDL,
"DocumentsLibrary", "DocumentsLibrary",
...@@ -1096,7 +1117,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1096,7 +1117,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Libraries, FOLDERID_Libraries,
"Documents.library-ms", "Documents.library-ms",
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}\0\0", "::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}\0\0",
0), 0,
KFDF_PRECREATE | KFDF_STREAM),
KNOWN_FOLDER(FOLDERID_Downloads, KNOWN_FOLDER(FOLDERID_Downloads,
NO_CSIDL, NO_CSIDL,
"Downloads", "Downloads",
...@@ -1104,7 +1126,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1104,7 +1126,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Downloads", "Downloads",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_Favorites, KNOWN_FOLDER(FOLDERID_Favorites,
CSIDL_FAVORITES, CSIDL_FAVORITES,
"Favorites", "Favorites",
...@@ -1112,7 +1135,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1112,7 +1135,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Favorites", "Favorites",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_Fonts, KNOWN_FOLDER(FOLDERID_Fonts,
CSIDL_FONTS, CSIDL_FONTS,
"Fonts", "Fonts",
...@@ -1120,6 +1144,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1120,6 +1144,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Windows, FOLDERID_Windows,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Games, KNOWN_FOLDER(FOLDERID_Games,
NO_CSIDL, NO_CSIDL,
...@@ -1128,6 +1153,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1128,6 +1153,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{ED228FDF-9EA8-4870-83b1-96b02CFE0D52}\0\0", "::{ED228FDF-9EA8-4870-83b1-96b02CFE0D52}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_GameTasks, KNOWN_FOLDER(FOLDERID_GameTasks,
NO_CSIDL, NO_CSIDL,
...@@ -1136,7 +1162,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1136,7 +1162,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows\\GameExplorer", "Microsoft\\Windows\\GameExplorer",
NULL, NULL,
0), 0,
KFDF_LOCAL_REDIRECT_ONLY),
KNOWN_FOLDER(FOLDERID_History, KNOWN_FOLDER(FOLDERID_History,
CSIDL_HISTORY, CSIDL_HISTORY,
"History", "History",
...@@ -1144,7 +1171,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1144,7 +1171,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows\\History", "Microsoft\\Windows\\History",
NULL, NULL,
0), 0,
KFDF_LOCAL_REDIRECT_ONLY),
KNOWN_FOLDER(FOLDERID_HomeGroup, KNOWN_FOLDER(FOLDERID_HomeGroup,
NO_CSIDL, NO_CSIDL,
"HomeGroupFolder", "HomeGroupFolder",
...@@ -1152,6 +1180,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1152,6 +1180,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\0\0", "::{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts, KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts,
NO_CSIDL, NO_CSIDL,
...@@ -1160,7 +1189,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1160,7 +1189,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_UserPinned, FOLDERID_UserPinned,
"ImplicitAppShortcuts", "ImplicitAppShortcuts",
NULL, NULL,
0), 0,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_InternetCache, KNOWN_FOLDER(FOLDERID_InternetCache,
CSIDL_INTERNET_CACHE, CSIDL_INTERNET_CACHE,
"Cache", "Cache",
...@@ -1168,7 +1198,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1168,7 +1198,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows\\Temporary Internet Files", "Microsoft\\Windows\\Temporary Internet Files",
NULL, NULL,
0), 0,
KFDF_LOCAL_REDIRECT_ONLY),
KNOWN_FOLDER(FOLDERID_InternetFolder, KNOWN_FOLDER(FOLDERID_InternetFolder,
CSIDL_INTERNET, CSIDL_INTERNET,
"InternetFolder", "InternetFolder",
...@@ -1176,6 +1207,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1176,6 +1207,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{871C5380-42A0-1069-A2EA-08002B30309D}\0\0", "::{871C5380-42A0-1069-A2EA-08002B30309D}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Libraries, KNOWN_FOLDER(FOLDERID_Libraries,
NO_CSIDL, NO_CSIDL,
...@@ -1184,7 +1216,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1184,7 +1216,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Libraries", "Microsoft\\Windows\\Libraries",
NULL, NULL,
0), 0,
KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_Links, KNOWN_FOLDER(FOLDERID_Links,
NO_CSIDL, NO_CSIDL,
"Links", "Links",
...@@ -1192,7 +1225,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1192,7 +1225,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Links", "Links",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_LocalAppData, KNOWN_FOLDER(FOLDERID_LocalAppData,
CSIDL_LOCAL_APPDATA, CSIDL_LOCAL_APPDATA,
"Local AppData", "Local AppData",
...@@ -1200,7 +1234,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1200,7 +1234,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"AppData\\Local", "AppData\\Local",
NULL, NULL,
0), 0,
KFDF_LOCAL_REDIRECT_ONLY | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_LocalAppDataLow, KNOWN_FOLDER(FOLDERID_LocalAppDataLow,
NO_CSIDL, NO_CSIDL,
"LocalAppDataLow", "LocalAppDataLow",
...@@ -1208,7 +1243,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1208,7 +1243,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"AppData\\LocalLow", "AppData\\LocalLow",
NULL, NULL,
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED), FILE_ATTRIBUTE_NOT_CONTENT_INDEXED,
KFDF_LOCAL_REDIRECT_ONLY | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir, KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir,
CSIDL_RESOURCES_LOCALIZED, CSIDL_RESOURCES_LOCALIZED,
"LocalizedResourcesDir", "LocalizedResourcesDir",
...@@ -1216,6 +1252,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1216,6 +1252,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Music, KNOWN_FOLDER(FOLDERID_Music,
CSIDL_MYMUSIC, CSIDL_MYMUSIC,
...@@ -1224,7 +1261,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1224,7 +1261,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Music", "Music",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{4BD8D571-6D19-48D3-BE97-422220080E43}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{4BD8D571-6D19-48D3-BE97-422220080E43}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_MusicLibrary, KNOWN_FOLDER(FOLDERID_MusicLibrary,
NO_CSIDL, NO_CSIDL,
"MusicLibrary", "MusicLibrary",
...@@ -1232,7 +1270,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1232,7 +1270,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Libraries, FOLDERID_Libraries,
"Music.library-ms", "Music.library-ms",
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}\0\0", "::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}\0\0",
0), 0,
KFDF_PRECREATE | KFDF_STREAM),
KNOWN_FOLDER(FOLDERID_NetHood, KNOWN_FOLDER(FOLDERID_NetHood,
CSIDL_NETHOOD, CSIDL_NETHOOD,
"NetHood", "NetHood",
...@@ -1240,6 +1279,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1240,6 +1279,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Network Shortcuts", "Microsoft\\Windows\\Network Shortcuts",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_NetworkFolder, KNOWN_FOLDER(FOLDERID_NetworkFolder,
CSIDL_NETWORK, CSIDL_NETWORK,
...@@ -1248,6 +1288,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1248,6 +1288,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\0\0", "::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_OriginalImages, KNOWN_FOLDER(FOLDERID_OriginalImages,
NO_CSIDL, NO_CSIDL,
...@@ -1256,6 +1297,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1256,6 +1297,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows Photo Gallery\\Original Images", "Microsoft\\Windows Photo Gallery\\Original Images",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_PhotoAlbums, KNOWN_FOLDER(FOLDERID_PhotoAlbums,
NO_CSIDL, NO_CSIDL,
...@@ -1264,7 +1306,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1264,7 +1306,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Pictures, FOLDERID_Pictures,
"Slide Shows", "Slide Shows",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
0),
KNOWN_FOLDER(FOLDERID_Pictures, KNOWN_FOLDER(FOLDERID_Pictures,
CSIDL_MYPICTURES, CSIDL_MYPICTURES,
"My Pictures", "My Pictures",
...@@ -1272,7 +1315,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1272,7 +1315,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Pictures", "Pictures",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{33E28130-4E1E-4676-835A-98395C3BC3BB}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{33E28130-4E1E-4676-835A-98395C3BC3BB}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PicturesLibrary, KNOWN_FOLDER(FOLDERID_PicturesLibrary,
NO_CSIDL, NO_CSIDL,
"PicturesLibrary", "PicturesLibrary",
...@@ -1280,7 +1324,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1280,7 +1324,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Libraries, FOLDERID_Libraries,
"Pictures.library-ms", "Pictures.library-ms",
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{A990AE9F-A03B-4e80-94BC-9912D7504104}\0\0", "::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{A990AE9F-A03B-4e80-94BC-9912D7504104}\0\0",
0), 0,
KFDF_PRECREATE | KFDF_STREAM),
KNOWN_FOLDER(FOLDERID_Playlists, KNOWN_FOLDER(FOLDERID_Playlists,
NO_CSIDL, NO_CSIDL,
"Playlists", "Playlists",
...@@ -1288,7 +1333,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1288,7 +1333,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Music, FOLDERID_Music,
"Playlists", "Playlists",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
0),
KNOWN_FOLDER(FOLDERID_PrintersFolder, KNOWN_FOLDER(FOLDERID_PrintersFolder,
CSIDL_PRINTERS, CSIDL_PRINTERS,
"PrintersFolder", "PrintersFolder",
...@@ -1296,6 +1342,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1296,6 +1342,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{2227A280-3AEA-1069-A2DE-08002B30309D}\0\0", "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{2227A280-3AEA-1069-A2DE-08002B30309D}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_PrintHood, KNOWN_FOLDER(FOLDERID_PrintHood,
CSIDL_PRINTHOOD, CSIDL_PRINTHOOD,
...@@ -1304,6 +1351,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1304,6 +1351,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Printer Shortcuts", "Microsoft\\Windows\\Printer Shortcuts",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Profile, KNOWN_FOLDER(FOLDERID_Profile,
CSIDL_PROFILE, CSIDL_PROFILE,
...@@ -1312,6 +1360,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1312,6 +1360,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ProgramData, KNOWN_FOLDER(FOLDERID_ProgramData,
CSIDL_COMMON_APPDATA, CSIDL_COMMON_APPDATA,
...@@ -1320,6 +1369,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1320,6 +1369,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ProgramFiles, KNOWN_FOLDER(FOLDERID_ProgramFiles,
CSIDL_PROGRAM_FILES, CSIDL_PROGRAM_FILES,
...@@ -1328,7 +1378,9 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1328,7 +1378,9 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE
),
KNOWN_FOLDER(FOLDERID_ProgramFilesCommon, KNOWN_FOLDER(FOLDERID_ProgramFilesCommon,
CSIDL_PROGRAM_FILES_COMMON, CSIDL_PROGRAM_FILES_COMMON,
"ProgramFilesCommon", "ProgramFilesCommon",
...@@ -1336,6 +1388,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1336,6 +1388,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86, KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86,
NO_CSIDL, NO_CSIDL,
...@@ -1344,6 +1397,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1344,6 +1397,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ProgramFilesX86, KNOWN_FOLDER(FOLDERID_ProgramFilesX86,
CSIDL_PROGRAM_FILESX86, CSIDL_PROGRAM_FILESX86,
...@@ -1352,7 +1406,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1352,7 +1406,8 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_Programs, KNOWN_FOLDER(FOLDERID_Programs,
CSIDL_PROGRAMS, CSIDL_PROGRAMS,
"Programs", "Programs",
...@@ -1360,7 +1415,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1360,7 +1415,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_StartMenu, FOLDERID_StartMenu,
"Programs", "Programs",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_Public, KNOWN_FOLDER(FOLDERID_Public,
NO_CSIDL, NO_CSIDL,
"Public", "Public",
...@@ -1369,7 +1425,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1369,7 +1425,8 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{4336a54d-038b-4685-ab02-99bb52d3fb8b}\0" "::{4336a54d-038b-4685-ab02-99bb52d3fb8b}\0"
"(null)\0\0" /* 6.1 */, "(null)\0\0" /* 6.1 */,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicDesktop, KNOWN_FOLDER(FOLDERID_PublicDesktop,
CSIDL_COMMON_DESKTOPDIRECTORY, CSIDL_COMMON_DESKTOPDIRECTORY,
"Common Desktop", "Common Desktop",
...@@ -1377,7 +1434,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1377,7 +1434,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Desktop", "Desktop",
NULL, NULL,
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN), FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicDocuments, KNOWN_FOLDER(FOLDERID_PublicDocuments,
CSIDL_COMMON_DOCUMENTS, CSIDL_COMMON_DOCUMENTS,
"Common Documents", "Common Documents",
...@@ -1385,7 +1443,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1385,7 +1443,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Documents", "Documents",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicDownloads, KNOWN_FOLDER(FOLDERID_PublicDownloads,
NO_CSIDL, NO_CSIDL,
"CommonDownloads", "CommonDownloads",
...@@ -1393,7 +1452,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1393,7 +1452,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Downloads", "Downloads",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicGameTasks, KNOWN_FOLDER(FOLDERID_PublicGameTasks,
NO_CSIDL, NO_CSIDL,
"PublicGameTasks", "PublicGameTasks",
...@@ -1401,7 +1461,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1401,7 +1461,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramData, FOLDERID_ProgramData,
"Microsoft\\Windows\\GameExplorer", "Microsoft\\Windows\\GameExplorer",
NULL, NULL,
0), 0,
KFDF_LOCAL_REDIRECT_ONLY),
KNOWN_FOLDER(FOLDERID_PublicLibraries, KNOWN_FOLDER(FOLDERID_PublicLibraries,
NO_CSIDL, NO_CSIDL,
"PublicLibraries", "PublicLibraries",
...@@ -1409,7 +1470,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1409,7 +1470,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Libraries", "Libraries",
NULL, NULL,
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN), FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicMusic, KNOWN_FOLDER(FOLDERID_PublicMusic,
CSIDL_COMMON_MUSIC, CSIDL_COMMON_MUSIC,
"CommonMusic", "CommonMusic",
...@@ -1417,7 +1479,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1417,7 +1479,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Music", "Music",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicPictures, KNOWN_FOLDER(FOLDERID_PublicPictures,
CSIDL_COMMON_PICTURES, CSIDL_COMMON_PICTURES,
"CommonPictures", "CommonPictures",
...@@ -1425,7 +1488,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1425,7 +1488,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Pictures", "Pictures",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicRingtones, KNOWN_FOLDER(FOLDERID_PublicRingtones,
NO_CSIDL, NO_CSIDL,
"CommonRingtones", "CommonRingtones",
...@@ -1433,7 +1497,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1433,7 +1497,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramData, FOLDERID_ProgramData,
"Microsoft\\Windows\\Ringtones", "Microsoft\\Windows\\Ringtones",
NULL, NULL,
0), 0,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_PublicVideos, KNOWN_FOLDER(FOLDERID_PublicVideos,
CSIDL_COMMON_VIDEO, CSIDL_COMMON_VIDEO,
"CommonVideo", "CommonVideo",
...@@ -1441,7 +1506,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1441,7 +1506,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Public, FOLDERID_Public,
"Videos", "Videos",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_QuickLaunch, KNOWN_FOLDER(FOLDERID_QuickLaunch,
NO_CSIDL, NO_CSIDL,
"Quick Launch", "Quick Launch",
...@@ -1449,6 +1515,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1449,6 +1515,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Internet Explorer\\Quick Launch", "Microsoft\\Internet Explorer\\Quick Launch",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Recent, KNOWN_FOLDER(FOLDERID_Recent,
CSIDL_RECENT, CSIDL_RECENT,
...@@ -1457,7 +1524,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1457,7 +1524,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Recent", "Microsoft\\Windows\\Recent",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_RecordedTVLibrary, KNOWN_FOLDER(FOLDERID_RecordedTVLibrary,
NO_CSIDL, NO_CSIDL,
"RecordedTVLibrary", "RecordedTVLibrary",
...@@ -1465,7 +1533,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1465,7 +1533,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_PublicLibraries, FOLDERID_PublicLibraries,
"RecordedTV.library-ms", "RecordedTV.library-ms",
NULL, NULL,
0), 0,
KFDF_PRECREATE | KFDF_STREAM),
KNOWN_FOLDER(FOLDERID_RecycleBinFolder, KNOWN_FOLDER(FOLDERID_RecycleBinFolder,
CSIDL_BITBUCKET, CSIDL_BITBUCKET,
"RecycleBinFolder", "RecycleBinFolder",
...@@ -1473,6 +1542,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1473,6 +1542,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{645FF040-5081-101B-9F08-00AA002F954E}\0\0", "::{645FF040-5081-101B-9F08-00AA002F954E}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_ResourceDir, KNOWN_FOLDER(FOLDERID_ResourceDir,
CSIDL_RESOURCES, CSIDL_RESOURCES,
...@@ -1481,6 +1551,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1481,6 +1551,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Ringtones, KNOWN_FOLDER(FOLDERID_Ringtones,
NO_CSIDL, NO_CSIDL,
...@@ -1489,7 +1560,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1489,7 +1560,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows\\Ringtones", "Microsoft\\Windows\\Ringtones",
NULL, NULL,
0), 0,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_RoamingAppData, KNOWN_FOLDER(FOLDERID_RoamingAppData,
CSIDL_APPDATA, CSIDL_APPDATA,
"AppData", "AppData",
...@@ -1497,6 +1569,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1497,6 +1569,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"AppData\\Roaming", "AppData\\Roaming",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SampleMusic, KNOWN_FOLDER(FOLDERID_SampleMusic,
NO_CSIDL, NO_CSIDL,
...@@ -1505,7 +1578,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1505,7 +1578,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_PublicMusic, FOLDERID_PublicMusic,
"Sample Music", "Sample Music",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_SamplePictures, KNOWN_FOLDER(FOLDERID_SamplePictures,
NO_CSIDL, NO_CSIDL,
"SamplePictures", "SamplePictures",
...@@ -1513,7 +1587,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1513,7 +1587,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_PublicPictures, FOLDERID_PublicPictures,
"Sample Pictures", "Sample Pictures",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_SamplePlaylists, KNOWN_FOLDER(FOLDERID_SamplePlaylists,
NO_CSIDL, NO_CSIDL,
"SamplePlaylists", "SamplePlaylists",
...@@ -1521,7 +1596,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1521,7 +1596,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_PublicMusic, FOLDERID_PublicMusic,
"Sample Playlists", "Sample Playlists",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
0),
KNOWN_FOLDER(FOLDERID_SampleVideos, KNOWN_FOLDER(FOLDERID_SampleVideos,
NO_CSIDL, NO_CSIDL,
"SampleVideos", "SampleVideos",
...@@ -1529,7 +1605,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1529,7 +1605,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_PublicVideos, FOLDERID_PublicVideos,
"Sample Videos", "Sample Videos",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_SavedGames, KNOWN_FOLDER(FOLDERID_SavedGames,
NO_CSIDL, NO_CSIDL,
"SavedGames", "SavedGames",
...@@ -1537,7 +1614,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1537,7 +1614,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Saved Games", "Saved Games",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_SavedSearches, KNOWN_FOLDER(FOLDERID_SavedSearches,
NO_CSIDL, NO_CSIDL,
"Searches", "Searches",
...@@ -1545,7 +1623,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1545,7 +1623,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Searches", "Searches",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{7d1d3a04-debb-4115-95cf-2f29da2920da}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{7d1d3a04-debb-4115-95cf-2f29da2920da}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
KNOWN_FOLDER(FOLDERID_SEARCH_CSC, KNOWN_FOLDER(FOLDERID_SEARCH_CSC,
NO_CSIDL, NO_CSIDL,
"CSCFolder", "CSCFolder",
...@@ -1553,6 +1632,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1553,6 +1632,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"shell:::{BD7A2E7B-21CB-41b2-A086-B309680C6B7E}\\*\0\0", "shell:::{BD7A2E7B-21CB-41b2-A086-B309680C6B7E}\\*\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SearchHome, KNOWN_FOLDER(FOLDERID_SearchHome,
NO_CSIDL, NO_CSIDL,
...@@ -1561,6 +1641,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1561,6 +1641,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{9343812e-1c37-4a49-a12e-4b2d810d956b}\0\0", "::{9343812e-1c37-4a49-a12e-4b2d810d956b}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SEARCH_MAPI, KNOWN_FOLDER(FOLDERID_SEARCH_MAPI,
NO_CSIDL, NO_CSIDL,
...@@ -1569,6 +1650,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1569,6 +1650,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"shell:::{89D83576-6BD1-4C86-9454-BEB04E94C819}\\*\0\0", "shell:::{89D83576-6BD1-4C86-9454-BEB04E94C819}\\*\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SendTo, KNOWN_FOLDER(FOLDERID_SendTo,
CSIDL_SENDTO, CSIDL_SENDTO,
...@@ -1577,6 +1659,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1577,6 +1659,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\SendTo", "Microsoft\\Windows\\SendTo",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SidebarDefaultParts, KNOWN_FOLDER(FOLDERID_SidebarDefaultParts,
NO_CSIDL, NO_CSIDL,
...@@ -1585,6 +1668,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1585,6 +1668,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_ProgramFiles, FOLDERID_ProgramFiles,
"Windows Sidebar\\Gadgets", "Windows Sidebar\\Gadgets",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SidebarParts, KNOWN_FOLDER(FOLDERID_SidebarParts,
NO_CSIDL, NO_CSIDL,
...@@ -1593,6 +1677,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1593,6 +1677,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Microsoft\\Windows Sidebar\\Gadgets", "Microsoft\\Windows Sidebar\\Gadgets",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_StartMenu, KNOWN_FOLDER(FOLDERID_StartMenu,
CSIDL_STARTMENU, CSIDL_STARTMENU,
...@@ -1601,7 +1686,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1601,7 +1686,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Start Menu", "Microsoft\\Windows\\Start Menu",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_Startup, KNOWN_FOLDER(FOLDERID_Startup,
CSIDL_STARTUP, CSIDL_STARTUP,
"Startup", "Startup",
...@@ -1609,7 +1695,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1609,7 +1695,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Programs, FOLDERID_Programs,
"StartUp", "StartUp",
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_SyncManagerFolder, KNOWN_FOLDER(FOLDERID_SyncManagerFolder,
NO_CSIDL, NO_CSIDL,
"SyncCenterFolder", "SyncCenterFolder",
...@@ -1618,6 +1705,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1618,6 +1705,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SyncResultsFolder, KNOWN_FOLDER(FOLDERID_SyncResultsFolder,
NO_CSIDL, NO_CSIDL,
...@@ -1627,6 +1715,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1627,6 +1715,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{BC48B32F-5910-47F5-8570-5074A8A5636A},\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{BC48B32F-5910-47F5-8570-5074A8A5636A},\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{BC48B32F-5910-47F5-8570-5074A8A5636A},\0\0", "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{BC48B32F-5910-47F5-8570-5074A8A5636A},\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SyncSetupFolder, KNOWN_FOLDER(FOLDERID_SyncSetupFolder,
NO_CSIDL, NO_CSIDL,
...@@ -1636,6 +1725,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1636,6 +1725,7 @@ static const struct knownFolderDef known_folders[] = {
NULL, NULL,
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C},\0" "::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C},\0"
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C},\0\0" /* 6.1 */, "::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\\::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF}\\::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C},\0\0" /* 6.1 */,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_System, KNOWN_FOLDER(FOLDERID_System,
CSIDL_SYSTEM, CSIDL_SYSTEM,
...@@ -1644,6 +1734,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1644,6 +1734,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_SystemX86, KNOWN_FOLDER(FOLDERID_SystemX86,
CSIDL_SYSTEMX86, CSIDL_SYSTEMX86,
...@@ -1652,6 +1743,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1652,6 +1743,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Templates, KNOWN_FOLDER(FOLDERID_Templates,
CSIDL_TEMPLATES, CSIDL_TEMPLATES,
...@@ -1660,6 +1752,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1660,6 +1752,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_RoamingAppData, FOLDERID_RoamingAppData,
"Microsoft\\Windows\\Templates", "Microsoft\\Windows\\Templates",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_UserPinned, KNOWN_FOLDER(FOLDERID_UserPinned,
NO_CSIDL, NO_CSIDL,
...@@ -1668,7 +1761,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1668,7 +1761,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_QuickLaunch, FOLDERID_QuickLaunch,
"User Pinned", "User Pinned",
NULL, NULL,
FILE_ATTRIBUTE_HIDDEN), FILE_ATTRIBUTE_HIDDEN,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_UserProfiles, KNOWN_FOLDER(FOLDERID_UserProfiles,
NO_CSIDL, NO_CSIDL,
"UserProfiles", "UserProfiles",
...@@ -1676,7 +1770,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1676,7 +1770,8 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_UserProgramFiles, KNOWN_FOLDER(FOLDERID_UserProgramFiles,
NO_CSIDL, NO_CSIDL,
"UserProgramFiles", "UserProgramFiles",
...@@ -1684,6 +1779,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1684,6 +1779,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_LocalAppData, FOLDERID_LocalAppData,
"Programs", "Programs",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon, KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon,
NO_CSIDL, NO_CSIDL,
...@@ -1692,6 +1788,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1692,6 +1788,7 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_UserProgramFiles, FOLDERID_UserProgramFiles,
"Common", "Common",
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(FOLDERID_UsersFiles, KNOWN_FOLDER(FOLDERID_UsersFiles,
NO_CSIDL, NO_CSIDL,
...@@ -1700,6 +1797,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1700,6 +1797,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_UsersLibraries, KNOWN_FOLDER(FOLDERID_UsersLibraries,
NO_CSIDL, NO_CSIDL,
...@@ -1708,6 +1806,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1708,6 +1806,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\0\0", "::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\0\0",
0,
0), 0),
KNOWN_FOLDER(FOLDERID_Videos, KNOWN_FOLDER(FOLDERID_Videos,
CSIDL_MYVIDEO, CSIDL_MYVIDEO,
...@@ -1716,7 +1815,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1716,7 +1815,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Profile, FOLDERID_Profile,
"Videos", "Videos",
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{18989B1D-99B5-455B-841C-AB7C74E4DDFC}\0\0", "::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\\{18989B1D-99B5-455B-841C-AB7C74E4DDFC}\0\0",
FILE_ATTRIBUTE_READONLY), FILE_ATTRIBUTE_READONLY,
KFDF_ROAMABLE | KFDF_PRECREATE),
KNOWN_FOLDER(FOLDERID_VideosLibrary, KNOWN_FOLDER(FOLDERID_VideosLibrary,
NO_CSIDL, NO_CSIDL,
"VideosLibrary", "VideosLibrary",
...@@ -1724,7 +1824,8 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1724,7 +1824,8 @@ static const struct knownFolderDef known_folders[] = {
FOLDERID_Libraries, FOLDERID_Libraries,
"Videos.library-ms", "Videos.library-ms",
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{491E922F-5643-4af4-A7EB-4E7A138D8174}\0\0", "::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{491E922F-5643-4af4-A7EB-4E7A138D8174}\0\0",
0), 0,
KFDF_PRECREATE | KFDF_STREAM),
KNOWN_FOLDER(FOLDERID_Windows, KNOWN_FOLDER(FOLDERID_Windows,
CSIDL_WINDOWS, CSIDL_WINDOWS,
"Windows", "Windows",
...@@ -1732,6 +1833,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1732,6 +1833,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(_FOLDERID_CredentialManager, KNOWN_FOLDER(_FOLDERID_CredentialManager,
NO_CSIDL, NO_CSIDL,
...@@ -1740,6 +1842,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1740,6 +1842,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(_FOLDERID_CryptoKeys, KNOWN_FOLDER(_FOLDERID_CryptoKeys,
NO_CSIDL, NO_CSIDL,
...@@ -1748,6 +1851,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1748,6 +1851,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(_FOLDERID_DpapiKeys, KNOWN_FOLDER(_FOLDERID_DpapiKeys,
NO_CSIDL, NO_CSIDL,
...@@ -1756,6 +1860,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1756,6 +1860,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
KNOWN_FOLDER(_FOLDERID_SystemCertificates, KNOWN_FOLDER(_FOLDERID_SystemCertificates,
NO_CSIDL, NO_CSIDL,
...@@ -1764,6 +1869,7 @@ static const struct knownFolderDef known_folders[] = { ...@@ -1764,6 +1869,7 @@ static const struct knownFolderDef known_folders[] = {
GUID_NULL, GUID_NULL,
NULL, NULL,
NULL, NULL,
0,
0), 0),
{ NULL, NULL, 0, NULL, NULL, 0, 0 } { NULL, NULL, 0, NULL, NULL, 0, 0 }
}; };
...@@ -1864,6 +1970,8 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId ...@@ -1864,6 +1970,8 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
ok_(__FILE__, known_folder->line)(known_folder->attributes == kfd.dwAttributes, "invalid known folder attributes for %s: 0x%08x expected, but 0x%08x retrieved\n", known_folder->sFolderId, known_folder->attributes, kfd.dwAttributes); ok_(__FILE__, known_folder->line)(known_folder->attributes == kfd.dwAttributes, "invalid known folder attributes for %s: 0x%08x expected, but 0x%08x retrieved\n", known_folder->sFolderId, known_folder->attributes, kfd.dwAttributes);
ok_(__FILE__, known_folder->line)(!(kfd.kfdFlags & (~known_folder->definitionFlags)), "invalid known folder flags for %s: 0x%08x expected, but 0x%08x retrieved\n", known_folder->sFolderId, known_folder->definitionFlags, kfd.kfdFlags);
FreeKnownFolderDefinitionFields(&kfd); FreeKnownFolderDefinitionFields(&kfd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment