Public Member Functions

AppSecInc::Msi::MsiDatabase Class Reference

A smart pointer for an MSI database. More...

#include <MsiDatabase.h>

Inheritance diagram for AppSecInc::Msi::MsiDatabase:
AppSecInc::Msi::MsiHandle

List of all members.

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

Detailed Description

A smart pointer for an MSI database.


Constructor & Destructor Documentation

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


Member Function Documentation

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


The documentation for this class was generated from the following files:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com