KNOWNFOLDERID
KNOWNFOLDERID is a GUID-based identifier used by the Windows Shell to identify Known Folders in the user profile. It serves as a language- and profile-independent reference to standard folders, replacing older CSIDL identifiers in modern APIs. Each known folder has a corresponding GUID constant, such as FOLDERID_Desktop, FOLDERID_Documents, FOLDERID_Downloads, FOLDERID_Pictures, FOLDERID_Music, FOLDERID_Videos, FOLDERID_Templates, FOLDERID_PublicDocuments, and others. The IDs are defined in Windows header files (for example ShlObj.h and KnownFolders.h) and are exposed to applications as GUIDs.
Programs use these IDs with Known Folder APIs to obtain the path to a known folder. The
Benefits of using KNOWNFOLDERID include localization neutrality, support for profile relocation, and consistency across user accounts