Used by the language engine to delegate IDebugCodeContext::GetSourceContext.
HRESULT GetDocumentContextFromPosition( DWORD_PTR dwSourceContext, ULONG uCharacterOffset, ULONG uNumChars, IDebugDocumentContext** ppsc );
- 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.
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. |
Language engines use this method to delegate IDebugCodeContext::GetSourceContext.