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
50 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
51 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
52 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
54 UINT WINAPI
MsiEnumProductsA(DWORD index
, LPSTR lpguid
);
55 UINT WINAPI
MsiEnumProductsW(DWORD index
, LPWSTR lpguid
);
56 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
58 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
59 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
60 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
62 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
63 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
64 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
66 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
67 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
68 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
70 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
71 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
72 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
74 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
75 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
76 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
78 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
79 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
80 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
82 UINT WINAPI
MsiGetSummaryInformationA(MSIHANDLE
, LPCSTR
, UINT
, MSIHANDLE
*);
83 UINT WINAPI
MsiGetSummaryInformationW(MSIHANDLE
, LPCWSTR
, UINT
, MSIHANDLE
*);
84 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
86 UINT WINAPI
MsiSummaryInfoGetPropertyA(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPSTR
,DWORD
*);
87 UINT WINAPI
MsiSummaryInfoGetPropertyW(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPWSTR
,DWORD
*);
88 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
90 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
91 UINT WINAPI
MsiCloseAllHandles();
93 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
94 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
95 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
97 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
98 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
99 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
101 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
102 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
103 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
105 #endif /* __WINE_MSI_H */