/// <summary> /// To check the shell32.dll to for method "SHObjectProperties" shell32.dll version 5.0 or later required /// </summary> /// <returns>returns true if it is found otherwise false</returns> private bool CheckForEntryPoint() { return (ExitTheWin.CheckEntryPoint("shell32.dll", "SHObjectProperties")); }
private void Cmd_LoggOff_Click(object sender, System.EventArgs e) { ExitTheWin.ExitWindows(RestartOptions.LogOff, true); }
private void Cmd_Standby_Click(object sender, System.EventArgs e) { ExitTheWin.ExitWindows(RestartOptions.Suspend, true); }
private void Cmd_Restart_Click(object sender, System.EventArgs e) { ExitTheWin.ExitWindows(RestartOptions.Reboot, true); }
private void Cmd_Hibernate_Click(object sender, System.EventArgs e) { ExitTheWin.ExitWindows(RestartOptions.Hibernate, true); }
private void Cmd_Shutdown_Click(object sender, System.EventArgs e) { ExitTheWin.ExitWindows(RestartOptions.ShutDown, true); }