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
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
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
49 #define MAX_FEATURE_CHARS 38
52 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
53 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
54 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
56 UINT WINAPI
MsiEnumProductsA(DWORD index
, LPSTR lpguid
);
57 UINT WINAPI
MsiEnumProductsW(DWORD index
, LPWSTR lpguid
);
58 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
60 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
61 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
62 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
64 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
65 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
66 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
68 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
69 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
70 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
72 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
73 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
74 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
76 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
77 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
78 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
80 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
81 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
82 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
84 UINT WINAPI
MsiGetSummaryInformationA(MSIHANDLE
, LPCSTR
, UINT
, MSIHANDLE
*);
85 UINT WINAPI
MsiGetSummaryInformationW(MSIHANDLE
, LPCWSTR
, UINT
, MSIHANDLE
*);
86 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
88 UINT WINAPI
MsiSummaryInfoGetPropertyA(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPSTR
,DWORD
*);
89 UINT WINAPI
MsiSummaryInfoGetPropertyW(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPWSTR
,DWORD
*);
90 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
92 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
93 UINT WINAPI
MsiCloseAllHandles();
95 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
96 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
97 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
99 UINT WINAPI
MsiGetProductPropertyA(MSIHANDLE
,LPCSTR
,LPSTR
,DWORD
*);
100 UINT WINAPI
MsiGetProductPropertyW(MSIHANDLE
,LPCWSTR
,LPWSTR
,DWORD
*);
101 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
103 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
104 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
105 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
107 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
108 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
109 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
111 #endif /* __WINE_MSI_H */