Function hoard::dirs::set_known_folder
source · [−]Expand description
Set a Windows “Known Folder” by id.
All ids can be found under windows::Win32::UI::Shell
as FOLDERID_{Name}
.
This crate uses and re-exports FOLDERID_Profile
and FOLDERID_RoamingAppData
.
Errors
This function will error if SHSetKnownFolderPath
does. See the
official Microsoft docs
for more.