Add scripting to your application with Vbsedit !

IActiveScript::GetCurrentScriptThreadID

 

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.

HRESULT GetCurrentScriptThreadID(
    SCRIPTTHREADID *pstidThread  // receives scripting thread identifier
);

pstidThread 

[out] Address of a variable that receives the script thread identifier associated with the current thread. The interpretation of this identifier is left to the scripting engine, but it can be just a copy of the Windows thread identifier. If the Win32 thread terminates, this identifier becomes unassigned and can subsequently be assigned to another thread.

Returns S_OK if successful, or E_POINTER if an invalid pointer was specified.

This method can be called from non-base threads without resulting in a non-base callout to host objects or to the IActiveScriptSite interface.


Add VBScript and Javascript scripting
to your application with VbsEdit !



Download Now!

This package includes VbsEdit 32-bit and 64-bit.




Home  

Copyright © 2001-2024 adersοft