Allows a host to specify that a script should terminate.
HRESULT QueryContinue();
This method takes no parameters.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | The call succeeded and the host permits the script to continue running. |
S_FALSE | The call succeeded and the host requests that the script terminate. |
The hosted script should terminate unless the return value of the QueryContinue method is S_OK. A return value of S_FALSE indicates that the host explicitly requests that the script terminate.
A multithreaded host may use the IActiveScript::InterruptScriptThread method to terminate a script.