Retrieves the current state of the scripting engine. This method can be called from non-base threads without resulting in a non-base callout to host objects or to the IActiveScriptSite interface.

Microsoft® Windows® Script Interfaces
IActiveScript::GetScriptState
 Language Reference
Previous
Next

  HRESULT GetScriptState(
    SCRIPTSTATE *pss  // address of structure for state information
);

IActiveScriptSite

  • Returns S_OK if successful, or E_POINTER if an invalid pointer was specified.
  • pss
    [out] Address of a variable that receives a value defined in the SCRIPTSTATE enumeration. The value indicates the current state of the scripting engine associated with the calling thread.