mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
shell32/tests: Add verification of known folders definition attributes.
This commit is contained in:
parent
183bc5006d
commit
20cd9f631b
1 changed files with 164 additions and 56 deletions
|
@ -890,8 +890,8 @@ if (0) { /* crashes */
|
|||
/* Standard CSIDL values (and their flags) uses only two less-significant bytes */
|
||||
#define NO_CSIDL 0x10000
|
||||
#define CSIDL_TODO_WINE 0x20000
|
||||
#define KNOWN_FOLDER(id, csidl, name, category, parent, relative_path, parsing_name, attributes) \
|
||||
{ &id, # id, csidl, # csidl, name, category, &parent, # parent, relative_path, parsing_name, attributes, __LINE__ }
|
||||
#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, definitionFlags, __LINE__ }
|
||||
|
||||
/* non-published known folders test */
|
||||
static const GUID _FOLDERID_CryptoKeys = {0xB88F4DAA, 0xE7BD, 0x49A9, {0xB7, 0x4D, 0x02, 0x88, 0x5A, 0x5D, 0xC7, 0x65} };
|
||||
|
@ -911,6 +911,7 @@ struct knownFolderDef {
|
|||
const char *sRelativePath;
|
||||
const char *sParsingName;
|
||||
const DWORD attributes;
|
||||
const KF_DEFINITION_FLAGS definitionFlags;
|
||||
const int line;
|
||||
};
|
||||
|
||||
|
@ -932,6 +933,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_AdminTools,
|
||||
CSIDL_ADMINTOOLS,
|
||||
|
@ -940,7 +942,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Programs,
|
||||
"Administrative Tools",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_AppUpdates,
|
||||
NO_CSIDL,
|
||||
"AppUpdatesFolder",
|
||||
|
@ -949,6 +952,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_CDBurning,
|
||||
CSIDL_CDBURN_AREA,
|
||||
|
@ -957,7 +961,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows\\Burn\\Burn",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_LOCAL_REDIRECT_ONLY),
|
||||
KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms,
|
||||
NO_CSIDL,
|
||||
"ChangeRemoveProgramsFolder",
|
||||
|
@ -966,6 +971,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_CommonAdminTools,
|
||||
CSIDL_COMMON_ADMINTOOLS,
|
||||
|
@ -974,13 +980,15 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_CommonPrograms,
|
||||
"Administrative Tools",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_CommonOEMLinks,
|
||||
CSIDL_COMMON_OEM_LINKS,"OEM Links",
|
||||
KF_CATEGORY_COMMON,
|
||||
FOLDERID_ProgramData,
|
||||
"OEM Links",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_CommonPrograms,
|
||||
CSIDL_COMMON_PROGRAMS,
|
||||
|
@ -989,7 +997,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_CommonStartMenu,
|
||||
"Programs",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartMenu,
|
||||
CSIDL_COMMON_STARTMENU,
|
||||
"Common Start Menu",
|
||||
|
@ -997,7 +1006,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramData,
|
||||
"Microsoft\\Windows\\Start Menu",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartup,
|
||||
CSIDL_COMMON_STARTUP,
|
||||
"Common Startup",
|
||||
|
@ -1005,7 +1015,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_CommonPrograms,
|
||||
"StartUp",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_CommonTemplates,
|
||||
CSIDL_COMMON_TEMPLATES,
|
||||
"Common Templates",
|
||||
|
@ -1013,6 +1024,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramData,
|
||||
"Microsoft\\Windows\\Templates",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ComputerFolder,
|
||||
CSIDL_DRIVES,
|
||||
|
@ -1021,6 +1033,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ConflictFolder,
|
||||
NO_CSIDL,
|
||||
|
@ -1030,6 +1043,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ConnectionsFolder,
|
||||
CSIDL_CONNECTIONS,
|
||||
|
@ -1039,6 +1053,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Contacts,
|
||||
NO_CSIDL,
|
||||
|
@ -1047,7 +1062,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Contacts",
|
||||
"::{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,
|
||||
CSIDL_CONTROLS,
|
||||
"ControlPanelFolder",
|
||||
|
@ -1056,6 +1072,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\0"
|
||||
"::{26EE0668-A00A-44D7-9371-BEB064C98683}\\0\0\0" /* 6.1 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Cookies,
|
||||
CSIDL_COOKIES,
|
||||
|
@ -1064,6 +1081,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Cookies",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Desktop,
|
||||
CSIDL_DESKTOP,
|
||||
|
@ -1072,7 +1090,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Desktop",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_DeviceMetadataStore,
|
||||
NO_CSIDL,
|
||||
"Device Metadata Store",
|
||||
|
@ -1080,6 +1099,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramData,
|
||||
"Microsoft\\Windows\\DeviceMetadataStore",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Documents,
|
||||
CSIDL_MYDOCUMENTS,
|
||||
|
@ -1088,7 +1108,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Documents",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"DocumentsLibrary",
|
||||
|
@ -1096,7 +1117,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Libraries,
|
||||
"Documents.library-ms",
|
||||
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{7b0db17d-9cd2-4a93-9733-46cc89022e7c}\0\0",
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_STREAM),
|
||||
KNOWN_FOLDER(FOLDERID_Downloads,
|
||||
NO_CSIDL,
|
||||
"Downloads",
|
||||
|
@ -1104,7 +1126,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Downloads",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_Favorites,
|
||||
CSIDL_FAVORITES,
|
||||
"Favorites",
|
||||
|
@ -1112,7 +1135,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Favorites",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_ROAMABLE | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_Fonts,
|
||||
CSIDL_FONTS,
|
||||
"Fonts",
|
||||
|
@ -1120,6 +1144,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Windows,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Games,
|
||||
NO_CSIDL,
|
||||
|
@ -1128,6 +1153,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{ED228FDF-9EA8-4870-83b1-96b02CFE0D52}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_GameTasks,
|
||||
NO_CSIDL,
|
||||
|
@ -1136,7 +1162,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows\\GameExplorer",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_LOCAL_REDIRECT_ONLY),
|
||||
KNOWN_FOLDER(FOLDERID_History,
|
||||
CSIDL_HISTORY,
|
||||
"History",
|
||||
|
@ -1144,7 +1171,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows\\History",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_LOCAL_REDIRECT_ONLY),
|
||||
KNOWN_FOLDER(FOLDERID_HomeGroup,
|
||||
NO_CSIDL,
|
||||
"HomeGroupFolder",
|
||||
|
@ -1152,6 +1180,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts,
|
||||
NO_CSIDL,
|
||||
|
@ -1160,7 +1189,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_UserPinned,
|
||||
"ImplicitAppShortcuts",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_InternetCache,
|
||||
CSIDL_INTERNET_CACHE,
|
||||
"Cache",
|
||||
|
@ -1168,7 +1198,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows\\Temporary Internet Files",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_LOCAL_REDIRECT_ONLY),
|
||||
KNOWN_FOLDER(FOLDERID_InternetFolder,
|
||||
CSIDL_INTERNET,
|
||||
"InternetFolder",
|
||||
|
@ -1176,6 +1207,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{871C5380-42A0-1069-A2EA-08002B30309D}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Libraries,
|
||||
NO_CSIDL,
|
||||
|
@ -1184,7 +1216,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Libraries",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_Links,
|
||||
NO_CSIDL,
|
||||
"Links",
|
||||
|
@ -1192,7 +1225,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Links",
|
||||
"::{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,
|
||||
CSIDL_LOCAL_APPDATA,
|
||||
"Local AppData",
|
||||
|
@ -1200,7 +1234,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"AppData\\Local",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_LOCAL_REDIRECT_ONLY | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_LocalAppDataLow,
|
||||
NO_CSIDL,
|
||||
"LocalAppDataLow",
|
||||
|
@ -1208,7 +1243,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"AppData\\LocalLow",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED),
|
||||
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED,
|
||||
KFDF_LOCAL_REDIRECT_ONLY | KFDF_PRECREATE | KFDF_PUBLISHEXPANDEDPATH),
|
||||
KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir,
|
||||
CSIDL_RESOURCES_LOCALIZED,
|
||||
"LocalizedResourcesDir",
|
||||
|
@ -1216,6 +1252,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Music,
|
||||
CSIDL_MYMUSIC,
|
||||
|
@ -1224,7 +1261,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Music",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"MusicLibrary",
|
||||
|
@ -1232,7 +1270,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Libraries,
|
||||
"Music.library-ms",
|
||||
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{2112AB0A-C86A-4ffe-A368-0DE96E47012E}\0\0",
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_STREAM),
|
||||
KNOWN_FOLDER(FOLDERID_NetHood,
|
||||
CSIDL_NETHOOD,
|
||||
"NetHood",
|
||||
|
@ -1240,6 +1279,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Network Shortcuts",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_NetworkFolder,
|
||||
CSIDL_NETWORK,
|
||||
|
@ -1248,6 +1288,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_OriginalImages,
|
||||
NO_CSIDL,
|
||||
|
@ -1256,6 +1297,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows Photo Gallery\\Original Images",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_PhotoAlbums,
|
||||
NO_CSIDL,
|
||||
|
@ -1264,7 +1306,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Pictures,
|
||||
"Slide Shows",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Pictures,
|
||||
CSIDL_MYPICTURES,
|
||||
"My Pictures",
|
||||
|
@ -1272,7 +1315,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Pictures",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"PicturesLibrary",
|
||||
|
@ -1280,7 +1324,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Libraries,
|
||||
"Pictures.library-ms",
|
||||
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{A990AE9F-A03B-4e80-94BC-9912D7504104}\0\0",
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_STREAM),
|
||||
KNOWN_FOLDER(FOLDERID_Playlists,
|
||||
NO_CSIDL,
|
||||
"Playlists",
|
||||
|
@ -1288,7 +1333,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Music,
|
||||
"Playlists",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_PrintersFolder,
|
||||
CSIDL_PRINTERS,
|
||||
"PrintersFolder",
|
||||
|
@ -1296,6 +1342,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{2227A280-3AEA-1069-A2DE-08002B30309D}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_PrintHood,
|
||||
CSIDL_PRINTHOOD,
|
||||
|
@ -1304,6 +1351,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Printer Shortcuts",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Profile,
|
||||
CSIDL_PROFILE,
|
||||
|
@ -1312,6 +1360,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramData,
|
||||
CSIDL_COMMON_APPDATA,
|
||||
|
@ -1320,6 +1369,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFiles,
|
||||
CSIDL_PROGRAM_FILES,
|
||||
|
@ -1328,7 +1378,9 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE
|
||||
),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommon,
|
||||
CSIDL_PROGRAM_FILES_COMMON,
|
||||
"ProgramFilesCommon",
|
||||
|
@ -1336,6 +1388,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86,
|
||||
NO_CSIDL,
|
||||
|
@ -1344,6 +1397,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesX86,
|
||||
CSIDL_PROGRAM_FILESX86,
|
||||
|
@ -1352,7 +1406,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_Programs,
|
||||
CSIDL_PROGRAMS,
|
||||
"Programs",
|
||||
|
@ -1360,7 +1415,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_StartMenu,
|
||||
"Programs",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_Public,
|
||||
NO_CSIDL,
|
||||
"Public",
|
||||
|
@ -1369,7 +1425,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{4336a54d-038b-4685-ab02-99bb52d3fb8b}\0"
|
||||
"(null)\0\0" /* 6.1 */,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDesktop,
|
||||
CSIDL_COMMON_DESKTOPDIRECTORY,
|
||||
"Common Desktop",
|
||||
|
@ -1377,7 +1434,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Desktop",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN),
|
||||
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDocuments,
|
||||
CSIDL_COMMON_DOCUMENTS,
|
||||
"Common Documents",
|
||||
|
@ -1385,7 +1443,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Documents",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDownloads,
|
||||
NO_CSIDL,
|
||||
"CommonDownloads",
|
||||
|
@ -1393,7 +1452,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Downloads",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicGameTasks,
|
||||
NO_CSIDL,
|
||||
"PublicGameTasks",
|
||||
|
@ -1401,7 +1461,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramData,
|
||||
"Microsoft\\Windows\\GameExplorer",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_LOCAL_REDIRECT_ONLY),
|
||||
KNOWN_FOLDER(FOLDERID_PublicLibraries,
|
||||
NO_CSIDL,
|
||||
"PublicLibraries",
|
||||
|
@ -1409,7 +1470,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Libraries",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN),
|
||||
FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_HIDDEN,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicMusic,
|
||||
CSIDL_COMMON_MUSIC,
|
||||
"CommonMusic",
|
||||
|
@ -1417,7 +1479,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Music",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicPictures,
|
||||
CSIDL_COMMON_PICTURES,
|
||||
"CommonPictures",
|
||||
|
@ -1425,7 +1488,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Pictures",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicRingtones,
|
||||
NO_CSIDL,
|
||||
"CommonRingtones",
|
||||
|
@ -1433,7 +1497,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramData,
|
||||
"Microsoft\\Windows\\Ringtones",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_PublicVideos,
|
||||
CSIDL_COMMON_VIDEO,
|
||||
"CommonVideo",
|
||||
|
@ -1441,7 +1506,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Public,
|
||||
"Videos",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_QuickLaunch,
|
||||
NO_CSIDL,
|
||||
"Quick Launch",
|
||||
|
@ -1449,6 +1515,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Internet Explorer\\Quick Launch",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Recent,
|
||||
CSIDL_RECENT,
|
||||
|
@ -1457,7 +1524,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Recent",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_RecordedTVLibrary,
|
||||
NO_CSIDL,
|
||||
"RecordedTVLibrary",
|
||||
|
@ -1465,7 +1533,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_PublicLibraries,
|
||||
"RecordedTV.library-ms",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_STREAM),
|
||||
KNOWN_FOLDER(FOLDERID_RecycleBinFolder,
|
||||
CSIDL_BITBUCKET,
|
||||
"RecycleBinFolder",
|
||||
|
@ -1473,6 +1542,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{645FF040-5081-101B-9F08-00AA002F954E}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_ResourceDir,
|
||||
CSIDL_RESOURCES,
|
||||
|
@ -1481,6 +1551,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Ringtones,
|
||||
NO_CSIDL,
|
||||
|
@ -1489,7 +1560,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows\\Ringtones",
|
||||
NULL,
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_RoamingAppData,
|
||||
CSIDL_APPDATA,
|
||||
"AppData",
|
||||
|
@ -1497,6 +1569,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"AppData\\Roaming",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SampleMusic,
|
||||
NO_CSIDL,
|
||||
|
@ -1505,7 +1578,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_PublicMusic,
|
||||
"Sample Music",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePictures,
|
||||
NO_CSIDL,
|
||||
"SamplePictures",
|
||||
|
@ -1513,7 +1587,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_PublicPictures,
|
||||
"Sample Pictures",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePlaylists,
|
||||
NO_CSIDL,
|
||||
"SamplePlaylists",
|
||||
|
@ -1521,7 +1596,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_PublicMusic,
|
||||
"Sample Playlists",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SampleVideos,
|
||||
NO_CSIDL,
|
||||
"SampleVideos",
|
||||
|
@ -1529,7 +1605,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_PublicVideos,
|
||||
"Sample Videos",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_SavedGames,
|
||||
NO_CSIDL,
|
||||
"SavedGames",
|
||||
|
@ -1537,7 +1614,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Saved Games",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"Searches",
|
||||
|
@ -1545,7 +1623,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Searches",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"CSCFolder",
|
||||
|
@ -1553,6 +1632,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"shell:::{BD7A2E7B-21CB-41b2-A086-B309680C6B7E}\\*\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SearchHome,
|
||||
NO_CSIDL,
|
||||
|
@ -1561,6 +1641,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{9343812e-1c37-4a49-a12e-4b2d810d956b}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SEARCH_MAPI,
|
||||
NO_CSIDL,
|
||||
|
@ -1569,6 +1650,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"shell:::{89D83576-6BD1-4C86-9454-BEB04E94C819}\\*\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SendTo,
|
||||
CSIDL_SENDTO,
|
||||
|
@ -1577,6 +1659,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\SendTo",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarDefaultParts,
|
||||
NO_CSIDL,
|
||||
|
@ -1585,6 +1668,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_ProgramFiles,
|
||||
"Windows Sidebar\\Gadgets",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarParts,
|
||||
NO_CSIDL,
|
||||
|
@ -1593,6 +1677,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Microsoft\\Windows Sidebar\\Gadgets",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_StartMenu,
|
||||
CSIDL_STARTMENU,
|
||||
|
@ -1601,7 +1686,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Start Menu",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_Startup,
|
||||
CSIDL_STARTUP,
|
||||
"Startup",
|
||||
|
@ -1609,7 +1695,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Programs,
|
||||
"StartUp",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_SyncManagerFolder,
|
||||
NO_CSIDL,
|
||||
"SyncCenterFolder",
|
||||
|
@ -1618,6 +1705,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SyncResultsFolder,
|
||||
NO_CSIDL,
|
||||
|
@ -1627,6 +1715,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SyncSetupFolder,
|
||||
NO_CSIDL,
|
||||
|
@ -1636,6 +1725,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
NULL,
|
||||
"::{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 */,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_System,
|
||||
CSIDL_SYSTEM,
|
||||
|
@ -1644,6 +1734,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_SystemX86,
|
||||
CSIDL_SYSTEMX86,
|
||||
|
@ -1652,6 +1743,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Templates,
|
||||
CSIDL_TEMPLATES,
|
||||
|
@ -1660,6 +1752,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_RoamingAppData,
|
||||
"Microsoft\\Windows\\Templates",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_UserPinned,
|
||||
NO_CSIDL,
|
||||
|
@ -1668,7 +1761,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_QuickLaunch,
|
||||
"User Pinned",
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_HIDDEN),
|
||||
FILE_ATTRIBUTE_HIDDEN,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_UserProfiles,
|
||||
NO_CSIDL,
|
||||
"UserProfiles",
|
||||
|
@ -1676,7 +1770,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
FILE_ATTRIBUTE_READONLY),
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
KFDF_PRECREATE),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFiles,
|
||||
NO_CSIDL,
|
||||
"UserProgramFiles",
|
||||
|
@ -1684,6 +1779,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_LocalAppData,
|
||||
"Programs",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon,
|
||||
NO_CSIDL,
|
||||
|
@ -1692,6 +1788,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_UserProgramFiles,
|
||||
"Common",
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_UsersFiles,
|
||||
NO_CSIDL,
|
||||
|
@ -1700,6 +1797,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{59031a47-3f72-44a7-89c5-5595fe6b30ee}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_UsersLibraries,
|
||||
NO_CSIDL,
|
||||
|
@ -1708,6 +1806,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\0\0",
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(FOLDERID_Videos,
|
||||
CSIDL_MYVIDEO,
|
||||
|
@ -1716,7 +1815,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Profile,
|
||||
"Videos",
|
||||
"::{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,
|
||||
NO_CSIDL,
|
||||
"VideosLibrary",
|
||||
|
@ -1724,7 +1824,8 @@ static const struct knownFolderDef known_folders[] = {
|
|||
FOLDERID_Libraries,
|
||||
"Videos.library-ms",
|
||||
"::{031E4825-7B94-4dc3-B131-E946B44C8DD5}\\{491E922F-5643-4af4-A7EB-4E7A138D8174}\0\0",
|
||||
0),
|
||||
0,
|
||||
KFDF_PRECREATE | KFDF_STREAM),
|
||||
KNOWN_FOLDER(FOLDERID_Windows,
|
||||
CSIDL_WINDOWS,
|
||||
"Windows",
|
||||
|
@ -1732,6 +1833,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(_FOLDERID_CredentialManager,
|
||||
NO_CSIDL,
|
||||
|
@ -1740,6 +1842,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(_FOLDERID_CryptoKeys,
|
||||
NO_CSIDL,
|
||||
|
@ -1748,6 +1851,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(_FOLDERID_DpapiKeys,
|
||||
NO_CSIDL,
|
||||
|
@ -1756,6 +1860,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
KNOWN_FOLDER(_FOLDERID_SystemCertificates,
|
||||
NO_CSIDL,
|
||||
|
@ -1764,6 +1869,7 @@ static const struct knownFolderDef known_folders[] = {
|
|||
GUID_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
0,
|
||||
0),
|
||||
{ NULL, NULL, 0, NULL, NULL, 0, 0 }
|
||||
};
|
||||
|
@ -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)(!(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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue