ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

database.c File Reference
#include <stdarg.h>
#include <stdio.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winnls.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "msi.h"
#include "msiquery.h"
#include "msipriv.h"
#include "objidl.h"
#include "objbase.h"
#include "msiserver.h"
#include "query.h"
#include "initguid.h"

Go to the source code of this file.

Data Structures

struct  MSITRANSFORM
struct  MSISTREAM
struct  MERGETABLE
struct  MERGEROW
struct  MERGEDATA
struct  msi_remote_database_impl

Defines

#define COBJMACROS
#define NONAMELESSUNION
#define IS_INTMSIDBOPEN(x)   (((ULONG_PTR)(x) >> 16) == 0)

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msi)
static UINT find_open_stream (MSIDATABASE *db, IStorage *stg, LPCWSTR name, IStream **stm)
UINT msi_clone_open_stream (MSIDATABASE *db, IStorage *stg, LPCWSTR name, IStream **stm)
UINT msi_get_raw_stream (MSIDATABASE *db, LPCWSTR stname, IStream **stm)
static void free_transforms (MSIDATABASE *db)
void msi_destroy_stream (MSIDATABASE *db, const WCHAR *stname)
static void free_streams (MSIDATABASE *db)
void append_storage_to_db (MSIDATABASE *db, IStorage *stg)
static VOID MSI_CloseDatabase (MSIOBJECTHDR *arg)
static HRESULT db_initialize (IStorage *stg, const GUID *clsid)
UINT MSI_OpenDatabaseW (LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
UINT WINAPI MsiOpenDatabaseW (LPCWSTR szDBPath, LPCWSTR szPersist, MSIHANDLE *phDB)
UINT WINAPI MsiOpenDatabaseA (LPCSTR szDBPath, LPCSTR szPersist, MSIHANDLE *phDB)
static LPWSTR msi_read_text_archive (LPCWSTR path, DWORD *len)
static void msi_parse_line (LPWSTR *line, LPWSTR **entries, DWORD *num_entries, DWORD *len)
static LPWSTR msi_build_createsql_prelude (LPWSTR table)
static LPWSTR msi_build_createsql_columns (LPWSTR *columns_data, LPWSTR *types, DWORD num_columns)
static LPWSTR msi_build_createsql_postlude (LPWSTR *primary_keys, DWORD num_keys)
static UINT msi_add_table_to_db (MSIDATABASE *db, LPWSTR *columns, LPWSTR *types, LPWSTR *labels, DWORD num_labels, DWORD num_columns)
static LPWSTR msi_import_stream_filename (LPCWSTR path, LPCWSTR name)
static UINT construct_record (DWORD num_columns, LPWSTR *types, LPWSTR *data, LPWSTR path, MSIRECORD **rec)
static UINT msi_add_records_to_table (MSIDATABASE *db, LPWSTR *columns, LPWSTR *types, LPWSTR *labels, LPWSTR **records, int num_columns, int num_records, LPWSTR path)
static UINT MSI_DatabaseImport (MSIDATABASE *db, LPCWSTR folder, LPCWSTR file)
UINT WINAPI MsiDatabaseImportW (MSIHANDLE handle, LPCWSTR szFolder, LPCWSTR szFilename)
UINT WINAPI MsiDatabaseImportA (MSIHANDLE handle, LPCSTR szFolder, LPCSTR szFilename)
static UINT msi_export_record (HANDLE handle, MSIRECORD *row, UINT start)
static UINT msi_export_row (MSIRECORD *row, void *arg)
static UINT msi_export_forcecodepage (HANDLE handle, UINT codepage)
static UINT MSI_DatabaseExport (MSIDATABASE *db, LPCWSTR table, LPCWSTR folder, LPCWSTR file)
UINT WINAPI MsiDatabaseExportW (MSIHANDLE handle, LPCWSTR szTable, LPCWSTR szFolder, LPCWSTR szFilename)
UINT WINAPI MsiDatabaseExportA (MSIHANDLE handle, LPCSTR szTable, LPCSTR szFolder, LPCSTR szFilename)
UINT WINAPI MsiDatabaseMergeA (MSIHANDLE hDatabase, MSIHANDLE hDatabaseMerge, LPCSTR szTableName)
static BOOL merge_type_match (LPCWSTR type1, LPCWSTR type2)
static UINT merge_verify_colnames (MSIQUERY *dbview, MSIQUERY *mergeview)
static UINT merge_verify_primary_keys (MSIDATABASE *db, MSIDATABASE *mergedb, LPCWSTR table)
static LPWSTR get_key_value (MSIQUERY *view, LPCWSTR key, MSIRECORD *rec)
static LPWSTR create_diff_row_query (MSIDATABASE *merge, MSIQUERY *view, LPWSTR table, MSIRECORD *rec)
static UINT merge_diff_row (MSIRECORD *rec, LPVOID param)
static UINT msi_get_table_labels (MSIDATABASE *db, LPCWSTR table, LPWSTR **labels, DWORD *numlabels)
static UINT msi_get_query_columns (MSIQUERY *query, LPWSTR **columns, DWORD *numcolumns)
static UINT msi_get_query_types (MSIQUERY *query, LPWSTR **types, DWORD *numtypes)
static void merge_free_rows (MERGETABLE *table)
static void free_merge_table (MERGETABLE *table)
static UINT msi_get_merge_table (MSIDATABASE *db, LPCWSTR name, MERGETABLE **ptable)
static UINT merge_diff_tables (MSIRECORD *rec, LPVOID param)
static UINT gather_merge_data (MSIDATABASE *db, MSIDATABASE *merge, struct list *tabledata)
static UINT merge_table (MSIDATABASE *db, MERGETABLE *table)
static UINT update_merge_errors (MSIDATABASE *db, LPCWSTR error, LPWSTR table, DWORD numconflicts)
UINT WINAPI MsiDatabaseMergeW (MSIHANDLE hDatabase, MSIHANDLE hDatabaseMerge, LPCWSTR szTableName)
MSIDBSTATE WINAPI MsiGetDatabaseState (MSIHANDLE handle)
static msi_remote_database_implimpl_from_IWineMsiRemoteDatabase (IWineMsiRemoteDatabase *iface)
static HRESULT WINAPI mrd_QueryInterface (IWineMsiRemoteDatabase *iface, REFIID riid, LPVOID *ppobj)
static ULONG WINAPI mrd_AddRef (IWineMsiRemoteDatabase *iface)
static ULONG WINAPI mrd_Release (IWineMsiRemoteDatabase *iface)
static HRESULT WINAPI mrd_IsTablePersistent (IWineMsiRemoteDatabase *iface, LPCWSTR table, MSICONDITION *persistent)
static HRESULT WINAPI mrd_GetPrimaryKeys (IWineMsiRemoteDatabase *iface, LPCWSTR table, MSIHANDLE *keys)
static HRESULT WINAPI mrd_GetSummaryInformation (IWineMsiRemoteDatabase *iface, UINT updatecount, MSIHANDLE *suminfo)
static HRESULT WINAPI mrd_OpenView (IWineMsiRemoteDatabase *iface, LPCWSTR query, MSIHANDLE *view)
static HRESULT WINAPI mrd_SetMsiHandle (IWineMsiRemoteDatabase *iface, MSIHANDLE handle)
HRESULT create_msi_remote_database (IUnknown *pOuter, LPVOID *ppObj)

Variables

static const
IWineMsiRemoteDatabaseVtbl 
msi_remote_database_vtbl

Generated on Fri May 25 2012 04:45:35 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.