com.jniwrapper.win32.system
Class WindowsSession

java.lang.Object
  extended by com.jniwrapper.win32.system.WindowsSession

public class WindowsSession
extends java.lang.Object

This class responds for termination of windows session.


Method Summary
static boolean logoff(boolean isNotify)
          Logs off the current user.
static boolean powerOff(boolean isNotify)
          Shuts the system down and power off.
static boolean reboot(boolean isNotify)
          Shuts the system down and restarts the system.
static boolean shutdown(boolean isNotify)
          Shuts the system down.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logoff

public static boolean logoff(boolean isNotify)
Logs off the current user.

Parameters:
isNotify - if true then notify other application about shutdown else don't notify
Returns:
true if succeeded else returns false.

shutdown

public static boolean shutdown(boolean isNotify)
Shuts the system down.

Parameters:
isNotify - if true then notify other application about shutdown else don't notify
Returns:
true if succeeded else returns false.

powerOff

public static boolean powerOff(boolean isNotify)
Shuts the system down and power off.

Parameters:
isNotify - if true then notify other application about shutdown else don't notify
Returns:
true if succeeded else returns false.

reboot

public static boolean reboot(boolean isNotify)
Shuts the system down and restarts the system.

Parameters:
isNotify - if true then notify other application about shutdown else don't notify
Returns:
true if succeeded else returns false.