Microsoft® Windows® Script Interfaces IActiveScript::GetCurrentScriptThreadID |
Language Reference Previous Next |
HRESULT GetCurrentScriptThreadID( SCRIPTTHREADID *pstidThread // receives scripting thread identifier );
Retrieves a scripting-engine-defined identifier for the currently executing thread. The identifier can be used in subsequent calls to script thread execution-control methods such as the IActiveScript::InterruptScriptThread method.
This method can be called from non-base threads without resulting in a non-base callout to host objects or to the IActiveScriptSite interface.