Notifies the helper that a range of characters is a script block handled by a given script engine.
Syntax
HRESULT DefineScriptBlock( ULONG ulCharOffset, ULONG cChars, IActiveScript *pas, BOOL fScriptlet, DWORD *pdwSourceContext );
Parameters
- ulCharOffset
- [in] Integer that specifies the character offset to the beginning of the script block.
- cChars
- [in] Integer that specifies the number of characters in the script block.
- pas
- [in] Address of an IActiveScript interface.
- fScriptlet
- [in] Boolean value that indicates whether the script block is a scriptlet.
- pdwSourceContext
- [out] Address of a unsigned long integer value that specifies the script block.
Return Value
Returns S_OK if successful, or an error code otherwise.