ITfFnReconversion::QueryRange method (ctffunc.h)
The ITfFnReconversion::QueryRange method obtains the range of text that the reconversion applies to.
Syntax
HRESULT QueryRange(
[in] ITfRange *pRange,
ITfRange **ppNewRange,
[out] BOOL *pfConvertable
);
Parameters
[in] pRange
Pointer to an ITfRange object that covers all or part of the text to be reconverted.
ppNewRange
[in, out] Pointer to an ITfRange pointer that receives a range object that covers all of text that can be reconverted. If none of the text covered by pRange can be reconverted, this parameters receives NULL. In this case, the method will return S_OK, so the caller must verify that this parameter is not NULL before using the pointer.
When this method is implemented by a text service, this parameter is optional and can be NULL. In this case, the range is not required.
When the TSF manager implementation of this method is called, this parameter is not optional and cannot be NULL.
[out] pfConvertable
Pointer to a BOOL value that receives zero if none of the text covered by pRange can be reconverted or nonzero otherwise.
Return value
This method can return one of these values.
Value | Description |
---|---|
|
The method was successful. |
|
One or more parameters are invalid. |
|
A memory allocation failure occurred. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | ctffunc.h |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |