|
| 1 | +#include <KnownFolders.h> |
| 2 | + |
| 3 | +namespace mo2::python { |
| 4 | + |
| 5 | + struct KnownFolder { |
| 6 | + const char* name; |
| 7 | + KNOWNFOLDERID guid; |
| 8 | + }; |
| 9 | + |
| 10 | + const std::array<KnownFolder, 142> KNOWN_FOLDERS{{ |
| 11 | + {"AccountPictures", FOLDERID_AccountPictures}, |
| 12 | + {"AddNewPrograms", FOLDERID_AddNewPrograms}, |
| 13 | + {"AdminTools", FOLDERID_AdminTools}, |
| 14 | + {"AllAppMods", FOLDERID_AllAppMods}, |
| 15 | + {"AppCaptures", FOLDERID_AppCaptures}, |
| 16 | + {"AppDataDesktop", FOLDERID_AppDataDesktop}, |
| 17 | + {"AppDataDocuments", FOLDERID_AppDataDocuments}, |
| 18 | + {"AppDataFavorites", FOLDERID_AppDataFavorites}, |
| 19 | + {"AppDataProgramData", FOLDERID_AppDataProgramData}, |
| 20 | + {"ApplicationShortcuts", FOLDERID_ApplicationShortcuts}, |
| 21 | + {"AppsFolder", FOLDERID_AppsFolder}, |
| 22 | + {"AppUpdates", FOLDERID_AppUpdates}, |
| 23 | + {"CameraRoll", FOLDERID_CameraRoll}, |
| 24 | + {"CameraRollLibrary", FOLDERID_CameraRollLibrary}, |
| 25 | + {"CDBurning", FOLDERID_CDBurning}, |
| 26 | + {"ChangeRemovePrograms", FOLDERID_ChangeRemovePrograms}, |
| 27 | + {"CommonAdminTools", FOLDERID_CommonAdminTools}, |
| 28 | + {"CommonOEMLinks", FOLDERID_CommonOEMLinks}, |
| 29 | + {"CommonPrograms", FOLDERID_CommonPrograms}, |
| 30 | + {"CommonStartMenu", FOLDERID_CommonStartMenu}, |
| 31 | + {"CommonStartMenuPlaces", FOLDERID_CommonStartMenuPlaces}, |
| 32 | + {"CommonStartup", FOLDERID_CommonStartup}, |
| 33 | + {"CommonTemplates", FOLDERID_CommonTemplates}, |
| 34 | + {"ComputerFolder", FOLDERID_ComputerFolder}, |
| 35 | + {"ConflictFolder", FOLDERID_ConflictFolder}, |
| 36 | + {"ConnectionsFolder", FOLDERID_ConnectionsFolder}, |
| 37 | + {"Contacts", FOLDERID_Contacts}, |
| 38 | + {"ControlPanelFolder", FOLDERID_ControlPanelFolder}, |
| 39 | + {"Cookies", FOLDERID_Cookies}, |
| 40 | + {"CurrentAppMods", FOLDERID_CurrentAppMods}, |
| 41 | + {"Desktop", FOLDERID_Desktop}, |
| 42 | + {"DevelopmentFiles", FOLDERID_DevelopmentFiles}, |
| 43 | + {"Device", FOLDERID_Device}, |
| 44 | + {"DeviceMetadataStore", FOLDERID_DeviceMetadataStore}, |
| 45 | + {"Documents", FOLDERID_Documents}, |
| 46 | + {"DocumentsLibrary", FOLDERID_DocumentsLibrary}, |
| 47 | + {"Downloads", FOLDERID_Downloads}, |
| 48 | + {"Favorites", FOLDERID_Favorites}, |
| 49 | + {"Fonts", FOLDERID_Fonts}, |
| 50 | + {"Games", FOLDERID_Games}, |
| 51 | + {"GameTasks", FOLDERID_GameTasks}, |
| 52 | + {"History", FOLDERID_History}, |
| 53 | + {"HomeGroup", FOLDERID_HomeGroup}, |
| 54 | + {"HomeGroupCurrentUser", FOLDERID_HomeGroupCurrentUser}, |
| 55 | + {"ImplicitAppShortcuts", FOLDERID_ImplicitAppShortcuts}, |
| 56 | + {"InternetCache", FOLDERID_InternetCache}, |
| 57 | + {"InternetFolder", FOLDERID_InternetFolder}, |
| 58 | + {"Libraries", FOLDERID_Libraries}, |
| 59 | + {"Links", FOLDERID_Links}, |
| 60 | + {"LocalAppData", FOLDERID_LocalAppData}, |
| 61 | + {"LocalAppDataLow", FOLDERID_LocalAppDataLow}, |
| 62 | + {"LocalDocuments", FOLDERID_LocalDocuments}, |
| 63 | + {"LocalDownloads", FOLDERID_LocalDownloads}, |
| 64 | + {"LocalizedResourcesDir", FOLDERID_LocalizedResourcesDir}, |
| 65 | + {"LocalMusic", FOLDERID_LocalMusic}, |
| 66 | + {"LocalPictures", FOLDERID_LocalPictures}, |
| 67 | + {"LocalStorage", FOLDERID_LocalStorage}, |
| 68 | + {"LocalVideos", FOLDERID_LocalVideos}, |
| 69 | + {"Music", FOLDERID_Music}, |
| 70 | + {"MusicLibrary", FOLDERID_MusicLibrary}, |
| 71 | + {"NetHood", FOLDERID_NetHood}, |
| 72 | + {"NetworkFolder", FOLDERID_NetworkFolder}, |
| 73 | + {"Objects3D", FOLDERID_Objects3D}, |
| 74 | + {"OneDrive", FOLDERID_OneDrive}, |
| 75 | + {"OriginalImages", FOLDERID_OriginalImages}, |
| 76 | + {"PhotoAlbums", FOLDERID_PhotoAlbums}, |
| 77 | + {"Pictures", FOLDERID_Pictures}, |
| 78 | + {"PicturesLibrary", FOLDERID_PicturesLibrary}, |
| 79 | + {"Playlists", FOLDERID_Playlists}, |
| 80 | + {"PrintersFolder", FOLDERID_PrintersFolder}, |
| 81 | + {"PrintHood", FOLDERID_PrintHood}, |
| 82 | + {"Profile", FOLDERID_Profile}, |
| 83 | + {"ProgramData", FOLDERID_ProgramData}, |
| 84 | + {"ProgramFiles", FOLDERID_ProgramFiles}, |
| 85 | + {"ProgramFilesCommon", FOLDERID_ProgramFilesCommon}, |
| 86 | + {"ProgramFilesCommonX64", FOLDERID_ProgramFilesCommonX64}, |
| 87 | + {"ProgramFilesCommonX86", FOLDERID_ProgramFilesCommonX86}, |
| 88 | + {"ProgramFilesX64", FOLDERID_ProgramFilesX64}, |
| 89 | + {"ProgramFilesX86", FOLDERID_ProgramFilesX86}, |
| 90 | + {"Programs", FOLDERID_Programs}, |
| 91 | + {"Public", FOLDERID_Public}, |
| 92 | + {"PublicDesktop", FOLDERID_PublicDesktop}, |
| 93 | + {"PublicDocuments", FOLDERID_PublicDocuments}, |
| 94 | + {"PublicDownloads", FOLDERID_PublicDownloads}, |
| 95 | + {"PublicGameTasks", FOLDERID_PublicGameTasks}, |
| 96 | + {"PublicLibraries", FOLDERID_PublicLibraries}, |
| 97 | + {"PublicMusic", FOLDERID_PublicMusic}, |
| 98 | + {"PublicPictures", FOLDERID_PublicPictures}, |
| 99 | + {"PublicRingtones", FOLDERID_PublicRingtones}, |
| 100 | + {"PublicUserTiles", FOLDERID_PublicUserTiles}, |
| 101 | + {"PublicVideos", FOLDERID_PublicVideos}, |
| 102 | + {"QuickLaunch", FOLDERID_QuickLaunch}, |
| 103 | + {"Recent", FOLDERID_Recent}, |
| 104 | + {"RecordedCalls", FOLDERID_RecordedCalls}, |
| 105 | + {"RecordedTVLibrary", FOLDERID_RecordedTVLibrary}, |
| 106 | + {"RecycleBinFolder", FOLDERID_RecycleBinFolder}, |
| 107 | + {"ResourceDir", FOLDERID_ResourceDir}, |
| 108 | + {"RetailDemo", FOLDERID_RetailDemo}, |
| 109 | + {"Ringtones", FOLDERID_Ringtones}, |
| 110 | + {"RoamedTileImages", FOLDERID_RoamedTileImages}, |
| 111 | + {"RoamingAppData", FOLDERID_RoamingAppData}, |
| 112 | + {"RoamingTiles", FOLDERID_RoamingTiles}, |
| 113 | + {"SampleMusic", FOLDERID_SampleMusic}, |
| 114 | + {"SamplePictures", FOLDERID_SamplePictures}, |
| 115 | + {"SamplePlaylists", FOLDERID_SamplePlaylists}, |
| 116 | + {"SampleVideos", FOLDERID_SampleVideos}, |
| 117 | + {"SavedGames", FOLDERID_SavedGames}, |
| 118 | + {"SavedPictures", FOLDERID_SavedPictures}, |
| 119 | + {"SavedPicturesLibrary", FOLDERID_SavedPicturesLibrary}, |
| 120 | + {"SavedSearches", FOLDERID_SavedSearches}, |
| 121 | + {"Screenshots", FOLDERID_Screenshots}, |
| 122 | + {"SEARCH_CSC", FOLDERID_SEARCH_CSC}, |
| 123 | + {"SEARCH_MAPI", FOLDERID_SEARCH_MAPI}, |
| 124 | + {"SearchHistory", FOLDERID_SearchHistory}, |
| 125 | + {"SearchHome", FOLDERID_SearchHome}, |
| 126 | + {"SearchTemplates", FOLDERID_SearchTemplates}, |
| 127 | + {"SendTo", FOLDERID_SendTo}, |
| 128 | + {"SidebarDefaultParts", FOLDERID_SidebarDefaultParts}, |
| 129 | + {"SidebarParts", FOLDERID_SidebarParts}, |
| 130 | + {"SkyDrive", FOLDERID_SkyDrive}, |
| 131 | + {"SkyDriveCameraRoll", FOLDERID_SkyDriveCameraRoll}, |
| 132 | + {"SkyDriveDocuments", FOLDERID_SkyDriveDocuments}, |
| 133 | + {"SkyDriveMusic", FOLDERID_SkyDriveMusic}, |
| 134 | + {"SkyDrivePictures", FOLDERID_SkyDrivePictures}, |
| 135 | + {"StartMenu", FOLDERID_StartMenu}, |
| 136 | + {"StartMenuAllPrograms", FOLDERID_StartMenuAllPrograms}, |
| 137 | + {"Startup", FOLDERID_Startup}, |
| 138 | + {"SyncManagerFolder", FOLDERID_SyncManagerFolder}, |
| 139 | + {"SyncResultsFolder", FOLDERID_SyncResultsFolder}, |
| 140 | + {"SyncSetupFolder", FOLDERID_SyncSetupFolder}, |
| 141 | + {"System", FOLDERID_System}, |
| 142 | + {"SystemX86", FOLDERID_SystemX86}, |
| 143 | + {"Templates", FOLDERID_Templates}, |
| 144 | + {"UserPinned", FOLDERID_UserPinned}, |
| 145 | + {"UserProfiles", FOLDERID_UserProfiles}, |
| 146 | + {"UserProgramFiles", FOLDERID_UserProgramFiles}, |
| 147 | + {"UserProgramFilesCommon", FOLDERID_UserProgramFilesCommon}, |
| 148 | + {"UsersFiles", FOLDERID_UsersFiles}, |
| 149 | + {"UsersLibraries", FOLDERID_UsersLibraries}, |
| 150 | + {"Videos", FOLDERID_Videos}, |
| 151 | + {"VideosLibrary", FOLDERID_VideosLibrary}, |
| 152 | + {"Windows", FOLDERID_Windows}, |
| 153 | + }}; |
| 154 | + |
| 155 | +} // namespace mo2::python |
0 commit comments