search for: ctrl_close_event

Displaying 1 result from an estimated 1 matches for "ctrl_close_event".

2008 Jan 20
0
Ctrl handler makes Ruby crash
...#39;' include Windows::Console include Windows::Sound CtrlHandler = Win32::API::Callback.new(''L'', ''I''){ |ctrl_type| case ctrl_type when CTRL_C_EVENT puts "Ctrl-C event" 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-Logof...