Extended WOWCallback16Ex to support register functions too. This
[wine] / include / msi.h
1 /*
2  * Copyright (C) 2002 Mike McCormack
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_MSI_H
20 #define __WINE_MSI_H
21
22 typedef unsigned long MSIHANDLE;
23 typedef enum tagINSTALLSTATE
24 {
25     INSTALLSTATE_BADCONFIG = -6,
26     INSTALLSTATE_INCOMPLETE = -5,
27     INSTALLSTATE_SOURCEABSENT = -4,
28     INSTALLSTATE_MOREDATA = -3,
29     INSTALLSTATE_INVALIDARG = -2,
30     INSTALLSTATE_UNKNOWN = -1,
31     INSTALLSTATE_BROKEN = 0,
32     INSTALLSTATE_ADVERTISED = 1,
33     INSTALLSTATE_ABSENT = 2,
34     INSTALLSTATE_LOCAL = 3,
35     INSTALLSTATE_SOURCE = 4,
36     INSTALLSTATE_DEFAULT = 5
37 } INSTALLSTATE;
38
39 typedef enum tagINSTALLUILEVEL
40 {
41     INSTALLUILEVEL_NOCHANGE = 0,
42     INSTALLUILEVEL_DEFAULT = 1,
43     INSTALLUILEVEL_NONE = 2,
44     INSTALLUILEVEL_BASIC = 3,
45     INSTALLUILEVEL_REDUCED = 4,
46     INSTALLUILEVEL_FULL = 5
47 } INSTALLUILEVEL;
48
49 #define MSIDBOPEN_READONLY 0
50 #define MSIDBOPEN_TRANSACT 1
51 #define MSIDBOPEN_DIRECT 2
52 #define MSIDBOPEN_CREATE 3
53
54
55 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
56 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
57
58 UINT WINAPI MsiEnumProductsA(DWORD index, LPSTR lpguid);
59 UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid);
60
61 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
62 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
63
64 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
65 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
66
67 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
68 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
69
70 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *);
71 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *);
72
73 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
74 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
75
76 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
77 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
78
79 UINT WINAPI MsiCloseHandle(MSIHANDLE);
80 UINT WINAPI MsiCloseAllHandles();
81
82 UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
83 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
84
85 #endif /* __WINE_MSI_H */