SCRIPTPROP_HOSTKEEPALIVE Property

Used to specify whether or not the scripting engine should be kept fully functional if there are outstanding references.

Use IActiveScriptProperty::SetProperty to set this property to true. If this property is set to true, the scripting engine is kept fully functional as long as there is at least one outstanding reference either to the scripting engine itself or to an IDispatch pointer to a JavaScript object created by using the scripting engine. When this property is set to true, you should not explicitly close or reset the script engine by using the IActiveScript::Close or IActiveScript::SetScriptState methods. The release of the last reference to a script object shuts the script engine down.

Syntax

#define SCRIPTPROP_HOSTKEEPALIVE 0x70000004  

Requirements

This property appears only in the version of activscp.idl that is installed with Windows 8, with KB 2707082 for Internet Explorer 8 on Windows 7, or with KB 2722913 for Internet Explorer 9 on Windows 7 or Windows Vista.