[Harbour] Re: Trap / run routine when MS Windows red X box closed?

Saulius Zrelskis labitas at gmail.com
Tue Mar 2 04:40:46 EST 2010


> Oh yes, so you are using GTWIN.
> No, for this GT "Close -> X" button cannot be manipulated.

It can, through API SetConsoleCtrlHandler(). Handles events:
CTRL_C_EVENT
CTRL_BREAK_EVENT
CTRL_CLOSE_EVENT             <<<===
CTRL_LOGOFF_EVENT
CTRL_SHUTDOWN_EVENT

Best regards,
Saulius


More information about the Harbour mailing list