pub fn get_known_folder(folder_id: GUID) -> WinResult<PathBuf>
Expand description

Get 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 SHGetKnownFolderPath does. See the official Microsoft docs for more.