Saves the library to a new file in a specified known folder.
HRESULT SaveInKnownFolder( [in] REFKNOWNFOLDERID kfidToSaveIn, [in] LPCWSTR pszLibraryName, [in] LIBRARYSAVEFLAGS lsf, [out] IShellItem **ppsiSavedTo );
- kfidToSaveIn [in]
- pszLibraryName [in]
The file name under which to save the library. The file name must not include the file name extension; the file name extension is added automatically.
- lsf [in]
The LIBRARYSAVEFLAGS value that specifies how to handle a library name collision.
- ppsiSavedTo [out]
The IShellItem object that represents the library description file into which the library was saved.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
IShellLibrary::Save and SHSaveLibraryInFolderPath create a new library file, and save the file to disk. To save changes made to a library that has an existing library file, call IShellLibrary::Commit.
If the library is saved in the Libraries known folder (FOLDERID_Libraries), the library's location is automatically added to the system index.
Minimum supported client
|Windows 7 [desktop apps only]|
Minimum supported server
|Windows Server 2008 R2 [desktop apps only]|
- Windows Libraries
- Library Description Schema
- Known Folders Sample