known_folders

Enum KnownFolder

Source
#[non_exhaustive]
pub enum KnownFolder {
Show 142 variants AccountPictures, AddNewPrograms, AdminTools, AllAppMods, AppCaptures, AppDataDesktop, AppDataDocuments, AppDataFavorites, AppDataProgramData, AppUpdates, ApplicationShortcuts, AppsFolder, CDBurning, CameraRoll, CameraRollLibrary, ChangeRemovePrograms, CommonAdminTools, CommonOEMLinks, CommonPrograms, CommonStartMenu, CommonStartMenuPlaces, CommonStartup, CommonTemplates, ComputerFolder, ConflictFolder, ConnectionsFolder, Contacts, ControlPanelFolder, Cookies, CurrentAppMods, Desktop, DevelopmentFiles, Device, DeviceMetadataStore, Documents, DocumentsLibrary, Downloads, Favorites, Fonts, GameTasks, Games, History, HomeGroup, HomeGroupCurrentUser, ImplicitAppShortcuts, InternetCache, InternetFolder, Libraries, Links, LocalAppData, LocalAppDataLow, LocalDocuments, LocalDownloads, LocalMusic, LocalPictures, LocalStorage, LocalVideos, LocalizedResourcesDir, Music, MusicLibrary, NetHood, NetworkFolder, Objects3D, OneDrive, OriginalImages, PhotoAlbums, Pictures, PicturesLibrary, Playlists, PrintHood, PrintersFolder, Profile, ProgramData, ProgramFiles, ProgramFilesCommon, ProgramFilesCommonX64, ProgramFilesCommonX86, ProgramFilesX64, ProgramFilesX86, Programs, Public, PublicDesktop, PublicDocuments, PublicDownloads, PublicGameTasks, PublicLibraries, PublicMusic, PublicPictures, PublicRingtones, PublicUserTiles, PublicVideos, QuickLaunch, Recent, RecordedCalls, RecordedTVLibrary, RecycleBinFolder, ResourceDir, RetailDemo, Ringtones, RoamedTileImages, RoamingAppData, RoamingTiles, SEARCH_CSC, SEARCH_MAPI, SampleMusic, SamplePictures, SamplePlaylists, SampleVideos, SavedGames, SavedPictures, SavedPicturesLibrary, SavedSearches, Screenshots, SearchHistory, SearchHome, SearchTemplates, SendTo, SidebarDefaultParts, SidebarParts, SkyDrive, SkyDriveCameraRoll, SkyDriveDocuments, SkyDriveMusic, SkyDrivePictures, StartMenu, StartMenuAllPrograms, Startup, SyncManagerFolder, SyncResultsFolder, SyncSetupFolder, System, SystemX86, Templates, UserPinned, UserProfiles, UserProgramFiles, UserProgramFilesCommon, UsersFiles, UsersLibraries, Videos, VideosLibrary, Windows,
}
Expand description

GUIDs that identify standard folders registered with the system as Known Folders.

These folders are installed with Windows Vista and later operating systems, and a computer will have only folders appropriate to it installed.

For details on the KNOWNFOLDERID constants this enum represents, please refer to the upstream documentation.

§Compatibility Notes

The Known Folders API allows for ISVs to extend the set of Known Folder IDs, but this enum only has support for first-party Known Folder IDs included in [windows_sys].

§Examples

use known_folders::{get_known_folder_path, KnownFolder};

let profile_dir = get_known_folder_path(KnownFolder::Profile);

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccountPictures

Known Folder ID FOLDERID_AccountPictures.

§Upstream Documentation

§

AddNewPrograms

Known Folder ID FOLDERID_AddNewPrograms.

§Upstream Documentation

§

AdminTools

Known Folder ID FOLDERID_AdminTools.

§Upstream Documentation

§

AllAppMods

Known Folder ID FOLDERID_AllAppMods.

§Upstream Documentation

§

AppCaptures

Known Folder ID FOLDERID_AppCaptures.

§Upstream Documentation

§

AppDataDesktop

Known Folder ID FOLDERID_AppDataDesktop.

§Upstream Documentation

§

AppDataDocuments

Known Folder ID FOLDERID_AppDataDocuments.

§Upstream Documentation

§

AppDataFavorites

Known Folder ID FOLDERID_AppDataFavorites.

§Upstream Documentation

§

AppDataProgramData

Known Folder ID FOLDERID_AppDataProgramData.

§Upstream Documentation

§

AppUpdates

Known Folder ID FOLDERID_AppUpdates.

§Upstream Documentation

§

ApplicationShortcuts

Known Folder ID FOLDERID_ApplicationShortcuts.

§Upstream Documentation

§

AppsFolder

Known Folder ID FOLDERID_AppsFolder.

§Upstream Documentation

§

CDBurning

Known Folder ID FOLDERID_CDBurning.

§Upstream Documentation

§

CameraRoll

Known Folder ID FOLDERID_CameraRoll.

§Upstream Documentation

§

CameraRollLibrary

Known Folder ID FOLDERID_CameraRollLibrary.

§Upstream Documentation

§

ChangeRemovePrograms

Known Folder ID FOLDERID_ChangeRemovePrograms.

§Upstream Documentation

§

CommonAdminTools

Known Folder ID FOLDERID_CommonAdminTools.

§Upstream Documentation

Known Folder ID FOLDERID_CommonOEMLinks.

§Upstream Documentation

§

CommonPrograms

Known Folder ID FOLDERID_CommonPrograms.

§Upstream Documentation

§

CommonStartMenu

Known Folder ID FOLDERID_CommonStartMenu.

§Upstream Documentation

§

CommonStartMenuPlaces

Known Folder ID FOLDERID_CommonStartMenuPlaces.

§Upstream Documentation

§

CommonStartup

Known Folder ID FOLDERID_CommonStartup.

§Upstream Documentation

§

CommonTemplates

Known Folder ID FOLDERID_CommonTemplates.

§Upstream Documentation

§

ComputerFolder

Known Folder ID FOLDERID_ComputerFolder.

§Upstream Documentation

§

ConflictFolder

Known Folder ID FOLDERID_ConflictFolder.

§Upstream Documentation

§

ConnectionsFolder

Known Folder ID FOLDERID_ConnectionsFolder.

§Upstream Documentation

§

Contacts

Known Folder ID FOLDERID_Contacts.

§Upstream Documentation

§

ControlPanelFolder

Known Folder ID FOLDERID_ControlPanelFolder.

§Upstream Documentation

§

Cookies

Known Folder ID FOLDERID_Cookies.

§Upstream Documentation

§

CurrentAppMods

Known Folder ID FOLDERID_CurrentAppMods.

§Upstream Documentation

§

Desktop

Known Folder ID FOLDERID_Desktop.

§Upstream Documentation

§

DevelopmentFiles

Known Folder ID FOLDERID_DevelopmentFiles.

§Upstream Documentation

§

Device

Known Folder ID FOLDERID_Device.

§Upstream Documentation

§

DeviceMetadataStore

Known Folder ID FOLDERID_DeviceMetadataStore.

§Upstream Documentation

§

Documents

Known Folder ID FOLDERID_Documents.

§Upstream Documentation

§

DocumentsLibrary

Known Folder ID FOLDERID_DocumentsLibrary.

§Upstream Documentation

§

Downloads

Known Folder ID FOLDERID_Downloads.

§Upstream Documentation

§

Favorites

Known Folder ID FOLDERID_Favorites.

§Upstream Documentation

§

Fonts

Known Folder ID FOLDERID_Fonts.

§Upstream Documentation

§

GameTasks

Known Folder ID FOLDERID_GameTasks.

§Upstream Documentation

§

Games

Known Folder ID FOLDERID_Games.

§Upstream Documentation

§

History

Known Folder ID FOLDERID_History.

§Upstream Documentation

§

HomeGroup

Known Folder ID FOLDERID_HomeGroup.

§Upstream Documentation

§

HomeGroupCurrentUser

Known Folder ID FOLDERID_HomeGroupCurrentUser.

§Upstream Documentation

§

ImplicitAppShortcuts

Known Folder ID FOLDERID_ImplicitAppShortcuts.

§Upstream Documentation

§

InternetCache

Known Folder ID FOLDERID_InternetCache.

§Upstream Documentation

§

InternetFolder

Known Folder ID FOLDERID_InternetFolder.

§Upstream Documentation

§

Libraries

Known Folder ID FOLDERID_Libraries.

§Upstream Documentation

Known Folder ID FOLDERID_Links.

§Upstream Documentation

§

LocalAppData

Known Folder ID FOLDERID_LocalAppData.

§Upstream Documentation

§

LocalAppDataLow

Known Folder ID FOLDERID_LocalAppDataLow.

§Upstream Documentation

§

LocalDocuments

Known Folder ID FOLDERID_LocalDocuments.

§Upstream Documentation

§

LocalDownloads

Known Folder ID FOLDERID_LocalDownloads.

§Upstream Documentation

§

LocalMusic

Known Folder ID FOLDERID_LocalMusic.

§Upstream Documentation

§

LocalPictures

Known Folder ID FOLDERID_LocalPictures.

§Upstream Documentation

§

LocalStorage

Known Folder ID FOLDERID_LocalStorage.

§Upstream Documentation

§

LocalVideos

Known Folder ID FOLDERID_LocalVideos.

§Upstream Documentation

§

LocalizedResourcesDir

Known Folder ID FOLDERID_LocalizedResourcesDir.

§Upstream Documentation

§

Music

Known Folder ID FOLDERID_Music.

§Upstream Documentation

§

MusicLibrary

Known Folder ID FOLDERID_MusicLibrary.

§Upstream Documentation

§

NetHood

Known Folder ID FOLDERID_NetHood.

§Upstream Documentation

§

NetworkFolder

Known Folder ID FOLDERID_NetworkFolder.

§Upstream Documentation

§

Objects3D

Known Folder ID FOLDERID_Objects3D.

§Upstream Documentation

§

OneDrive

Known Folder ID FOLDERID_OneDrive.

§Upstream Documentation

§

OriginalImages

Known Folder ID FOLDERID_OriginalImages.

§Upstream Documentation

§

PhotoAlbums

Known Folder ID FOLDERID_PhotoAlbums.

§Upstream Documentation

§

Pictures

Known Folder ID FOLDERID_Pictures.

§Upstream Documentation

§

PicturesLibrary

Known Folder ID FOLDERID_PicturesLibrary.

§Upstream Documentation

§

Playlists

Known Folder ID FOLDERID_Playlists.

§Upstream Documentation

§

PrintHood

Known Folder ID FOLDERID_PrintHood.

§Upstream Documentation

§

PrintersFolder

Known Folder ID FOLDERID_PrintersFolder.

§Upstream Documentation

§

Profile

Known Folder ID FOLDERID_Profile.

§Upstream Documentation

§

ProgramData

Known Folder ID FOLDERID_ProgramData.

§Upstream Documentation

§

ProgramFiles

Known Folder ID FOLDERID_ProgramFiles.

§Upstream Documentation

§

ProgramFilesCommon

Known Folder ID FOLDERID_ProgramFilesCommon.

§Upstream Documentation

§

ProgramFilesCommonX64

Known Folder ID FOLDERID_ProgramFilesCommonX64.

§Upstream Documentation

§

ProgramFilesCommonX86

Known Folder ID FOLDERID_ProgramFilesCommonX86.

§Upstream Documentation

§

ProgramFilesX64

Known Folder ID FOLDERID_ProgramFilesX64.

§Upstream Documentation

§

ProgramFilesX86

Known Folder ID FOLDERID_ProgramFilesX86.

§Upstream Documentation

§

Programs

Known Folder ID FOLDERID_Programs.

§Upstream Documentation

§

Public

Known Folder ID FOLDERID_Public.

§Upstream Documentation

§

PublicDesktop

Known Folder ID FOLDERID_PublicDesktop.

§Upstream Documentation

§

PublicDocuments

Known Folder ID FOLDERID_PublicDocuments.

§Upstream Documentation

§

PublicDownloads

Known Folder ID FOLDERID_PublicDownloads.

§Upstream Documentation

§

PublicGameTasks

Known Folder ID FOLDERID_PublicGameTasks.

§Upstream Documentation

§

PublicLibraries

Known Folder ID FOLDERID_PublicLibraries.

§Upstream Documentation

§

PublicMusic

Known Folder ID FOLDERID_PublicMusic.

§Upstream Documentation

§

PublicPictures

Known Folder ID FOLDERID_PublicPictures.

§Upstream Documentation

§

PublicRingtones

Known Folder ID FOLDERID_PublicRingtones.

§Upstream Documentation

§

PublicUserTiles

Known Folder ID FOLDERID_PublicUserTiles.

§Upstream Documentation

§

PublicVideos

Known Folder ID FOLDERID_PublicVideos.

§Upstream Documentation

§

QuickLaunch

Known Folder ID FOLDERID_QuickLaunch.

§Upstream Documentation

§

Recent

Known Folder ID FOLDERID_Recent.

§Upstream Documentation

§

RecordedCalls

Known Folder ID FOLDERID_RecordedCalls.

§Upstream Documentation

§

RecordedTVLibrary

Known Folder ID FOLDERID_RecordedTVLibrary.

§Upstream Documentation

§

RecycleBinFolder

Known Folder ID FOLDERID_RecycleBinFolder.

§Upstream Documentation

§

ResourceDir

Known Folder ID FOLDERID_ResourceDir.

§Upstream Documentation

§

RetailDemo

Known Folder ID FOLDERID_RetailDemo.

§Upstream Documentation

§

Ringtones

Known Folder ID FOLDERID_Ringtones.

§Upstream Documentation

§

RoamedTileImages

Known Folder ID FOLDERID_RoamedTileImages.

§Upstream Documentation

§

RoamingAppData

Known Folder ID FOLDERID_RoamingAppData.

§Upstream Documentation

§

RoamingTiles

Known Folder ID FOLDERID_RoamingTiles.

§Upstream Documentation

§

SEARCH_CSC

Known Folder ID FOLDERID_SEARCH_CSC.

§Upstream Documentation

§

SEARCH_MAPI

Known Folder ID FOLDERID_SEARCH_MAPI.

§Upstream Documentation

§

SampleMusic

Known Folder ID FOLDERID_SampleMusic.

§Upstream Documentation

§

SamplePictures

Known Folder ID FOLDERID_SamplePictures.

§Upstream Documentation

§

SamplePlaylists

Known Folder ID FOLDERID_SamplePlaylists.

§Upstream Documentation

§

SampleVideos

Known Folder ID FOLDERID_SampleVideos.

§Upstream Documentation

§

SavedGames

Known Folder ID FOLDERID_SavedGames.

§Upstream Documentation

§

SavedPictures

Known Folder ID FOLDERID_SavedPictures.

§Upstream Documentation

§

SavedPicturesLibrary

Known Folder ID FOLDERID_SavedPicturesLibrary.

§Upstream Documentation

§

SavedSearches

Known Folder ID FOLDERID_SavedSearches.

§Upstream Documentation

§

Screenshots

Known Folder ID FOLDERID_Screenshots.

§Upstream Documentation

§

SearchHistory

Known Folder ID FOLDERID_SearchHistory.

§Upstream Documentation

§

SearchHome

Known Folder ID FOLDERID_SearchHome.

§Upstream Documentation

§

SearchTemplates

Known Folder ID FOLDERID_SearchTemplates.

§Upstream Documentation

§

SendTo

Known Folder ID FOLDERID_SendTo.

§Upstream Documentation

§

SidebarDefaultParts

Known Folder ID FOLDERID_SidebarDefaultParts.

§Upstream Documentation

§

SidebarParts

Known Folder ID FOLDERID_SidebarParts.

§Upstream Documentation

§

SkyDrive

Known Folder ID FOLDERID_SkyDrive.

§Upstream Documentation

§

SkyDriveCameraRoll

Known Folder ID FOLDERID_SkyDriveCameraRoll.

§Upstream Documentation

§

SkyDriveDocuments

Known Folder ID FOLDERID_SkyDriveDocuments.

§Upstream Documentation

§

SkyDriveMusic

Known Folder ID FOLDERID_SkyDriveMusic.

§Upstream Documentation

§

SkyDrivePictures

Known Folder ID FOLDERID_SkyDrivePictures.

§Upstream Documentation

§

StartMenu

Known Folder ID FOLDERID_StartMenu.

§Upstream Documentation

§

StartMenuAllPrograms

Known Folder ID FOLDERID_StartMenuAllPrograms.

§Upstream Documentation

§

Startup

Known Folder ID FOLDERID_Startup.

§Upstream Documentation

§

SyncManagerFolder

Known Folder ID FOLDERID_SyncManagerFolder.

§Upstream Documentation

§

SyncResultsFolder

Known Folder ID FOLDERID_SyncResultsFolder.

§Upstream Documentation

§

SyncSetupFolder

Known Folder ID FOLDERID_SyncSetupFolder.

§Upstream Documentation

§

System

Known Folder ID FOLDERID_System.

§Upstream Documentation

§

SystemX86

Known Folder ID FOLDERID_SystemX86.

§Upstream Documentation

§

Templates

Known Folder ID FOLDERID_Templates.

§Upstream Documentation

§

UserPinned

Known Folder ID FOLDERID_UserPinned.

§Upstream Documentation

§

UserProfiles

Known Folder ID FOLDERID_UserProfiles.

§Upstream Documentation

§

UserProgramFiles

Known Folder ID FOLDERID_UserProgramFiles.

§Upstream Documentation

§

UserProgramFilesCommon

Known Folder ID FOLDERID_UserProgramFilesCommon.

§Upstream Documentation

§

UsersFiles

Known Folder ID FOLDERID_UsersFiles.

§Upstream Documentation

§

UsersLibraries

Known Folder ID FOLDERID_UsersLibraries.

§Upstream Documentation

§

Videos

Known Folder ID FOLDERID_Videos.

§Upstream Documentation

§

VideosLibrary

Known Folder ID FOLDERID_VideosLibrary.

§Upstream Documentation

§

Windows

Known Folder ID FOLDERID_Windows.

§Upstream Documentation

Trait Implementations§

Source§

impl Clone for KnownFolder

Source§

fn clone(&self) -> KnownFolder

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for KnownFolder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for KnownFolder

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for KnownFolder

Source§

fn eq(&self, other: &KnownFolder) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for KnownFolder

Source§

impl Eq for KnownFolder

Source§

impl StructuralPartialEq for KnownFolder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.