Add description for MsiGetMode, MSIRUNMODE constants.

This commit is contained in:
Vitaly Lipatov 2004-12-16 14:29:25 +00:00 committed by Alexandre Julliard
parent 1d90e4312f
commit 5c4116bc66
2 changed files with 62 additions and 3 deletions

View File

@ -4676,10 +4676,44 @@ UINT WINAPI MsiSetTargetPathW(MSIHANDLE hInstall, LPCWSTR szFolder,
return ret;
}
BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, DWORD iRunMode)
/***********************************************************************
* MsiGetMode (MSI.@)
*
* Returns an internal installer state (if it is running in a mode iRunMode)
*
* PARAMS
* hInstall [I] Handle to the installation
* hRunMode [I] Checking run mode
* MSIRUNMODE_ADMIN Administrative mode
* MSIRUNMODE_ADVERTISE Advertisement mode
* MSIRUNMODE_MAINTENANCE Maintenance mode
* MSIRUNMODE_ROLLBACKENABLED Rollback is enabled
* MSIRUNMODE_LOGENABLED Log file is writing
* MSIRUNMODE_OPERATIONS Operations in progress??
* MSIRUNMODE_REBOOTATEND We need to reboot after installation completed
* MSIRUNMODE_REBOOTNOW We need to reboot to continue the installation
* MSIRUNMODE_CABINET Files from cabinet are installed
* MSIRUNMODE_SOURCESHORTNAMES Long names in source files is supressed
* MSIRUNMODE_TARGETSHORTNAMES Long names in destination files is supressed
* MSIRUNMODE_RESERVED11 Reserved
* MSIRUNMODE_WINDOWS9X Running under Windows95/98
* MSIRUNMODE_ZAWENABLED Demand installation is supported
* MSIRUNMODE_RESERVED14 Reserved
* MSIRUNMODE_RESERVED15 Reserved
* MSIRUNMODE_SCHEDULED called from install script
* MSIRUNMODE_ROLLBACK called from rollback script
* MSIRUNMODE_COMMIT called from commit script
*
* RETURNS
* In the state: TRUE
* Not in the state: FALSE
*
*/
BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
{
FIXME("STUB (%li)\n",iRunMode);
return FALSE;
FIXME("STUB (iRunMode=%i)\n",iRunMode);
return TRUE;
}
/*

View File

@ -59,7 +59,30 @@ typedef enum tagMSIMODIFY
#define MSIDBOPEN_TRANSACT (LPCTSTR)1
#define MSIDBOPEN_DIRECT (LPCTSTR)2
#define MSIDBOPEN_CREATE (LPCTSTR)3
#define MSIDBOPEN_CREATEDIRECT (LPCTSTR)4
typedef enum tagMSIRUNMODE
{
MSIRUNMODE_ADMIN = 0,
MSIRUNMODE_ADVERTISE = 1,
MSIRUNMODE_MAINTENANCE = 2,
MSIRUNMODE_ROLLBACKENABLED = 3,
MSIRUNMODE_LOGENABLED = 4,
MSIRUNMODE_OPERATIONS = 5,
MSIRUNMODE_REBOOTATEND = 6,
MSIRUNMODE_REBOOTNOW = 7,
MSIRUNMODE_CABINET = 8,
MSIRUNMODE_SOURCESHORTNAMES = 9,
MSIRUNMODE_TARGETSHORTNAMES = 10,
MSIRUNMODE_RESERVED11 = 11,
MSIRUNMODE_WINDOWS9X = 12,
MSIRUNMODE_ZAWENABLED = 13,
MSIRUNMODE_RESERVED14 = 14,
MSIRUNMODE_RESERVED15 = 15,
MSIRUNMODE_SCHEDULED = 16,
MSIRUNMODE_ROLLBACK = 17,
MSIRUNMODE_COMMIT = 18
} MSIRUNMODE;
/* view manipulation */
UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*);
@ -155,4 +178,6 @@ UINT WINAPI MsiSetFeatureStateA( MSIHANDLE, LPCSTR, INSTALLSTATE);
UINT WINAPI MsiSetFeatureStateW( MSIHANDLE, LPCWSTR, INSTALLSTATE);
#define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE);
#endif /* __WINE_MSIQUERY_H */