Indicates to the helper that a particular range of characters is a script block that is handled by the given script engine.

HRESULT DefineScriptBlock(
   ULONG           ulCharOffset,
   ULONG           cChars,
   IActiveScript*  pas,
   BOOL            fScriptlet,
   DWORD_PTR*      pdwSourceContext
);

Parameters

ulCharOffset

[in] Location of the start of the script block.

cChars

[in] Number of characters in the script block.

pas

[in] The script engine for this script block.

fScriptlet

[in] Flag that indicates if the script block is a scriptlet.

pdwSourceContext

[out] The source context for the script block.

Expand imageReturn Value

Expand imageRemarks

Expand imageSee Also