ITfContextOwnerServices::CreateRange method (msctf.h)

The ITfContextOwnerServices::CreateRange method creates a new ranged based upon a specified character position.

Syntax

HRESULT CreateRange(
  [in]  LONG        acpStart,
  [in]  LONG        acpEnd,
  [out] ITfRangeACP **ppRange
);

Parameters

[in] acpStart

Specifies the starting character position of the range.

[in] acpEnd

Specifies the ending character position of the range.

[out] ppRange

Receives a pointer to the range object within the specified starting and ending character positions.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
The specified range is NULL or the specified starting character position is less than zero or the specified starting character position is greater than the specified ending character position.

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 msctf.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional