/// <summary> /// Causes the terminal server to shutdown. /// </summary> /// <param name="flag">The action to take.</param> public void Shutdown(WtsShutdownFlags flag) { if (!Win32.WTSShutdownSystem(this, flag)) { Win32.ThrowLastError(); } }
/// <summary> /// Causes the terminal server to shutdown. /// </summary> /// <param name="flag">The action to take.</param> public void Shutdown(WtsShutdownFlags flag) { if (!Win32.WTSShutdownSystem(this, flag)) Win32.Throw(); }