ITfSourceSingle interface

The ITfSourceSingle interface is implemented by the TSF manager. It is used by applications and text services to install and remove various advise sinks. This interface differs from ITfSource in that advise sinks installed with ITfSourceSingle only support one advise sink at a time whereas advise sinks installed with ITfSource support multiple simultaneous advise sinks.

Members

The ITfSourceSingle interface inherits from the IUnknown interface. ITfSourceSingle also has these types of members:

Methods

The ITfSourceSingle interface has these methods.

MethodDescription
AdviseSingleSink

Installs an advise sink.

UnadviseSingleSink

Uninstalls an advise sink.

 

Remarks

The TSF manager has different implementations of ITfSourceSingle, depending upon how the ITfSourceSingle interface is obtained. The difference in the implementations is the types of advise sinks that can be installed with the interface. The different implementations can be obtained from the following objects.

For more information about advise sinks that can be installed by each implementation, see ITfSourceSingle::AdviseSingleSink.

Examples

ITfThreadMgr



HRESULT hr;
ITfSourceSingle *pSourceSingle;

hr = pThreadManager->QueryInterface(IID_ITfSourceSingle, (LPVOID*)&pSourceSingle);
if(SUCCEEDED(hr))
{
    //Use the ITfSourceSingle interface. 
    
    pSourceSingle->Release();
}


ITfContext



HRESULT hr;
ITfSourceSingle *pSourceSingle;

hr = pContext->QueryInterface(IID_ITfSourceSingle, (LPVOID*)&pSourceSingle);
if(SUCCEEDED(hr))
{
    //Use the ITfSourceSingle interface. 
    
    pSourceSingle->Release();
}


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

ITfSource
ITfThreadMgr
ITfContext

 

 

Community Additions

ADD
Show:
© 2014 Microsoft