Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Shobjidl.h

IDL

Shobjidl.idl

See also

Windows Libraries
IShellLibrary
IShellLibrary::Save
SHSaveLibraryInFolderPath
Library Description Schema

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.