CWhsExec.Terminatemethod
Instructs the script engine to end the process started by the Exec method.
Syntax
FUNCTION Terminate
Description
Instructs the script engine to end the process started by the Exec method (called by the constructor).
Remarks
The Terminate method does not return a value. Use the Terminate method only as a last resort since some applications do not clean up properly. As a general rule, let the process run its course and end on its own. The Terminate method attempts to end a process using the WM_CLOSE message. If that does not work, it kills the process immediately without going through the normal shutdown procedure.
Reference
- Defined in AfxNova/AfxWsh.inc:453
- Documented in Windows/Windows Script/Windows Shell.md
- Topic: Windows Shell