Console - function to be called at shutdown
I am thinking about solution for maintaining large amounts of scripts running on servers.
The problem occurs, when new installation of thinBASIC arrives, and I would like to shut them down before the update.
Because most of the scripts are console based, I cannot handle this by processing %WM_CLOSE, but would need something similar.
Now, thinBASIC has TBMain, which is called automagically, so what about new one:
- TBTerminate
Would be called, when somebody attempts to kill thinBASIC process.
It could return a value, indicating whether the shutdown can be performed, or it could also block it.
Let me know, what do you think...
Petr