Click to return to the Component Development home page    
IDebugDocumentHelper::Cre...     IDebugDocumentHelper::Det...     IDebugDocumentHelper Inte...    
Web Workshop  |  Component Development

IDebugDocumentHelper::DefineScriptBlock Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.