Is there a way to abort a Windows 95+ shutdown?
I tried the form's OnCloseQuery event and set the CanClose to false. The program reactivated, but Windows shut down anyway.
Basically, when Windows shuts down, I would like to have a Dialog pop-up and ask "Do you wish to Clock Out?". If yes, I would like to abort the Windows shutdown and allow the user to use the program. Then, Windows can be shutdown (again, if necessary).
I am writing an application for use in both Windows 95 and 3.1 (Delphi 1). If the answer applies only to Delphi 2 or above, the information could still be useful.