






Writing a shutdown handler
To create a shutdown handler, you must derive a subclass from TShutdownHandler, overriding these member functions:
- VerifyShutdown()--determines whether the software component can be shut down at this time.
- VerifyShutdownWithUserInteraction()--elicits user input about shutdown if the return code form VerifyShutdown() indicates this is necessary.
- PrepareForShutdown()--saves the software component's persistent data so it will be available when the CommonPoint system restarts.
- CompleteShutdown()--frees resources and terminates threads and tasks used by the software component.
- ShutdownCancelled()--called when a the shutdown procedure is cancelled before it completes.
To learn the required semantics of these member functions, see the definition of TShutdownHandler in the file Shutdown.h. To learn about the support functions available to shutdown handlers, see the definition of TShutdownServerHandle in the same file.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker