shell32/tests: Add verification of known folders categories.
This commit is contained in:
parent
d471b4d475
commit
07d3786f4e
|
@ -888,8 +888,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) \
|
||||
{ &id, # id, csidl, # csidl, name, __LINE__ }
|
||||
#define KNOWN_FOLDER(id, csidl, name, category) \
|
||||
{ &id, # id, csidl, # csidl, name, category, __LINE__ }
|
||||
|
||||
struct knownFolderDef {
|
||||
const KNOWNFOLDERID *folderId;
|
||||
|
@ -897,111 +897,112 @@ struct knownFolderDef {
|
|||
const int csidl;
|
||||
const char *sCsidl;
|
||||
const char *sName;
|
||||
const KF_CATEGORY category;
|
||||
const int line;
|
||||
};
|
||||
|
||||
static const struct knownFolderDef known_folders[] = {
|
||||
KNOWN_FOLDER(FOLDERID_AddNewPrograms, NO_CSIDL, "AddNewProgramsFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_AdminTools, CSIDL_ADMINTOOLS, "Administrative Tools"),
|
||||
KNOWN_FOLDER(FOLDERID_AppUpdates, NO_CSIDL, "AppUpdatesFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_CDBurning, CSIDL_CDBURN_AREA, "CD Burning"),
|
||||
KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms, NO_CSIDL, "ChangeRemoveProgramsFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonAdminTools, CSIDL_COMMON_ADMINTOOLS, "Common Administrative Tools"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonOEMLinks, CSIDL_COMMON_OEM_LINKS, "OEM Links"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonPrograms, CSIDL_COMMON_PROGRAMS, "Common Programs"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartMenu, CSIDL_COMMON_STARTMENU, "Common Start Menu"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartup, CSIDL_COMMON_STARTUP, "Common Startup"),
|
||||
KNOWN_FOLDER(FOLDERID_CommonTemplates, CSIDL_COMMON_TEMPLATES, "Common Templates"),
|
||||
KNOWN_FOLDER(FOLDERID_ComputerFolder, CSIDL_DRIVES, "MyComputerFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_ConflictFolder, NO_CSIDL, "ConflictFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_ConnectionsFolder, CSIDL_CONNECTIONS, "ConnectionsFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_Contacts, NO_CSIDL, "Contacts"),
|
||||
KNOWN_FOLDER(FOLDERID_ControlPanelFolder, CSIDL_CONTROLS, "ControlPanelFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_Cookies, CSIDL_COOKIES, "Cookies"),
|
||||
KNOWN_FOLDER(FOLDERID_Desktop, CSIDL_DESKTOP, "Desktop"),
|
||||
KNOWN_FOLDER(FOLDERID_DeviceMetadataStore, NO_CSIDL, "Device Metadata Store"),
|
||||
KNOWN_FOLDER(FOLDERID_Documents, CSIDL_MYDOCUMENTS, "Personal"),
|
||||
KNOWN_FOLDER(FOLDERID_DocumentsLibrary, NO_CSIDL, "DocumentsLibrary"),
|
||||
KNOWN_FOLDER(FOLDERID_Downloads, NO_CSIDL, "Downloads"),
|
||||
KNOWN_FOLDER(FOLDERID_Favorites, CSIDL_FAVORITES, "Favorites"),
|
||||
KNOWN_FOLDER(FOLDERID_Fonts, CSIDL_FONTS, "Fonts"),
|
||||
KNOWN_FOLDER(FOLDERID_Games, NO_CSIDL, "Games"),
|
||||
KNOWN_FOLDER(FOLDERID_GameTasks, NO_CSIDL, "GameTasks"),
|
||||
KNOWN_FOLDER(FOLDERID_History, CSIDL_HISTORY, "History"),
|
||||
KNOWN_FOLDER(FOLDERID_HomeGroup, NO_CSIDL, "HomeGroupFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts, NO_CSIDL, "ImplicitAppShortcuts"),
|
||||
KNOWN_FOLDER(FOLDERID_InternetCache, CSIDL_INTERNET_CACHE, "Cache"),
|
||||
KNOWN_FOLDER(FOLDERID_InternetFolder, CSIDL_INTERNET, "InternetFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_Libraries, NO_CSIDL, "Libraries"),
|
||||
KNOWN_FOLDER(FOLDERID_Links, NO_CSIDL, "Links"),
|
||||
KNOWN_FOLDER(FOLDERID_LocalAppData, CSIDL_LOCAL_APPDATA, "Local AppData"),
|
||||
KNOWN_FOLDER(FOLDERID_LocalAppDataLow, NO_CSIDL, "LocalAppDataLow"),
|
||||
KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir, CSIDL_RESOURCES_LOCALIZED, "LocalizedResourcesDir"),
|
||||
KNOWN_FOLDER(FOLDERID_Music, CSIDL_MYMUSIC, "My Music"),
|
||||
KNOWN_FOLDER(FOLDERID_MusicLibrary, NO_CSIDL, "MusicLibrary"),
|
||||
KNOWN_FOLDER(FOLDERID_NetHood, CSIDL_NETHOOD, "NetHood"),
|
||||
KNOWN_FOLDER(FOLDERID_NetworkFolder, CSIDL_NETWORK, "NetworkPlacesFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_OriginalImages, NO_CSIDL, "Original Images"),
|
||||
KNOWN_FOLDER(FOLDERID_PhotoAlbums, NO_CSIDL, "PhotoAlbums"),
|
||||
KNOWN_FOLDER(FOLDERID_Pictures, CSIDL_MYPICTURES, "My Pictures"),
|
||||
KNOWN_FOLDER(FOLDERID_PicturesLibrary, NO_CSIDL, "PicturesLibrary"),
|
||||
KNOWN_FOLDER(FOLDERID_Playlists, NO_CSIDL, "Playlists"),
|
||||
KNOWN_FOLDER(FOLDERID_PrintersFolder, CSIDL_PRINTERS, "PrintersFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_PrintHood, CSIDL_PRINTHOOD, "PrintHood"),
|
||||
KNOWN_FOLDER(FOLDERID_Profile, CSIDL_PROFILE, "Profile"),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramData, CSIDL_COMMON_APPDATA, "Common AppData"),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFiles, CSIDL_PROGRAM_FILES, "ProgramFiles"),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommon, CSIDL_PROGRAM_FILES_COMMON, "ProgramFilesCommon"),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86, NO_CSIDL, "ProgramFilesCommonX86"),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesX86, CSIDL_PROGRAM_FILESX86, "ProgramFilesX86"),
|
||||
KNOWN_FOLDER(FOLDERID_Programs, CSIDL_PROGRAMS, "Programs"),
|
||||
KNOWN_FOLDER(FOLDERID_Public, NO_CSIDL, "Public"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDesktop, CSIDL_COMMON_DESKTOPDIRECTORY, "Common Desktop"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDocuments, CSIDL_COMMON_DOCUMENTS, "Common Documents"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDownloads, NO_CSIDL, "CommonDownloads"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicGameTasks, NO_CSIDL, "PublicGameTasks"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicLibraries, NO_CSIDL, "PublicLibraries"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicMusic, CSIDL_COMMON_MUSIC, "CommonMusic"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicPictures, CSIDL_COMMON_PICTURES, "CommonPictures"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicRingtones, NO_CSIDL, "CommonRingtones"),
|
||||
KNOWN_FOLDER(FOLDERID_PublicVideos, CSIDL_COMMON_VIDEO, "CommonVideo"),
|
||||
KNOWN_FOLDER(FOLDERID_QuickLaunch, NO_CSIDL, "Quick Launch"),
|
||||
KNOWN_FOLDER(FOLDERID_Recent, CSIDL_RECENT, "Recent"),
|
||||
KNOWN_FOLDER(FOLDERID_RecordedTVLibrary, NO_CSIDL, "RecordedTVLibrary"),
|
||||
KNOWN_FOLDER(FOLDERID_RecycleBinFolder, CSIDL_BITBUCKET, "RecycleBinFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_ResourceDir, CSIDL_RESOURCES, "ResourceDir"),
|
||||
KNOWN_FOLDER(FOLDERID_Ringtones, NO_CSIDL, "Ringtones"),
|
||||
KNOWN_FOLDER(FOLDERID_RoamingAppData, CSIDL_APPDATA, "AppData"),
|
||||
KNOWN_FOLDER(FOLDERID_SampleMusic, NO_CSIDL, "SampleMusic"),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePictures, NO_CSIDL, "SamplePictures"),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePlaylists, NO_CSIDL, "SamplePlaylists"),
|
||||
KNOWN_FOLDER(FOLDERID_SampleVideos, NO_CSIDL, "SampleVideos"),
|
||||
KNOWN_FOLDER(FOLDERID_SavedGames, NO_CSIDL, "SavedGames"),
|
||||
KNOWN_FOLDER(FOLDERID_SavedSearches, NO_CSIDL, "Searches"),
|
||||
KNOWN_FOLDER(FOLDERID_SEARCH_CSC, NO_CSIDL, "CSCFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_SearchHome, NO_CSIDL, "SearchHomeFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_SEARCH_MAPI, NO_CSIDL, "MAPIFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_SendTo, CSIDL_SENDTO, "SendTo"),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarDefaultParts, NO_CSIDL, "Default Gadgets"),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarParts, NO_CSIDL, "Gadgets"),
|
||||
KNOWN_FOLDER(FOLDERID_StartMenu, CSIDL_STARTMENU, "Start Menu"),
|
||||
KNOWN_FOLDER(FOLDERID_Startup, CSIDL_STARTUP, "Startup"),
|
||||
KNOWN_FOLDER(FOLDERID_SyncManagerFolder, NO_CSIDL, "SyncCenterFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_SyncResultsFolder, NO_CSIDL, "SyncResultsFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_SyncSetupFolder, NO_CSIDL, "SyncSetupFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_System, CSIDL_SYSTEM, "System"),
|
||||
KNOWN_FOLDER(FOLDERID_SystemX86, CSIDL_SYSTEMX86, "SystemX86"),
|
||||
KNOWN_FOLDER(FOLDERID_Templates, CSIDL_TEMPLATES, "Templates"),
|
||||
KNOWN_FOLDER(FOLDERID_UserPinned, NO_CSIDL, "User Pinned"),
|
||||
KNOWN_FOLDER(FOLDERID_UserProfiles, NO_CSIDL, "UserProfiles"),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFiles, NO_CSIDL, "UserProgramFiles"),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon, NO_CSIDL, "UserProgramFilesCommon"),
|
||||
KNOWN_FOLDER(FOLDERID_UsersFiles, NO_CSIDL, "UsersFilesFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_UsersLibraries, NO_CSIDL, "UsersLibrariesFolder"),
|
||||
KNOWN_FOLDER(FOLDERID_Videos, CSIDL_MYVIDEO, "My Video"),
|
||||
KNOWN_FOLDER(FOLDERID_VideosLibrary, NO_CSIDL, "VideosLibrary"),
|
||||
KNOWN_FOLDER(FOLDERID_Windows, CSIDL_WINDOWS, "Windows"),
|
||||
{ NULL, NULL, 0, NULL, NULL, 0 }
|
||||
KNOWN_FOLDER(FOLDERID_AddNewPrograms, NO_CSIDL, "AddNewProgramsFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_AdminTools, CSIDL_ADMINTOOLS, "Administrative Tools", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_AppUpdates, NO_CSIDL, "AppUpdatesFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_CDBurning, CSIDL_CDBURN_AREA, "CD Burning", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_ChangeRemovePrograms, NO_CSIDL, "ChangeRemoveProgramsFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_CommonAdminTools, CSIDL_COMMON_ADMINTOOLS, "Common Administrative Tools", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_CommonOEMLinks, CSIDL_COMMON_OEM_LINKS, "OEM Links", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_CommonPrograms, CSIDL_COMMON_PROGRAMS, "Common Programs", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartMenu, CSIDL_COMMON_STARTMENU, "Common Start Menu", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_CommonStartup, CSIDL_COMMON_STARTUP, "Common Startup", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_CommonTemplates, CSIDL_COMMON_TEMPLATES, "Common Templates", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_ComputerFolder, CSIDL_DRIVES, "MyComputerFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_ConflictFolder, NO_CSIDL, "ConflictFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_ConnectionsFolder, CSIDL_CONNECTIONS, "ConnectionsFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_Contacts, NO_CSIDL, "Contacts", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_ControlPanelFolder, CSIDL_CONTROLS, "ControlPanelFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_Cookies, CSIDL_COOKIES, "Cookies", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Desktop, CSIDL_DESKTOP, "Desktop", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_DeviceMetadataStore, NO_CSIDL, "Device Metadata Store", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_Documents, CSIDL_MYDOCUMENTS, "Personal", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_DocumentsLibrary, NO_CSIDL, "DocumentsLibrary", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Downloads, NO_CSIDL, "Downloads", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Favorites, CSIDL_FAVORITES, "Favorites", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Fonts, CSIDL_FONTS, "Fonts", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_Games, NO_CSIDL, "Games", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_GameTasks, NO_CSIDL, "GameTasks", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_History, CSIDL_HISTORY, "History", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_HomeGroup, NO_CSIDL, "HomeGroupFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_ImplicitAppShortcuts, NO_CSIDL, "ImplicitAppShortcuts", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_InternetCache, CSIDL_INTERNET_CACHE, "Cache", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_InternetFolder, CSIDL_INTERNET, "InternetFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_Libraries, NO_CSIDL, "Libraries", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Links, NO_CSIDL, "Links", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_LocalAppData, CSIDL_LOCAL_APPDATA, "Local AppData", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_LocalAppDataLow, NO_CSIDL, "LocalAppDataLow", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_LocalizedResourcesDir, CSIDL_RESOURCES_LOCALIZED, "LocalizedResourcesDir", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_Music, CSIDL_MYMUSIC, "My Music", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_MusicLibrary, NO_CSIDL, "MusicLibrary", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_NetHood, CSIDL_NETHOOD, "NetHood", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_NetworkFolder, CSIDL_NETWORK, "NetworkPlacesFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_OriginalImages, NO_CSIDL, "Original Images", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_PhotoAlbums, NO_CSIDL, "PhotoAlbums", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Pictures, CSIDL_MYPICTURES, "My Pictures", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_PicturesLibrary, NO_CSIDL, "PicturesLibrary", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Playlists, NO_CSIDL, "Playlists", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_PrintersFolder, CSIDL_PRINTERS, "PrintersFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_PrintHood, CSIDL_PRINTHOOD, "PrintHood", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Profile, CSIDL_PROFILE, "Profile", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramData, CSIDL_COMMON_APPDATA, "Common AppData", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFiles, CSIDL_PROGRAM_FILES, "ProgramFiles", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommon, CSIDL_PROGRAM_FILES_COMMON, "ProgramFilesCommon", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesCommonX86, NO_CSIDL, "ProgramFilesCommonX86", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_ProgramFilesX86, CSIDL_PROGRAM_FILESX86, "ProgramFilesX86", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_Programs, CSIDL_PROGRAMS, "Programs", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Public, NO_CSIDL, "Public", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDesktop, CSIDL_COMMON_DESKTOPDIRECTORY, "Common Desktop", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDocuments, CSIDL_COMMON_DOCUMENTS, "Common Documents", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicDownloads, NO_CSIDL, "CommonDownloads", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicGameTasks, NO_CSIDL, "PublicGameTasks", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicLibraries, NO_CSIDL, "PublicLibraries", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicMusic, CSIDL_COMMON_MUSIC, "CommonMusic", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicPictures, CSIDL_COMMON_PICTURES, "CommonPictures", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicRingtones, NO_CSIDL, "CommonRingtones", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_PublicVideos, CSIDL_COMMON_VIDEO, "CommonVideo", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_QuickLaunch, NO_CSIDL, "Quick Launch", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Recent, CSIDL_RECENT, "Recent", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_RecordedTVLibrary, NO_CSIDL, "RecordedTVLibrary", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_RecycleBinFolder, CSIDL_BITBUCKET, "RecycleBinFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_ResourceDir, CSIDL_RESOURCES, "ResourceDir", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_Ringtones, NO_CSIDL, "Ringtones", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_RoamingAppData, CSIDL_APPDATA, "AppData", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_SampleMusic, NO_CSIDL, "SampleMusic", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePictures, NO_CSIDL, "SamplePictures", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_SamplePlaylists, NO_CSIDL, "SamplePlaylists", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_SampleVideos, NO_CSIDL, "SampleVideos", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_SavedGames, NO_CSIDL, "SavedGames", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_SavedSearches, NO_CSIDL, "Searches", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_SEARCH_CSC, NO_CSIDL, "CSCFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_SearchHome, NO_CSIDL, "SearchHomeFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_SEARCH_MAPI, NO_CSIDL, "MAPIFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_SendTo, CSIDL_SENDTO, "SendTo", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarDefaultParts, NO_CSIDL, "Default Gadgets", KF_CATEGORY_COMMON),
|
||||
KNOWN_FOLDER(FOLDERID_SidebarParts, NO_CSIDL, "Gadgets", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_StartMenu, CSIDL_STARTMENU, "Start Menu", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Startup, CSIDL_STARTUP, "Startup", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_SyncManagerFolder, NO_CSIDL, "SyncCenterFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_SyncResultsFolder, NO_CSIDL, "SyncResultsFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_SyncSetupFolder, NO_CSIDL, "SyncSetupFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_System, CSIDL_SYSTEM, "System", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_SystemX86, CSIDL_SYSTEMX86, "SystemX86", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_Templates, CSIDL_TEMPLATES, "Templates", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_UserPinned, NO_CSIDL, "User Pinned", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_UserProfiles, NO_CSIDL, "UserProfiles", KF_CATEGORY_FIXED),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFiles, NO_CSIDL, "UserProgramFiles", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_UserProgramFilesCommon, NO_CSIDL, "UserProgramFilesCommon", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_UsersFiles, NO_CSIDL, "UsersFilesFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_UsersLibraries, NO_CSIDL, "UsersLibrariesFolder", KF_CATEGORY_VIRTUAL),
|
||||
KNOWN_FOLDER(FOLDERID_Videos, CSIDL_MYVIDEO, "My Video", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_VideosLibrary, NO_CSIDL, "VideosLibrary", KF_CATEGORY_PERUSER),
|
||||
KNOWN_FOLDER(FOLDERID_Windows, CSIDL_WINDOWS, "Windows", KF_CATEGORY_FIXED),
|
||||
{ NULL, NULL, 0, NULL, NULL, 0, 0 }
|
||||
};
|
||||
#undef KNOWN_FOLDER
|
||||
|
||||
|
@ -1047,6 +1048,8 @@ static void check_known_folder(IKnownFolderManager *mgr, KNOWNFOLDERID *folderId
|
|||
todo_wine
|
||||
ok_(__FILE__, known_folder->line)(lstrcmpW(kfd.pszName, sName)==0, "invalid known folder name returned for %s: %s expected, but %s retrieved\n", known_folder->sFolderId, wine_dbgstr_w(sName), wine_dbgstr_w(kfd.pszName));
|
||||
|
||||
ok_(__FILE__, known_folder->line)(kfd.category == known_folder->category, "invalid known folder category for %s: %d expected, but %d retrieved\n", known_folder->sFolderId, known_folder->category, kfd.category);
|
||||
|
||||
FreeKnownFolderDefinitionFields(&kfd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue