So I have this c++ console application that takes a while to close. In my SetConsoleCtrlHandler handler I have to write some things to disk before my program can closes. So when you close my application the End Program dialog comes up because Windows thinks my application is not responding. Is there a way for me to tell Windows "hey I am still responding, it just takes me a while to close"?