Silverfrost Logo About Us | Contact Us

%ew - Exit Windows Callback


To specify a call-back function to be called if the user shuts down the Windows session (exit Windows) whilst the program is running.


external cb_func


The call-back function could be used to ask the user if results are to be saved before the session ends, etc.. If the call-back function returns zero, the shut-down is allowed to proceed. Any other value will abort the shut-down and leave the application running.

Note that if your program allows shut-down to proceed, other applications that are still running may still elect to abort the shut-down.

See also

%cc - Control Closure




Copyright © 1999-2019 Silverfrost Limited