C# Class NanoByte.Common.Native.WindowsRestartManager

Provides an interface to the Windows Restart Manager. Supported on Windows Vista or newer.
See https://msdn.microsoft.com/en-us/library/windows/desktop/cc948910
Inheritance: System.MarshalByRefObject, IDisposable
Show file Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Ends the Restart Manager session.

WindowsRestartManager ( ) : System

Starts a new Restart Manager session.

Private Methods

Method Description
BuildException ( int error ) : Exception

Builds a suitable Exception for a given Win32Exception.NativeErrorCode.

CancellationCallback ( ) : void
DisposeNative ( ) : void
ListAppProblems ( bool &permissionDenied ) : IEnumerable
ListApps ( [ handler ) : string[]
ListAppsInternal ( uint &arrayLength, System.NativeMethods &rebootReasons ) : NativeMethods.RM_PROCESS_INFO[]
RegisterResources ( ) : void
RestartApps ( [ handler ) : void
RestartAppsWork ( PercentProgressCallback progressCallback ) : void
ShutdownApps ( [ handler ) : void
ShutdownAppsWork ( PercentProgressCallback progressCallback ) : void

Method Details

Dispose() public method

Ends the Restart Manager session.
public Dispose ( ) : void
return void

WindowsRestartManager() public method

Starts a new Restart Manager session.
The Restart Manager API returned an error. The current platform does not support the Restart Manager. Needs Windows Vista or newer.
public WindowsRestartManager ( ) : System
return System