Retrieves the range of characters and the script engine corresponding to a script block.
HRESULT GetScriptBlockInfo( DWORD_PTR dwSourceContext, IActiveScript** ppasd, ULONG* piCharPos, ULONG* pcChars );
- dwSourceContext
[in] The source context for the script block.
- ppasd
[out] The script engine for this script block.
- piCharPos
[out] Location of the start of the script block.
- cChars
[out] Number of characters in the script block.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK | The method succeeded. |
This method retrieves the range of characters and the script engine corresponding to a script block.