Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 81) sorted by relevance

1234

/reactos/dll/win32/msi/
H A Dstreams.c44 MSIDATABASE *db; member
62 db->streams = tmp; in streams_resize_table()
209 sv->db->streams[i] = sv->db->streams[i - 1]; in STREAMS_insert_row()
221 MSIDATABASE *db = ((struct streams_view *)view)->db; in STREAMS_delete_row() local
232 name = msi_string_lookup( db->strings, db->streams[row].str_index, NULL ); in STREAMS_delete_row()
237 db->streams[i] = db->streams[i + 1]; in STREAMS_delete_row()
425 if (db->streams[i].str_index == id) return &db->streams[i]; in find_stream()
434 if (!streams_resize_table( db, db->num_streams + 1 )) in append_stream()
437 db->streams[i].str_index = msi_add_string( db->strings, name, -1, FALSE ); in append_stream()
439 db->num_streams++; in append_stream()
[all …]
H A Dquery.h100 MSIDATABASE *db; member
113 UINT TABLE_CreateView( MSIDATABASE *db, LPCWSTR name, MSIVIEW **view );
117 UINT DISTINCT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table );
123 UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
126 UINT INSERT_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
129 UINT UPDATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
132 UINT DELETE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table );
136 UINT STREAMS_CreateView( MSIDATABASE *db, MSIVIEW **view );
138 UINT STORAGES_CreateView( MSIDATABASE *db, MSIVIEW **view );
140 UINT DROP_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR name );
[all …]
H A Ddatabase.c71 if (db->streams[i].stream) IStream_Release( db->streams[i].stream ); in free_streams()
90 free( db->path ); in MSI_CloseDatabase()
91 free_streams( db ); in MSI_CloseDatabase()
94 if (db->strings) msi_destroy_stringtable( db->strings ); in MSI_CloseDatabase()
250 if( !db ) in MSI_OpenDatabaseW()
273 db->mode = mode; in MSI_OpenDatabaseW()
279 db->strings = msi_load_string_table( stg, &db->bytes_per_strref ); in MSI_OpenDatabaseW()
287 *pdb = db; in MSI_OpenDatabaseW()
290 if( db ) in MSI_OpenDatabaseW()
300 MSIDATABASE *db; in MsiOpenDatabaseW() local
[all …]
H A Dpackage.c348 msiobj_release( &package->db->hdr ); in MSI_FreePackage()
984 TRACE("%p\n", db); in MSI_CreatePackage()
989 msiobj_addref( &db->hdr ); in MSI_CreatePackage()
990 package->db = db; in MSI_CreatePackage()
1317 r = msi_set_property( db, L"OriginalDatabase", db->path, -1 ); in msi_set_original_database_property()
1386 MSIDATABASE *db; in MSI_OpenPackageW() local
1472 msiobj_release( &db->hdr ); in MSI_OpenPackageW()
1496 package = MSI_CreatePackage( db ); in MSI_OpenPackageW()
1497 msiobj_release( &db->hdr ); in MSI_OpenPackageW()
1527 msi_set_property( package->db, L"DATABASE", db->path, -1 ); in MSI_OpenPackageW()
[all …]
H A Dmsiquery.c123 msiobj_addref( &db->hdr ); in MSI_DatabaseOpenViewW()
124 query->db = db; in MSI_DatabaseOpenViewW()
239 MSIDATABASE *db; in MsiDatabaseOpenViewW() local
252 if( !db ) in MsiDatabaseOpenViewW()
919 MSIDATABASE *db; in MsiDatabaseApplyTransformW() local
964 MSIDATABASE *db; in MsiDatabaseCommit() local
970 if( !db ) in MsiDatabaseCommit()
1081 MSIDATABASE *db; in MsiDatabaseGetPrimaryKeysW() local
1087 if( !db ) in MsiDatabaseGetPrimaryKeysW()
1167 MSIDATABASE *db; in MsiDatabaseIsTablePersistentW() local
[all …]
H A Dtable.c401 row_size = table_get_row_size( db, t->colinfo, t->col_count, db->bytes_per_strref ); in read_table_from_storage()
437 UINT n = bytes_per_column( db, &t->colinfo[j], db->bytes_per_strref ); in read_table_from_storage()
610 r = read_table_from_storage( db, table, db->storage ); in get_table()
718 if( TABLE_Exists(db, name ) ) in msi_create_table()
999 MSIDATABASE *db; member
2220 tv->db = db; in TABLE_CreateView()
2791 tv->db = db; in TransformView_Create()
2892 TRACE("%p\n",db); in MSI_CommitTables()
2894 r = msi_save_string_table( db->strings, db->storage, &bytes_per_strref ); in MSI_CommitTables()
2931 r = get_table( db, table, &t ); in MSI_DatabaseIsTablePersistent()
[all …]
H A Dpatch.c388 patch = msi_dup_property( package->db, L"PATCH" ); in patch_set_media_source_prop()
580 r = MSI_DatabaseOpenViewW( db, in patch_offset_modify_db()
603 r = MSI_DatabaseOpenViewW( db, in patch_offset_modify_db()
707 disk_id = package->db->media_transform_disk_id; in patch_add_media()
733 package->db->media_transform_disk_id++; in patch_add_media()
777 patch_offset_get_files( db, last_sequence, pos ); in patch_set_offsets()
780 offset = db->media_transform_offset - pos->min; in patch_set_offsets()
787 r = patch_offset_modify_db( db, pos ); in patch_set_offsets()
796 db->media_transform_offset = last_sequence + 1; in patch_set_offsets()
807 static DWORD is_uninstallable( MSIDATABASE *db ) in is_uninstallable() argument
[all …]
H A Dupdate.c44 MSIDATABASE *db; member
192 msiobj_release( &uv->db->hdr ); in UPDATE_delete()
220 UINT UPDATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table, in UPDATE_CreateView() argument
230 r = WHERE_CreateView( db, &wv, table, expr ); in UPDATE_CreateView()
232 r = TABLE_CreateView( db, table, &wv ); in UPDATE_CreateView()
238 r = SELECT_CreateView( db, &sv, wv, columns ); in UPDATE_CreateView()
254 msiobj_addref( &db->hdr ); in UPDATE_CreateView()
255 uv->db = db; in UPDATE_CreateView()
H A Dcreate.c44 MSIDATABASE *db; member
71 return msi_create_table( cv->db, cv->name, cv->col_info, persist, cv->hold ); in CREATE_execute()
118 msiobj_release( &cv->db->hdr ); in CREATE_delete()
160 UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table, in CREATE_CreateView() argument
198 msiobj_addref( &db->hdr ); in CREATE_CreateView()
199 cv->db = db; in CREATE_CreateView()
H A Ddrop.c40 MSIDATABASE *db; member
118 UINT DROP_CreateView(MSIDATABASE *db, MSIVIEW **view, LPCWSTR name) in DROP_CreateView() argument
129 r = TABLE_CreateView(db, name, &dv->table); in DROP_CreateView()
137 dv->db = db; in DROP_CreateView()
H A Dstorages.c52 MSIDATABASE *db; member
169 name = msi_string_lookup(sv->db->strings, sv->storages[row].str_index, NULL); in STORAGES_set_stream()
171 hr = IStorage_CreateStorage(sv->db->storage, name, in STORAGES_set_stream()
228 hr = IStorage_CreateStorage(sv->db->storage, name, in STORAGES_set_row()
245 sv->storages[row].str_index = msi_add_string(sv->db->strings, name, -1, FALSE); in STORAGES_set_row()
339 r = msi_string2id(sv->db->strings, str, -1, &id); in storages_find_row()
472 hr = IStorage_EnumElements(sv->db->storage, 0, NULL, 0, &stgenum); in add_storages_to_table()
505 IStorage_OpenStorage(sv->db->storage, stat.pwcsName, NULL, in add_storages_to_table()
515 UINT STORAGES_CreateView(MSIDATABASE *db, MSIVIEW **view) in STORAGES_CreateView() argument
520 TRACE("(%p, %p)\n", db, view); in STORAGES_CreateView()
[all …]
H A Dsql.y195 UPDATE_CreateView( sql->db, &update, $2, $4, $6 );
220 DELETE_CreateView( sql->db, &delete, $2 );
234 ALTER_CreateView( sql->db, &alter, $3, NULL, $4 );
245 ALTER_CreateView( sql->db, &alter, $3, $5, 0 );
256 ALTER_CreateView( sql->db, &alter, $3, $5, 1 );
282 r = DROP_CreateView( sql->db, &drop, $3 );
402 r = DISTINCT_CreateView( sql->db, &distinct, $3 );
461 r = TABLE_CreateView( sql->db, $2, &table );
490 r = WHERE_CreateView( sql->db, &where, $2, NULL );
502 r = WHERE_CreateView( sql->db, &where, $2, $4 );
[all …]
H A Daction.c354 WCHAR *source, *check, *p, *db; in msi_set_sourcedir_props() local
357 if (!(db = msi_dup_property( package->db, L"OriginalDatabase" ))) in msi_set_sourcedir_props()
360 if (!(p = wcsrchr( db, '\\' )) && !(p = wcsrchr( db, '/' ))) in msi_set_sourcedir_props()
362 free(db); in msi_set_sourcedir_props()
365 len = p - db + 2; in msi_set_sourcedir_props()
367 lstrcpynW( source, db, len ); in msi_set_sourcedir_props()
368 free( db ); in msi_set_sourcedir_props()
479 rc = MSI_OpenQuery(package->db, &view, in ACTION_ProcessExecSequence()
497 rc = MSI_DatabaseOpenViewW(package->db, in ACTION_ProcessUISequence()
1954 static WCHAR *create_temp_dir( MSIDATABASE *db ) in create_temp_dir() argument
[all …]
H A Dsuminfo.c500 r = msi_get_stream( db, L"\5SummaryInformation", &stm ); in msi_get_db_suminfo()
523 MSIDATABASE *db; in MsiGetSummaryInformationW() local
535 ret = MSI_OpenDatabaseW( szDatabase, persist, &db ); in MsiGetSummaryInformationW()
542 if( !db ) in MsiGetSummaryInformationW()
568 ret = msi_get_db_suminfo( db, uiUpdateCount, &si ); in MsiGetSummaryInformationW()
585 msiobj_release( &db->hdr ); in MsiGetSummaryInformationW()
1195 UINT msi_export_suminfo( MSIDATABASE *db, HANDLE handle ) in msi_export_suminfo() argument
1200 r = msi_get_suminfo( db->storage, 0, &si ); in msi_export_suminfo()
1202 r = msi_get_db_suminfo( db, 0, &si ); in msi_export_suminfo()
1276 r = msi_get_suminfo( package->db->storage, 0, &si ); in msi_load_suminfo_properties()
[all …]
H A Dalter.c40 MSIDATABASE *db; member
160 UINT ALTER_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR name, column_info *colinfo, int hol… in ALTER_CreateView() argument
171 r = TABLE_CreateView( db, name, &av->table ); in ALTER_CreateView()
183 av->db = db; in ALTER_CreateView()
H A Dinsert.c45 MSIDATABASE *db; member
314 msiobj_release( &iv->db->hdr ); in INSERT_delete()
351 UINT INSERT_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table, in INSERT_CreateView() argument
364 r = TABLE_CreateView( db, table, &tv ); in INSERT_CreateView()
368 r = SELECT_CreateView( db, &sv, tv, columns ); in INSERT_CreateView()
382 msiobj_addref( &db->hdr ); in INSERT_CreateView()
384 iv->db = db; in INSERT_CreateView()
H A Ddistinct.c50 MSIDATABASE *db; member
244 msiobj_release( &dv->db->hdr ); in DISTINCT_delete()
273 UINT DISTINCT_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table ) in DISTINCT_CreateView() argument
293 msiobj_addref( &db->hdr ); in DISTINCT_CreateView()
294 dv->db = db; in DISTINCT_CreateView()
H A Dcustom.c208 msi_set_property( package->db, L"UserSID", beg, end - beg ); in set_deferred_action_props()
212 msi_set_property( package->db, L"ProductCode", beg, end - beg ); in set_deferred_action_props()
215 WCHAR *msi_create_temp_file( MSIDATABASE *db ) in msi_create_temp_file() argument
219 if (!db->tempfolder) in msi_create_temp_file()
224 if (msi_get_property( db, L"TempFolder", tmp, &len ) || in msi_create_temp_file()
229 if (!(db->tempfolder = wcsdup( tmp ))) return NULL; in msi_create_temp_file()
234 if (!GetTempFileNameW( db->tempfolder, L"msi", 0, ret )) in msi_create_temp_file()
254 if (!(tmpfile = msi_create_temp_file( package->db ))) return NULL; in create_temp_binary()
1422 prop = msi_dup_property( package->db, source ); in HANDLE_CustomType53_54()
1450 WCHAR *actiondata = msi_dup_property( package->db, action ); in defer_custom_action()
[all …]
H A Ddelete.c54 MSIDATABASE *db; member
190 UINT DELETE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table ) in DELETE_CreateView() argument
202 dv->db = db; in DELETE_CreateView()
/reactos/sdk/tools/xml2sdb/
H A Dxml2sdb.cpp285 if (!it->toSdb(pdb, db)) in WriteGeneric()
357 bool Shim::toSdb(PDB pdb, Database& db) in toSdb() argument
360 db.InsertShimTagid(Name, Tagid); in toSdb()
387 bool Flag::toSdb(PDB pdb, Database& db) in toSdb() argument
390 db.InsertFlagTagid(Name, Tagid); in toSdb()
440 bool Data::toSdb(PDB pdb, Database& db) in toSdb() argument
485 if (!WriteGeneric(pdb, Datas, db)) in toSdb()
561 bool Exe::toSdb(PDB pdb, Database& db) in toSdb() argument
767 Database db; in xml_2_db() local
768 if (db.fromXml(xml)) in xml_2_db()
[all …]
H A Dxml2sdb.h35 bool toSdb(PDB pdb, Database& db);
46 bool toSdb(PDB pdb, Database& db);
59 bool toSdb(PDB pdb, Database& db);
70 bool toSdb(PDB pdb, Database& db);
84 bool toSdb(PDB pdb, Database& db);
99 bool toSdb(PDB pdb, Database& db);
115 bool toSdb(PDB pdb, Database& db);
129 bool toSdb(PDB pdb, Database& db);
153 bool toSdb(PDB pdb, Database& db);
/reactos/dll/appcompat/apphelp/
H A Dsdbwrite.h18 void WINAPI SdbCloseDatabaseWrite(PDB db);
19 BOOL WINAPI SdbWriteNULLTag(PDB db, TAG tag);
20 BOOL WINAPI SdbWriteWORDTag(PDB db, TAG tag, WORD data);
21 BOOL WINAPI SdbWriteDWORDTag(PDB db, TAG tag, DWORD data);
22 BOOL WINAPI SdbWriteQWORDTag(PDB db, TAG tag, QWORD data);
23 BOOL WINAPI SdbWriteStringTag(PDB db, TAG tag, LPCWSTR string);
24 BOOL WINAPI SdbWriteStringRefTag(PDB db, TAG tag, TAGID tagid);
25 BOOL WINAPI SdbWriteBinaryTag(PDB db, TAG tag, const BYTE* data, DWORD size);
26 BOOL WINAPI SdbWriteBinaryTagFromFile(PDB db, TAG tag, LPCWSTR path);
27 TAGID WINAPI SdbBeginWriteListTag(PDB db, TAG tag);
[all …]
/reactos/base/applications/rapps/
H A Dunattended.cpp50 db.GetApps(List, Type); in SearchForAppWithDisplayName()
76 CAppInfo *AppInfo = db->FindByPackageName(PackageName); in HandleInstallCommand()
125 HandleUninstallCommand(CAppDB &db, UINT argcLeft, LPWSTR *argvLeft) in HandleUninstallCommand() argument
223 db->GetApps(List, ENUM_ALL_AVAILABLE); in HandleFindCommand()
259 CAppInfo *AppInfo = db->FindByPackageName(PackageName); in HandleInfoCommand()
336 CAppDB db(Directory); in ParseCmdAndExecute() local
342 db.RemoveCached(); in ParseCmdAndExecute()
344 db.UpdateAvailable(); in ParseCmdAndExecute()
347 db.UpdateInstalled(); in ParseCmdAndExecute()
383 CMainWindow wnd(&db, bAppwizMode); in ParseCmdAndExecute()
[all …]
/reactos/sdk/include/asm/
H A Dmacamd64.inc16 db HEX(048) ; REX prefix
27 db HEX(048) ; REX prefix
33 db HEX(048) ; REX prefix / hint tail call to unwinder
80 db 6 dup HEX(CC)
91 db 6 dup HEX(CC)
102 db 6 dup HEX(CC)
113 db 6 dup HEX(CC)
135 db 6 dup (0cch)
/reactos/modules/rostests/apitests/apphelp/
H A Ddb.cpp1587 TAGID db; in test_TagRef() local
1608 db = 12345; in test_TagRef()
1612 ok(db == (size - 1), "Expected %u, got: %u\n", size - 1, db); in test_TagRef()
1621 db = 12345; in test_TagRef()
1625 ok(db == size, "Expected %u, got: %u\n", size, db); in test_TagRef()
1633 db = 12345; in test_TagRef()
1637 ok(db == (size + 1), "Expected %u, got: %u\n", size + 1, db); in test_TagRef()
1645 db = 12345; in test_TagRef()
1657 db = 12345; in test_TagRef()
1661 ok(db == 0, "Expected no result, got: 0x%x\n", db); in test_TagRef()
[all …]

1234