[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Detecting Windows Shutdown

Dennis Misener

6/29/2005 2:48:00 PM

I needed to perform an orderly shutdown of a Webrick based Ruby
application.

I thought about trying to catch the WM_QUERYENDSESSION message which is
sent to all programs when a request to shutdown Windows is made, in
order to execute some code before Windows exits.

Does anyone know how to do that in Ruby?

Is it even possible?