| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 /** | 
|  | 2  * \file close_application.cpp | 
|  | 3  */ | 
|  | 4 | 
|  | 5 #include "session.h" | 
|  | 6 | 
|  | 7 //------------------------------------------------------- | 
|  | 8 // Fail | 
|  | 9 //------------------------------------------------------- | 
|  | 10 /** | 
|  | 11  * A custom action that always and immediately fails. | 
|  | 12  * Use during testing to ensure that the installer terminates. | 
|  | 13  * | 
|  | 14  * \param[in] session_handle | 
|  | 15  *     Windows installer session handle | 
|  | 16  * | 
|  | 17  * \return | 
|  | 18  *    An integer interpreted as a custom action return value. | 
|  | 19  * | 
|  | 20  * \sa | 
|  | 21  *   - MSDN [Custom Action Return Values](http://msdn.microsoft.com/en-us/librar
    y/aa368072%28v=vs.85%29.aspx) | 
|  | 22  */ | 
|  | 23 extern "C" UINT __stdcall | 
|  | 24 fail( MSIHANDLE session_handle ) | 
|  | 25 { | 
|  | 26   // Instantiate the session object in order to get begin/end log entries. | 
|  | 27   Immediate_Session session( session_handle, "fail" ) ; | 
|  | 28   return ERROR_INSTALL_FAILURE ; | 
|  | 29 } | 
| OLD | NEW | 
|---|