Displaying 2 results from an estimated 2 matches for "ctrl_logoff_event".
2002 Oct 28
0
Win32 Version? MODIFICATION NEEDED
...logging off the server.
POSSIBLE SOLUTION
-------------------------
An Event Handler should be added in Rsync for windows binaries.....: following
is the explanation for that:
For WIN32 applications (i.e. Rsync): when the currently logged-in user is
logging-off, all Console applications receive a CTRL_LOGOFF_EVENT event from the
Console.
If your Console application has registered a Console event handler (via
SetConsoleCtrlHandler), it must ignore CTRL_LOGOFF_EVENT in order to survive the
logoff.
_________________
Can we expect some help on this regard?
Thanks in Advance
Nitin Agarwal
2008 Jan 20
0
Ctrl handler makes Ruby crash
...Beep(750, 300)
return true
when CTRL_CLOSE_EVENT
Beep(600, 200)
puts "Ctrl-Close event"
return true
when CTRL_BREAK_EVENT
Beep(900, 200)
puts "Ctrl-Break event"
return false
when CTRL_LOGOFF_EVENT
Beep(1000, 200)
puts "Ctrl-Logoff event"
return false
when CTRL_SHUTDOWN_EVENT
Beep(750, 500)
puts("Ctrl-Shutdown event")
return false
else
return false
end
}
if SetConsoleCtrlHandler(CtrlHa...