IShellLibrary::Commit method
Commits library updates to an existing Library Description file.
Syntax
HRESULT Commit();
Parameters
This method has no parameters.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
IShellLibrary::Commit can only be called to save library updates to an existing file. A call to IShellLibrary::Commit for a library that does not have a backing file will fail. To create and save a new file, call IShellLibrary::Save or SHSaveLibraryInFolderPath.
If the library is saved in the Libraries known folder (FOLDERID_Libraries), the folders in the library are automatically added to the search index.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
IDL |
|
See also
- Windows Libraries
- IShellLibrary
- IShellLibrary::Save
- SHSaveLibraryInFolderPath
- Library Description Schema