IAssemblyCacheItem::Commit method (winsxs.h)

The Commit method copies information into the side-by-side store. When this method returns, the assembly is visible in the side-by-side store.

Syntax

HRESULT Commit(
  [in]            DWORD dwFlags,
  [out, optional] ULONG *pulDisposition
);

Parameters

[in] dwFlags

This parameter specifies how existing information in the side-by-side store is to be replaced by information for the assembly being installed.

Value Meaning
IASSEMBLYCACHEITEM_COMMIT_FLAG_REFRESH
Replace existing information in the side-by-side store with the information in the assembly being installed if the version in the assembly is greater than or equal to the version of the existing information. This is the default option.
IASSEMBLYCACHEITEM_COMMIT_FLAG_FORCE_REFRESH
Replace existing information in the side-by-side store with the information for the assembly being installed.

[out, optional] pulDisposition

Value Meaning
IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_INSTALLED
The assembly is installed for the first time.
IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_REFRESHED
The assembly replaces an existing assembly.
IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_ALREADY_INSTALLED
The assembly is already installed in the side-by-side assembly store.

Return value

This method can return one of these values.

Return value Description
S_OK
The method succeeded.
S_FALSE
The method did not succeed.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header winsxs.h
DLL Sxs.dll

See also

IAssemblyCacheItem