Silverfrost Logo About Us | Contact Us
 

%ew - Exit Windows Callback

Purpose

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

Syntax

winio@('%ew',cb_func)
external cb_func

Description

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 shutdown is allowed to proceed. Any other value will abort the shutdown and leave the application running.

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

See also

%cc - Control Closure

 

 

 

Copyright © 1999-2017 Silverfrost Limited