ITfContextComposition::EnumCompositions method (msctf.h)

Creates an enumerator object that contains all compositions in the context.

Syntax

HRESULT EnumCompositions(
  [out] IEnumITfCompositionView **ppEnum
);

Parameters

[out] ppEnum

Pointer to an IEnumITfCompositionView interface pointer that receives the enumerator object.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
The enumerator object could not be initialized.
E_INVALIDARG
ppEnum is invalid.
E_OUTOFMEMORY
The enumerator object cannot be created.
TF_E_DISCONNECTED
The context object is not on a document stack.

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

IEnumITfCompositionView interface, ITfContextComposition interface