Ejemplo n.º 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"));
 }
Ejemplo n.º 2
0
 private void Cmd_LoggOff_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.LogOff, true);
 }
Ejemplo n.º 3
0
 private void Cmd_Standby_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Suspend, true);
 }
Ejemplo n.º 4
0
 private void Cmd_Restart_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Reboot, true);
 }
Ejemplo n.º 5
0
 private void Cmd_Hibernate_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.Hibernate, true);
 }
Ejemplo n.º 6
0
 private void Cmd_Shutdown_Click(object sender, System.EventArgs e)
 {
     ExitTheWin.ExitWindows(RestartOptions.ShutDown, true);
 }