IShellLibrary::SaveInKnownFolder method (shobjidl_core.h)
Saves the library to a new file in a specified known folder.
Syntax
HRESULT SaveInKnownFolder(
[in] REFKNOWNFOLDERID kfidToSaveIn,
[in] LPCWSTR pszLibraryName,
[in] LIBRARYSAVEFLAGS lsf,
[out] IShellItem **ppsiSavedTo
);
Parameters
[in] kfidToSaveIn
Type: REFKNOWNFOLDERID
The ID of the known folder in which to save the IShellLibrary object.
For more information, see KNOWNFOLDERID.
[in] pszLibraryName
Type: LPCWSTR
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.
[in] lsf
Type: LIBRARYSAVEFLAGS
The LIBRARYSAVEFLAGS value that specifies how to handle a library name collision.
[out] ppsiSavedTo
Type: IShellItem**
The IShellItem object that represents the library description file into which the library was saved.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για