NanoByte.Common.Native.WindowsRestartManager.WindowsRestartManager C# (CSharp) Method

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
        public WindowsRestartManager()
        {
            if (!WindowsUtils.IsWindowsVista) throw new PlatformNotSupportedException();

            int ret = NativeMethods.RmStartSession(out _sessionHandle, 0, Guid.NewGuid().ToString());
            if (ret != 0) throw BuildException(ret);
        }