Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Used by the language engine to delegate IDebugCodeContext::GetSourceContext
.
Syntax
HRESULT GetDocumentContextFromPosition(
DWORD_PTR dwSourceContext,
ULONG uCharacterOffset,
ULONG uNumChars,
IDebugDocumentContext** ppsc
);
Parameters
dwSourceContext
[in] The source content as provided to ParseScriptText
or AddScriptlet
.
uCharacterOffset
[in] Character offset relative to start of script block or scriptlet.
uNumChars
[in] Number of characters in this context.
ppsc
[out] The document context corresponding to this character-position range.
Return Value
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. |
Remarks
Language engines use this method to delegate IDebugCodeContext::GetSourceContext
.