Returns the character-position range corresponding to a document context.
HRESULT GetPositionOfContext( IDebugDocumentContext* psc, ULONG* pcCharacterPosition, ULONG* cNumChars );
- psc
[in] The document context object.
- pcCharacterPosition
[out] Start location of the character position range.
- cNumChars
[out] Number of characters in the 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. |
The document context provided to this method must be associated with this document.