Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITfSourceSingle::AdviseSingleSink method

Syntax


HRESULT AdviseSingleSink(
  [in] TfClientId tid,
  [in] REFIID     riid,
  [in] IUnknown   *punk
);

Parameters

tid [in]

Contains a TfClientId value that identifies the client.

riid [in]

Identifies the type of advise sink to install.

This parameter can be one of the following values when the ITfSourceSingle object is obtained from an ITfThreadMgr object.

This parameter can be one of the following values when the ITfSourceSingle object is obtained from an ITfContext object.

ValueMeaning
IID_ITfCleanupContextDurationSink

Installs a ITfCleanupContextDurationSink advise sink.

IID_ITfFunctionProvider

Registers the client as a function provider. The punk parameter is an ITfFunctionProvider interface pointer.

 

punk [in]

Pointer to the advise sink IUnknown pointer.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

CONNECT_E_CANNOTCONNECT

The advise sink cannot be installed.

CONNECT_E_ADVISELIMIT

The maximum number of advise sinks has been reached.

E_FAIL

An unspecified error occurred.

E_OUTOFMEMORY

A memory allocation failure occurred.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msctf.dll

See also

ITfSourceSingle
ITfCleanupContextSink
ITfFunctionProvider

 

 

Show:
© 2016 Microsoft