packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Core/AppRestartRecovery/ApplicationRestartRecoveryManager.cs
/// <summary>
/// Called by an application's <see cref="RecoveryCallback"/> method 
/// to indicate that it is still performing recovery work.
/// </summary>
/// <returns>A <see cref="System.Boolean"/> value indicating whether the user
/// canceled the recovery.</returns>
/// <exception cref="Microsoft.WindowsAPICodePack.ApplicationServices.ApplicationRecoveryException">
/// This method must be called from a registered callback method.</exception>
Called by an application's  method
to indicate that it is still performing recovery work.
Called by an application ' s method to indicate that it is still performing recovery work .
public static bool ApplicationRecoveryInProgress()
        {            
            CoreHelpers.ThrowIfNotVista();
            bool canceled = false;
            HResult hr = AppRestartRecoveryNativeMethods.ApplicationRecoveryInProgress(out canceled);
            if (!CoreErrorHelper.Succeeded(hr))
            {
                throw new InvalidOperationException(LocalizedMessages.ApplicationRecoveryMustBeCalledFromCallback);
            }
            return canceled;
        }
public static bool ApplicationRecoveryInProgress ( ) { CoreHelpers . ThrowIfNotVista ( ) ; bool canceled = false ; HResult hr = AppRestartRecoveryNativeMethods . ApplicationRecoveryInProgress ( out canceled ) ; if ( ! CoreErrorHelper . Succeeded ( hr ) ) { throw new InvalidOperationException ( LocalizedMessages . ApplicationRecoveryMustBeCalledFromCallback ) ; } return canceled ; }
Called by an application's  method
to indicate that it is still performing recovery work.
Called by an application ' s method to indicate that it is still performing recovery work .
A  value indicating whether the user
canceled the recovery.
A value indicating whether the user canceled the recovery .
This method must be called from a registered callback method.
This method must be called from a registered callback method .