Hello,
 
Is there any way to have a Win32::GUI app catch a signal for when a
windows system logs off the current user? What I want to happen is have
my program exit, preferably running some clean up code first, when a
user logs out of windows. Right now, when logging off of windows, an end
program dialog will appear to kill the program and wait until the user
clicks cancel or end before windows will finish the log out. 
I made an EXE out of my PERL code using p2e (PERL version 5.8.4) that
runs while a user is logged into windows. I am able to catch an
interrupt  from a command line using either the $SIG{INT} or the sigtrap
module with normal-signals or error-signals, but I can't seem to find
what signal I need for a log off 'event'. By adding an END block I am
able to perform my clean up code when the program exits normally, or
when the windows user forces and end program from the task manager, but
not for log off.  I have tried with both my program as an EXE and
running it from the command line with PERL. Same result.
 
Any ideas?

Reply via email to