ITfRange::GetContext method (msctf.h)

Obtains the context object to which the range belongs.

Syntax

HRESULT GetContext(
  [out] ITfContext **ppContext
);

Parameters

[out] ppContext

Pointer to an ITfContext interface pointer that receives the context object that the range belongs to.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
ppContext is invalid.
E_FAIL
An unspecified error 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 msctf.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

ITfContext

ITfRange