IMsmMerge::CloseDatabase method (mergemod.h)

The CloseDatabase method closes the currently open Windows Installer database. For more information, see the CloseDatabase method of the Merge object.

IMsmMerge2::CloseDatabase    Mergemod.dll version 2.0 or later.

 
IMsmMerge::CloseDatabase      All Mergemod.dll versions.

Syntax

HRESULT CloseDatabase(
  const VARIANT_BOOL Commit
);

Parameters

Commit

TRUE if changes should be saved, FALSE otherwise.

Return value

The CloseDatabase function returns the following values.

Value Meaning
E_FAIL
There was an error closing the database. The state of the IMsmMerge or IMsmMerge2 interface is now in an undefined state.
S_FALSE
No database was open.
S_OK
The function succeeded.
STG_E_CANTSAVE as HRESULT
Unable to save database. This error is not generated if bCommit is FALSE.

Remarks

This function closes the currently open database. Closing a database clears all dependency information but does not affect any errors that have not been retrieved.

Requirements

Requirement Value
Minimum supported client Mergemod.dll 1.0 or later
Target Platform Windows
Header mergemod.h
DLL Mergemod.dll

See also

Merge Module Automation