ITfRange::CompareStart method (msctf.h)
The ITfRange::CompareStart method compares the start anchor position of this range of text to an anchor in another range.
HRESULT CompareStart( TfEditCookie ec, ITfRange *pWith, TfAnchor aPos, LONG *plResult );
Pointer to a specified range in which an anchor is to be compared to this range start anchor.
Enumeration element that indicates which anchor of the specified pWith range to compare to this range start anchor.
||Compare this range start anchor with the specified range start anchor.|
||Compare this range start anchor with the specified range end anchor.|
Pointer to the result of the comparison between this range start anchor and the specified pWith range anchor.
This method can return one of these values.
||The method was successful.|
||An unspecified error occurred.|
||One or more parameters are invalid.|
||The value of the ec parameter is an invalid cookie, or the caller does not have a read-only lock.|
This method will never return 0 unless the two anchors are in a single region. If the caller only requires information about whether the two anchors are positioned at the same location, ITfRange::IsEqualStart is more efficient.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Redistributable||TSF 1.0 on Windows 2000 Professional|