Use docbook2txt to generate the text output instead of adhoc hacks.
[wine/multimedia.git] / include / msi.h
blob40d43a9fd53e1866a55fb66e1f2b64b04ae2d963
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 typedef unsigned long MSIHANDLE;
23 typedef enum tagINSTALLSTATE
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;
39 typedef enum tagINSTALLUILEVEL
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;
49 #define MSIDBOPEN_READONLY 0
50 #define MSIDBOPEN_TRANSACT 1
51 #define MSIDBOPEN_DIRECT 2
52 #define MSIDBOPEN_CREATE 3
55 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
56 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
57 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
59 UINT WINAPI MsiEnumProductsA(DWORD index, LPSTR lpguid);
60 UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid);
61 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
63 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
64 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
65 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
67 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
68 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
69 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
71 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
72 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
73 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
75 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *);
76 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *);
77 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
79 UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
80 UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
81 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
83 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
84 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
85 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
87 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
88 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
89 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
91 UINT WINAPI MsiCloseHandle(MSIHANDLE);
92 UINT WINAPI MsiCloseAllHandles();
94 UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
95 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
96 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
98 #endif /* __WINE_MSI_H */