[Progress Communities] [Progress OpenEdge ABL] Forum Post: SessionEvents in Windows

  • Thread starter Thread starter Roger Blanchard
  • Start date Start date
Status
Not open for further replies.
R

Roger Blanchard

Guest
Does anyone know if we can use the SessionEvents in windows so I can gracefully shutdown myapp. I have no UI just a process spinning that is used for replication. If the user logs off or restarts the PC I want to subscribe to SessionEnding event so I can do what I need to do. I have tried the following but while it compiles just fine the event is not being called. SystemEvents:SessionEnding:Subscribe(OnSessionEnding). METHOD PUBLIC VOID OnSessionEnding (sender AS System.Object, e AS Microsoft.Win32.SessionEndingEventArgs): // shutdown app END METHOD.

Continue reading...
 
Status
Not open for further replies.
Back
Top