ReactOS 0.4.16-dev-297-gc569aee
|
#include <stdio.h>
#include <windows.h>
#include <msiquery.h>
#include <msidefs.h>
#include <msi.h>
#include <wtypes.h>
#include "wine/test.h"
#include "utils.h"
Go to the source code of this file.
Classes | |
struct | msi_table |
struct | table_data |
Macros | |
#define | _WIN32_MSI 300 |
#define | COBJMACROS |
Functions | |
static BOOL | get_program_files_dir (char *buf, char *buf2) |
static DWORD | get_pf_file_size (const char *filename) |
static void | write_file (const char *filename, const char *data, DWORD data_size) |
static void | set_suminfo (const WCHAR *filename) |
static void | create_database_suminfo (const char *filename, const struct msi_table *tables, UINT num_tables) |
static void | write_tables (IStorage *stg, const struct table_data *tables, UINT num_tables) |
static void | create_patch (const char *filename) |
static void | test_simple_patch (void) |
static void | test_MsiOpenDatabase (void) |
static UINT | find_entry (MSIHANDLE hdb, const char *table, const char *entry) |
static UINT | find_entryW (MSIHANDLE hdb, const WCHAR *table, const WCHAR *entry) |
static INT | get_integer (MSIHANDLE hdb, UINT field, const char *query) |
static char * | get_string (MSIHANDLE hdb, UINT field, const char *query) |
static void | test_system_tables (void) |
static void | test_patch_registration (void) |
START_TEST (patch) | |
Variables | |
static const char * | msifile = "winetest-patch.msi" |
static const char * | mspfile = "winetest-patch.msp" |
static const WCHAR | msifileW [] = L"winetest-patch.msi" |
static const WCHAR | mspfileW [] = L"winetest-patch.msp" |
static const char | property_dat [] |
static const char | media_dat [] |
static const char | file_dat [] |
static const char | directory_dat [] |
static const char | component_dat [] |
static const char | feature_dat [] |
static const char | feature_comp_dat [] |
static const char | install_exec_seq_dat [] |
static const char | condition_dat [] |
static const struct msi_table | tables [] |
static const WCHAR | p_name0 [] = { 0x4840, 0x3b3f, 0x43f2, 0x4438, 0x45b1, 0 } |
static const WCHAR | p_name1 [] = { 0x4840, 0x3f7f, 0x4164, 0x422f, 0x4836, 0 } |
static const WCHAR | p_name2 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0 } |
static const WCHAR | p_name3 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0 } |
static const WCHAR | p_name4 [] = { 0x3a8c, 0x47cb, 0x45b0, 0x45ec, 0x45a8, 0x4837, 0} |
static const WCHAR | p_name5 [] = { 0x4840, 0x4596, 0x3e6c, 0x45e4, 0x42e6, 0x421c, 0x4634, 0x4468, 0x4226, 0 } |
static const WCHAR | p_name6 [] |
static const WCHAR | p_name7 [] |
static const WCHAR | p_name8 [] |
static const WCHAR | p_data0 [] |
static const WCHAR | p_data1 [] |
static const char | p_data2 [] |
static const WCHAR | p_data3 [] |
static const char | p_data4 [] |
static const WCHAR | p_data5 [] |
static const char | p_data6 [] |
static const struct table_data | table_patch_data [] |
static const WCHAR | t1_name0 [] = { 0x4840, 0x430f, 0x422f, 0 } |
static const WCHAR | t1_name1 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0 } |
static const WCHAR | t1_name2 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0 } |
static const WCHAR | t1_name3 [] |
static const WCHAR | t1_data0 [] |
static const char | t1_data1 [] |
static const WCHAR | t1_data2 [] |
static const char | t1_data3 [] |
static const struct table_data | table_transform1_data [] |
static const WCHAR | t2_name0 [] = { 0x4840, 0x430f, 0x422f, 0 } |
static const WCHAR | t2_name1 [] = { 0x4840, 0x4216, 0x4327, 0x4824, 0 } |
static const WCHAR | t2_name2 [] = { 0x4840, 0x3b3f, 0x43f2, 0x4438, 0x45b1, 0 } |
static const WCHAR | t2_name3 [] = { 0x4840, 0x3f7f, 0x4164, 0x422f, 0x4836, 0 } |
static const WCHAR | t2_name4 [] = { 0x4840, 0x4559, 0x44f2, 0x4568, 0x4737, 0 } |
static const WCHAR | t2_name5 [] = { 0x4840, 0x4119, 0x41b7, 0x3e6b, 0x41a4, 0x412e, 0x422a, 0 } |
static const WCHAR | t2_name6 [] |
static const WCHAR | t2_name7 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3b6a, 0x45e4, 0x4824, 0 } |
static const WCHAR | t2_name8 [] = { 0x4840, 0x3f3f, 0x4577, 0x446c, 0x3e6a, 0x44b2, 0x482f, 0 } |
static const WCHAR | t2_name9 [] |
static const WCHAR | t2_name10 [] |
static const WCHAR | t2_name11 [] = { 0x4840, 0x448c, 0x44f0, 0x4472, 0x4468, 0x4837, 0 } |
static const WCHAR | t2_name12 [] = { 0x4840, 0x420f, 0x45e4, 0x4578, 0x4828, 0 } |
static const WCHAR | t2_data0 [] |
static const WCHAR | t2_data1 [] |
static const WCHAR | t2_data2 [] |
static const WCHAR | t2_data3 [] |
static const WCHAR | t2_data4 [] |
static const WCHAR | t2_data5 [] |
static const WCHAR | t2_data6 [] |
static const char | t2_data7 [] |
static const WCHAR | t2_data8 [] |
static const char | t2_data9 [] |
static const WCHAR | t2_data10 [] |
static const WCHAR | t2_data11 [] |
static const WCHAR | t2_data12 [] |
static const struct table_data | table_transform2_data [] |
|
static |
Definition at line 238 of file patch.c.
Referenced by test_MsiOpenDatabase(), test_patch_registration(), test_simple_patch(), and test_system_tables().
Definition at line 617 of file patch.c.
Referenced by test_MsiOpenDatabase(), test_patch_registration(), test_simple_patch(), and test_system_tables().
Definition at line 888 of file patch.c.
Referenced by test_system_tables().
Definition at line 909 of file patch.c.
Referenced by test_system_tables().
Definition at line 929 of file patch.c.
Referenced by test_system_tables().
Definition at line 168 of file patch.c.
Referenced by test_simple_patch().
Definition at line 143 of file patch.c.
Referenced by START_TEST().
Definition at line 958 of file patch.c.
Referenced by test_system_tables().
Definition at line 196 of file patch.c.
Referenced by create_database_suminfo().
START_TEST | ( | patch | ) |
Definition at line 1259 of file patch.c.
Definition at line 846 of file patch.c.
Referenced by START_TEST().
Definition at line 1169 of file patch.c.
Referenced by START_TEST().
Definition at line 663 of file patch.c.
Referenced by START_TEST().
Definition at line 990 of file patch.c.
Referenced by START_TEST().
Definition at line 187 of file patch.c.
Referenced by create_database_suminfo().
|
static |
Definition at line 595 of file patch.c.
Definition at line 35 of file patch.c.
Referenced by test_MsiOpenDatabase(), test_patch_registration(), test_simple_patch(), and test_system_tables().
Definition at line 37 of file patch.c.
Referenced by test_MsiOpenDatabase().
Definition at line 36 of file patch.c.
Referenced by test_MsiOpenDatabase(), test_patch_registration(), test_simple_patch(), and test_system_tables().
Definition at line 38 of file patch.c.
Referenced by test_MsiOpenDatabase().
Definition at line 286 of file patch.c.
Referenced by create_patch().
Definition at line 288 of file patch.c.
Referenced by create_patch().
|
static |
|
static |
|
static |
Definition at line 130 of file patch.c.
Referenced by create_database_suminfo(), test_MsiOpenDatabase(), test_patch_registration(), test_simple_patch(), test_system_tables(), and write_tables().