Training
Module
The module examines the various options that enable administrators to protect user files against data loss.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Windows Vista introduces new storage scenarios and a new user profile namespace. To address these new factors, the older system of referring to standard folders by a CSIDL value has been replaced. As of Windows Vista, those folders are referenced by a new set of GUID values called Known Folder IDs.
The Known Folder system provides these advantages:
The CSIDL system and APIs that make use of CSIDL values are still supported for compatibility. However, it is not recommended to use them in any new development.
The following topics discuss the specifics of the Known Folders system.
The following reference pages explain the Win32 Known Folders functions, which can be used to retrieve the location of Known Folders or redirect them to a new location. These functions replace older Win32 functions. The new functions are provided to give equivalent behavior to the old functions, but each new function is also duplicated by a Component Object Model (COM) API.
New Function | Replaces | COM Equivalent |
---|---|---|
SHGetKnownFolderPath | SHGetFolderPath | IKnownFolder::GetPath |
SHGetKnownFolderIDList | SHGetFolderLocation | IKnownFolder::GetIDList |
SHSetKnownFolderPath | SHSetFolderPath | IKnownFolder::SetPath |
The following reference pages explain the COM Known Folders APIs, which provide all of the functionality of the Win32 APIs listed above, plus add the ability to enumerate all Known Folders, access Known Folder properties, and extend the standard set of Known Folders.
A C++ sample that demonstrates the Known Folder APIs is included in the Windows Software Development Kit (SDK). Once you have installed the Windows SDK on your computer, the sample can be found under %ProgramFiles%\Microsoft SDKs\Windows\v6.0\Samples\WinUI\Shell\AppPlatform\KnownFolders.
Training
Module
The module examines the various options that enable administrators to protect user files against data loss.