Пример #1
0
 /// <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"));
 }
Пример #2
0
 private void Cmd_LoggOff_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.LogOff, true);
 }
Пример #3
0
 private void Cmd_Standby_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Suspend, true);
 }
Пример #4
0
 private void Cmd_Restart_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Reboot, true);
 }
Пример #5
0
 private void Cmd_Hibernate_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Hibernate, true);
 }
Пример #6
0
 private void Cmd_Shutdown_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.ShutDown, true);
 }