A smart pointer for an MSI database. More...
#include <MsiDatabase.h>
Public Member Functions | |
MsiDatabase () | |
empty database object | |
MsiDatabase (const std::wstring &filepath, LPCTSTR openmode=MSIDBOPEN_READONLY) | |
create a new or open an existing msi database | |
void | Commit () |
commit database changes to disk | |
void | Create (const std::wstring &filepath) |
create a usable empty database with a base summary | |
void | Open (const std::wstring &filepath, LPCTSTR openmode=MSIDBOPEN_READONLY) |
create or open a database file | |
void | Close () |
close the database | |
void | SetSummary (const std::vector< MsiDatabaseSummaryEntry > &summary) |
set database summary fields | |
void | SetSummary (const MsiDatabaseSummaryEntry summary[], int size) |
set database summary fields | |
void | Import (const std::wstring &path, const std::wstring &file) |
import a previously exported database file | |
void | Execute (const std::wstring &query) |
execute an MSI query |
A smart pointer for an MSI database.
MsiDatabase::MsiDatabase | ( | ) |
empty database object
AppSecInc::Msi::MsiDatabase::MsiDatabase | ( | const std::wstring & | filepath, |
LPCTSTR | openmode = MSIDBOPEN_READONLY |
||
) |
create a new or open an existing msi database
void AppSecInc::Msi::MsiDatabase::Close | ( | ) | [virtual] |
close the database
Reimplemented from AppSecInc::Msi::MsiHandle.
void MsiDatabase::Commit | ( | ) |
commit database changes to disk
void MsiDatabase::Create | ( | const std::wstring & | filepath | ) |
create a usable empty database with a base summary
void AppSecInc::Msi::MsiDatabase::Execute | ( | const std::wstring & | query | ) |
execute an MSI query
void AppSecInc::Msi::MsiDatabase::Import | ( | const std::wstring & | path, |
const std::wstring & | file | ||
) |
import a previously exported database file
void AppSecInc::Msi::MsiDatabase::Open | ( | const std::wstring & | filepath, |
LPCTSTR | openmode = MSIDBOPEN_READONLY |
||
) |
create or open a database file
void MsiDatabase::SetSummary | ( | const std::vector< MsiDatabaseSummaryEntry > & | summary | ) |
set database summary fields
void MsiDatabase::SetSummary | ( | const MsiDatabaseSummaryEntry | summary[], |
int | size | ||
) |
set database summary fields
© Application Security Inc. - All Rights Reserved | http://msiext.codeplex.com |