Manu posted this question in 2007: http://www.adras.com/Using-SetConsoleCtrlHandler.t2814-192.html