ApplicationRestartSettings Method

Vista Bridge Library

[This is preliminary documentation and is subject to change.]

Returns the current settings for application restart.

Namespace:  Microsoft.SDK.Samples.VistaBridge.Library.AppRecoveryRestart
Assembly:  VistaBridgeLibrary (in VistaBridgeLibrary.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public static RestartSettings ApplicationRestartSettings(
	IntPtr processHandle
)
Visual Basic (Declaration)
Public Shared Function ApplicationRestartSettings ( _
	processHandle As IntPtr _
) As RestartSettings
Visual C++
public:
static RestartSettings^ ApplicationRestartSettings(
	IntPtr processHandle
)

Parameters

processHandle
Type: System..::.IntPtr
A handle to the application's process.

Return Value

An RestartSettings object that specifies the commandline arguments used to restart the application, and the conditions when the application should not be restarted.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionCannot get the settings due to an invalid parameter.
System..::.InvalidOperationExceptionThe application is not registered for restart.

See Also