/// <summary> /// Called by an application's <see cref="RecoveryCallback"/> method to /// indicate that the recovery work is complete. /// </summary> /// <remarks> /// This should /// be the last call made by the <see cref="RecoveryCallback"/> method because /// Windows Error Reporting will terminate the application /// after this method is invoked. /// </remarks> /// <param name="success"><b>true</b> to indicate the the program was able to complete its recovery /// work before terminating; otherwise <b>false</b>.</param> public static void ApplicationRecoveryFinished(bool success) { // Throw PlatformNotSupportedException if the user is not running Vista or beyond CoreHelpers.ThrowIfNotVista(); AppRestartRecoveryNativeMethods.ApplicationRecoveryFinished(success); }
/// <summary> /// Called by an application's <see cref="RecoveryCallback"/> method to /// indicate that the recovery work is complete. /// </summary> /// <remarks> /// This should /// be the last call made by the <see cref="RecoveryCallback"/> method because /// Windows Error Reporting will terminate the application /// after this method is invoked. /// </remarks> /// <param name="success"><b>true</b> to indicate the the program was able to complete its recovery /// work before terminating; otherwise <b>false</b>.</param> public static void ApplicationRecoveryFinished(bool success) { CoreHelpers.ThrowIfNotVista(); AppRestartRecoveryNativeMethods.ApplicationRecoveryFinished(success); }