Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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 |
---|---|
|
There was an error closing the database. The state of the IMsmMerge or IMsmMerge2 interface is now in an undefined state. |
|
No database was open. |
|
The function succeeded. |
|
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 |