pub fn set_known_folder(folder_id: GUID, new_path: &Path) -> WinResult<()>
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.