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