JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.util.win32session
Class Win32SessionManager

java.lang.Object
  extended by org.xvolks.jnative.util.win32session.Win32SessionManager

public class Win32SessionManager
extends java.lang.Object


Nested Class Summary
static interface Win32SessionManager.EndSessionListener
           
 
Constructor Summary
Win32SessionManager()
           
 
Method Summary
static void addEndSessionListener(Win32SessionManager.EndSessionListener listener)
           
static void fireEndSessionOccured(Win32SessionManager.EndSessionListener.Origin origin)
           
static boolean fireQueryEndSessionOccured(Win32SessionManager.EndSessionListener.Origin origin)
           
static void fireShutdownOccured(Win32SessionManager.EndSessionListener.Origin origin)
           
static void main(java.lang.String[] args)
           
static void registerEndSessionHook(java.lang.String windowName)
          Be aware that calling this method eats one callback and the registerWindowProc slot !
static boolean removeEndSessionListener(Win32SessionManager.EndSessionListener listener)
           
static boolean unregisterEndSessionHook()
           
static void writeLog(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Win32SessionManager

public Win32SessionManager()
Method Detail

addEndSessionListener

public static void addEndSessionListener(Win32SessionManager.EndSessionListener listener)

removeEndSessionListener

public static boolean removeEndSessionListener(Win32SessionManager.EndSessionListener listener)

fireQueryEndSessionOccured

public static boolean fireQueryEndSessionOccured(Win32SessionManager.EndSessionListener.Origin origin)

fireEndSessionOccured

public static void fireEndSessionOccured(Win32SessionManager.EndSessionListener.Origin origin)

fireShutdownOccured

public static void fireShutdownOccured(Win32SessionManager.EndSessionListener.Origin origin)

unregisterEndSessionHook

public static boolean unregisterEndSessionHook()
                                        throws NativeException,
                                               java.lang.IllegalAccessException
Throws:
NativeException
java.lang.IllegalAccessException

registerEndSessionHook

public static void registerEndSessionHook(java.lang.String windowName)
                                   throws NativeException,
                                          java.lang.IllegalAccessException
Be aware that calling this method eats one callback and the registerWindowProc slot !
This also prevents the app to close.

Throws:
java.lang.IllegalAccessException
NativeException

writeLog

public static void writeLog(java.lang.String message)

main

public static void main(java.lang.String[] args)
                 throws NativeException,
                        java.lang.IllegalAccessException
Throws:
NativeException
java.lang.IllegalAccessException

JNative v1.3 project : see http://jnative.sf.net