MsiGetDatabaseState

[This is preliminary documentation and subject to change.]

The MsiGetDatabaseState function returns the state of the database.

MSIDBSTATE MsiGetDatabaseState(
  MSIHANDLE hDatabase    // database handle
);
 

Parameters

hDatabase
Handle to a database.

Return Values

MSIDBSTATE_READ
The database is opened as read-only; there can be no persistent changes.
MSIDBSTATE_ERROR
An invalid database handle was passed to the function.
MSIDBSTATE_WRITE
The database is readable and writable.

Remarks

The MsiGetDatabaseState function returns the update state of the database.

QuickInfo

  Windows NT: Requires version 4.0 or later. Available as a redistributable for Windows NT 4.0.
  Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in msiquery.h.
  Import Library: Use msi.lib.

See Also

Database Access Reference, Database Management Functions