| Microsoft® Windows® Script Interfaces IActiveScript::GetScriptThreadState |
Language Reference Previous Next |
HRESULT GetScriptThreadState( SCRIPTTHREADID stidThread, // identifier of script thread SCRIPTTHREADSTATE *pstsState // receives state flag );
Retrieves the current state of a script thread.
| Return Value | Meaning |
| S_OK | Success. |
| E_POINTER | An invalid pointer was specified. |
| E_UNEXPECTED | The call was not expected (for example, the scripting engine has not yet been loaded or initialized). |
| Value | Meaning |
| SCRIPTTHREADID_BASE | The base thread; that is, the thread in which the scripting engine was instantiated. |
| SCRIPTTHREADID_CURRENT | The currently executing thread. |
This method can be called from non-base threads without resulting in a non-base callout to host objects or to the IActiveScriptSite interface.