[fpc-pascal] Detecting console close with red X on windows

Henry Vermaak henry.vermaak at gmail.com
Sun May 19 17:44:16 CEST 2019

On Sun, 19 May 2019 at 14:33, James Richters
<james at productionautomation.net> wrote:
> Could I please get an example of this?  I see lots of examples of how to do it in C but when I try to translate to pascal I always struggle a quite a bit.

Have a look at the fpc source in packages/fv/src/w32msg.inc and search
for SetConsoleCtrlHandler and then HandleConsoleCtrl.  There's nothing
to it, really.


More information about the fpc-pascal mailing list