Prevent garbage being passed for windows directory.
[wine/multimedia.git] / include / msi.h
blob72f67fee98986496533952032be491b43b026bb5
1 /*
2 * Copyright (C) 2002,2003 Mike McCormack
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.
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.
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
19 #ifndef __WINE_MSI_H
20 #define __WINE_MSI_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 typedef unsigned long MSIHANDLE;
28 typedef enum tagINSTALLSTATE
30 INSTALLSTATE_BADCONFIG = -6,
31 INSTALLSTATE_INCOMPLETE = -5,
32 INSTALLSTATE_SOURCEABSENT = -4,
33 INSTALLSTATE_MOREDATA = -3,
34 INSTALLSTATE_INVALIDARG = -2,
35 INSTALLSTATE_UNKNOWN = -1,
36 INSTALLSTATE_BROKEN = 0,
37 INSTALLSTATE_ADVERTISED = 1,
38 INSTALLSTATE_ABSENT = 2,
39 INSTALLSTATE_LOCAL = 3,
40 INSTALLSTATE_SOURCE = 4,
41 INSTALLSTATE_DEFAULT = 5
42 } INSTALLSTATE;
44 typedef enum tagINSTALLUILEVEL
46 INSTALLUILEVEL_NOCHANGE = 0,
47 INSTALLUILEVEL_DEFAULT = 1,
48 INSTALLUILEVEL_NONE = 2,
49 INSTALLUILEVEL_BASIC = 3,
50 INSTALLUILEVEL_REDUCED = 4,
51 INSTALLUILEVEL_FULL = 5
52 } INSTALLUILEVEL;
54 typedef enum tagINSTALLLEVEL
56 INSTALLLEVEL_DEFAULT = 0,
57 INSTALLLEVEL_MINIMUM = 1,
58 INSTALLLEVEL_MAXIMUM = 0xFFFF
59 } INSTALLLEVEL;
61 typedef enum tagINSTALLMESSAGE
63 INSTALLMESSAGE_FATALEXIT = 0,
64 INSTALLMESSAGE_ERROR = 0x01000000,
65 INSTALLMESSAGE_WARNING = 0x02000000,
66 INSTALLMESSAGE_USER = 0x03000000,
67 INSTALLMESSAGE_INFO = 0x04000000,
68 INSTALLMESSAGE_FILESINUSE = 0x05000000,
69 INSTALLMESSAGE_RESOLVESOURCE = 0x06000000,
70 INSTALLMESSAGE_OUTOFDISKSPACE = 0x07000000,
71 INSTALLMESSAGE_ACTIONSTART = 0x08000000,
72 INSTALLMESSAGE_ACTIONDATA = 0x09000000,
73 INSTALLMESSAGE_PROGRESS = 0x0a000000,
74 INSTALLMESSAGE_COMMONDATA = 0x0b000000,
75 INSTALLMESSAGE_INITIALIZE = 0x0c000000,
76 INSTALLMESSAGE_TERMINATE = 0x0d000000,
77 INSTALLMESSAGE_SHOWDIALOG = 0x0e000000
78 } INSTALLMESSAGE;
80 typedef enum tagINSTALLLOGMODE
82 INSTALLLOGMODE_FATALEXIT = (1 << (INSTALLMESSAGE_FATALEXIT >> 24)),
83 INSTALLLOGMODE_ERROR = (1 << (INSTALLMESSAGE_ERROR >> 24)),
84 INSTALLLOGMODE_WARNING = (1 << (INSTALLMESSAGE_WARNING >> 24)),
85 INSTALLLOGMODE_USER = (1 << (INSTALLMESSAGE_USER >> 24)),
86 INSTALLLOGMODE_INFO = (1 << (INSTALLMESSAGE_INFO >> 24)),
87 INSTALLLOGMODE_RESOLVESOURCE = (1 << (INSTALLMESSAGE_RESOLVESOURCE >> 24)),
88 INSTALLLOGMODE_OUTOFDISKSPACE = (1 << (INSTALLMESSAGE_OUTOFDISKSPACE >> 24)),
89 INSTALLLOGMODE_ACTIONSTART = (1 << (INSTALLMESSAGE_ACTIONSTART >> 24)),
90 INSTALLLOGMODE_ACTIONDATA = (1 << (INSTALLMESSAGE_ACTIONDATA >> 24)),
91 INSTALLLOGMODE_COMMONDATA = (1 << (INSTALLMESSAGE_COMMONDATA >> 24)),
92 INSTALLLOGMODE_PROPERTYDUMP = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
93 INSTALLLOGMODE_VERBOSE = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
94 INSTALLLOGMODE_EXTRADEBUG = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
95 INSTALLLOGMODE_PROGRESS = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
96 INSTALLLOGMODE_INITIALIZE = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
97 INSTALLLOGMODE_TERMINATE = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
98 INSTALLLOGMODE_SHOWDIALOG = (1 << (INSTALLMESSAGE_SHOWDIALOG >> 24))
99 } INSTALLLOGMODE;
101 #define MAX_FEATURE_CHARS 38
103 typedef INT (CALLBACK *INSTALLUI_HANDLERA)(LPVOID pvContext, UINT iMessageType,
104 LPCSTR szMessage);
105 typedef INT (CALLBACK *INSTALLUI_HANDLERW)(LPVOID pvContext, UINT iMessageType,
106 LPCWSTR szMessage);
108 UINT WINAPI MsiAdvertiseProductA(LPCSTR, LPCSTR, LPCSTR, LANGID);
109 UINT WINAPI MsiAdvertiseProductW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID);
110 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
112 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
113 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
114 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
116 UINT WINAPI MsiEnumProductsA(DWORD index, LPSTR lpguid);
117 UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid);
118 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
120 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
121 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
122 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
124 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
125 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
126 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
128 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
129 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
130 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
132 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *);
133 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *);
134 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
136 UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
137 UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
138 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
140 UINT WINAPI MsiOpenPackageExA(LPCSTR, DWORD, MSIHANDLE*);
141 UINT WINAPI MsiOpenPackageExW(LPCWSTR, DWORD, MSIHANDLE*);
142 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
144 UINT WINAPI MsiOpenProductA(LPCSTR, MSIHANDLE*);
145 UINT WINAPI MsiOpenProductW(LPCWSTR, MSIHANDLE*);
146 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
148 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
149 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
150 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
152 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
153 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
154 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
156 UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
157 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
158 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
160 UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
161 UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
162 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
164 UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, DWORD*);
165 UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, DWORD*);
166 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
168 UINT WINAPI MsiVerifyPackageA(LPCSTR);
169 UINT WINAPI MsiVerifyPackageW(LPCWSTR);
170 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
172 INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
173 INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
174 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
176 UINT WINAPI MsiConfigureProductA(LPCSTR szProduct, int iInstallLevel, INSTALLSTATE eInstallState);
177 UINT WINAPI MsiConfigureProductW(LPCWSTR szProduct, int iInstallLevel, INSTALLSTATE eInstallState);
178 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
180 UINT WINAPI MsiGetProductCodeA(LPCSTR szComponent, LPSTR szBuffer);
181 UINT WINAPI MsiGetProductCodeW(LPCWSTR szComponent, LPWSTR szBuffer);
182 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
184 UINT WINAPI MsiGetProductInfoA(LPCSTR szProduct, LPCSTR szAttribute, LPSTR szBuffer, DWORD *pcchValueBuf);
185 UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute, LPWSTR szBuffer, DWORD *pcchValueBuf);
186 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
188 UINT WINAPI MsiEnableLogA(DWORD dwLogMode, LPCSTR szLogFile, BOOL fAppend);
189 UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, BOOL fAppend);
190 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
192 INSTALLUI_HANDLERA WINAPI MsiSetExternalUIA(INSTALLUI_HANDLERA, DWORD, LPVOID);
193 INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW, DWORD, LPVOID);
194 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
196 INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR, LPCSTR, LPSTR, DWORD*);
197 INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR, LPCWSTR, LPWSTR, DWORD*);
198 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
200 INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR szProduct, LPCSTR szFeature);
201 INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR szProduct, LPCWSTR szFeature);
202 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
205 * Non Unicode
207 UINT WINAPI MsiCloseHandle(MSIHANDLE);
208 UINT WINAPI MsiCloseAllHandles();
210 #ifdef __cplusplus
212 #endif
214 #endif /* __WINE_MSI_H */