2003-08-13 01:27:48 +00:00
|
|
|
/*
|
2003-09-27 02:19:48 +00:00
|
|
|
* Copyright (C) 2002,2003 Mike McCormack
|
2003-08-13 01:27:48 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_MSI_H
|
|
|
|
#define __WINE_MSI_H
|
|
|
|
|
2004-04-28 00:29:25 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-08-13 01:27:48 +00:00
|
|
|
typedef unsigned long MSIHANDLE;
|
2004-04-28 00:29:25 +00:00
|
|
|
|
2003-08-13 01:27:48 +00:00
|
|
|
typedef enum tagINSTALLSTATE
|
|
|
|
{
|
|
|
|
INSTALLSTATE_BADCONFIG = -6,
|
|
|
|
INSTALLSTATE_INCOMPLETE = -5,
|
|
|
|
INSTALLSTATE_SOURCEABSENT = -4,
|
|
|
|
INSTALLSTATE_MOREDATA = -3,
|
|
|
|
INSTALLSTATE_INVALIDARG = -2,
|
|
|
|
INSTALLSTATE_UNKNOWN = -1,
|
|
|
|
INSTALLSTATE_BROKEN = 0,
|
|
|
|
INSTALLSTATE_ADVERTISED = 1,
|
|
|
|
INSTALLSTATE_ABSENT = 2,
|
|
|
|
INSTALLSTATE_LOCAL = 3,
|
|
|
|
INSTALLSTATE_SOURCE = 4,
|
|
|
|
INSTALLSTATE_DEFAULT = 5
|
|
|
|
} INSTALLSTATE;
|
|
|
|
|
|
|
|
typedef enum tagINSTALLUILEVEL
|
|
|
|
{
|
|
|
|
INSTALLUILEVEL_NOCHANGE = 0,
|
|
|
|
INSTALLUILEVEL_DEFAULT = 1,
|
|
|
|
INSTALLUILEVEL_NONE = 2,
|
|
|
|
INSTALLUILEVEL_BASIC = 3,
|
|
|
|
INSTALLUILEVEL_REDUCED = 4,
|
|
|
|
INSTALLUILEVEL_FULL = 5
|
|
|
|
} INSTALLUILEVEL;
|
|
|
|
|
2004-04-28 00:29:25 +00:00
|
|
|
typedef enum tagINSTALLLEVEL
|
|
|
|
{
|
|
|
|
INSTALLLEVEL_DEFAULT = 0,
|
|
|
|
INSTALLLEVEL_MINIMUM = 1,
|
|
|
|
INSTALLLEVEL_MAXIMUM = 0xFFFF
|
|
|
|
} INSTALLLEVEL;
|
|
|
|
|
|
|
|
|
2004-03-15 20:10:50 +00:00
|
|
|
#define MAX_FEATURE_CHARS 38
|
|
|
|
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
|
|
|
|
UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiEnumProductsA(DWORD index, LPSTR lpguid);
|
|
|
|
UINT WINAPI MsiEnumProductsW(DWORD index, LPWSTR lpguid);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
|
|
|
|
UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
|
|
|
|
UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
|
|
|
|
UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *);
|
|
|
|
UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
|
|
|
|
|
|
|
|
UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
|
|
|
|
UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
|
|
|
|
#define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
2004-04-28 00:29:25 +00:00
|
|
|
UINT WINAPI MsiOpenPackageExA(LPCSTR, DWORD, MSIHANDLE*);
|
|
|
|
UINT WINAPI MsiOpenPackageExW(LPCWSTR, DWORD, MSIHANDLE*);
|
|
|
|
#define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
|
|
|
|
|
2003-10-30 22:47:42 +00:00
|
|
|
UINT WINAPI MsiOpenProductA(LPCSTR, MSIHANDLE*);
|
|
|
|
UINT WINAPI MsiOpenProductW(LPCWSTR, MSIHANDLE*);
|
|
|
|
#define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
|
|
|
|
|
2003-08-13 01:27:48 +00:00
|
|
|
UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
|
|
|
|
UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
|
|
|
|
UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
|
|
|
UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
|
|
|
|
UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
|
2003-09-27 02:19:48 +00:00
|
|
|
#define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
|
2003-08-13 01:27:48 +00:00
|
|
|
|
2004-03-15 20:10:50 +00:00
|
|
|
UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
|
|
|
|
UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
|
|
|
|
#define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
|
|
|
|
|
2004-04-28 00:29:25 +00:00
|
|
|
UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, DWORD*);
|
|
|
|
UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, DWORD*);
|
|
|
|
#define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
|
|
|
|
|
2003-11-05 01:42:02 +00:00
|
|
|
UINT WINAPI MsiVerifyPackageA(LPCSTR);
|
|
|
|
UINT WINAPI MsiVerifyPackageW(LPCWSTR);
|
|
|
|
#define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
|
|
|
|
|
2003-12-01 22:38:43 +00:00
|
|
|
INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
|
|
|
|
INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
|
2004-04-28 00:29:25 +00:00
|
|
|
#define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
|
|
|
|
|
|
|
|
UINT WINAPI MsiConfigureProductA(LPCSTR szProduct, int iInstallLevel, INSTALLSTATE eInstallState);
|
|
|
|
UINT WINAPI MsiConfigureProductW(LPCWSTR szProduct, int iInstallLevel, INSTALLSTATE eInstallState);
|
|
|
|
#define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
|
|
|
|
|
|
|
|
UINT WINAPI MsiGetProductCodeA(LPCSTR szComponent, LPSTR szBuffer);
|
|
|
|
UINT WINAPI MsiGetProductCodeW(LPCWSTR szComponent, LPWSTR szBuffer);
|
|
|
|
#define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
|
|
|
|
|
|
|
|
UINT WINAPI MsiGetProductInfoA(LPCSTR szProduct, LPCSTR szAttribute, LPSTR szBuffer, DWORD *pcchValueBuf);
|
|
|
|
UINT WINAPI MsiGetProductInfoW(LPCWSTR szProduct, LPCWSTR szAttribute, LPWSTR szBuffer, DWORD *pcchValueBuf);
|
|
|
|
#define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
|
|
|
|
|
|
|
|
UINT WINAPI MsiEnableLogA(DWORD dwLogMode, LPCSTR szLogFile, BOOL fAppend);
|
|
|
|
UINT WINAPI MsiEnableLogW(DWORD dwLogMode, LPCWSTR szLogFile, BOOL fAppend);
|
|
|
|
#define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Non Unicode
|
|
|
|
*/
|
|
|
|
UINT WINAPI MsiCloseHandle(MSIHANDLE);
|
|
|
|
UINT WINAPI MsiCloseAllHandles();
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2003-12-01 22:38:43 +00:00
|
|
|
|
2003-08-13 01:27:48 +00:00
|
|
|
#endif /* __WINE_MSI_H */
|