Share via


Interface ITfSource (msctf.h)

L’interface ITfSource est implémentée par le gestionnaire TSF. Il est utilisé par les applications et les services de texte pour installer et désinstaller des récepteurs conseillés.

Héritage

L’interface ITfSource hérite de l’interface IUnknown. ITfSource a également les types de membres suivants :

Méthodes

L’interface ITfSource a ces méthodes.

 
ITfSource::AdviseSink

Méthode ITfSource::AdviseSink
ITfSource::UnadviseSink

Méthode ITfSource::UnadviseSink

Notes

Le gestionnaire TSF a différentes implémentations d’ITfSource, selon la façon dont l’interface ITfSource est obtenue. La différence dans les implémentations réside dans les types de récepteurs conseillés qui peuvent être installés avec l’interface. Les différentes implémentations peuvent être obtenues à partir des objets suivants.

Pour plus d’informations sur les récepteurs de conseil qui peuvent être installés par chaque implémentation, consultez ITfSource::AdviseSink.

Exemples

ITfThreadMgr


HRESULT hr;
ITfSource *pSource;

hr = pThreadManager->QueryInterface(IID_ITfSource, (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    //Use the ITfSource interface. 
    
    pSource->Release();
}

ITfContext


HRESULT hr;
ITfSource *pSource;

hr = pContext->QueryInterface(IID_ITfSource, (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    //Use the ITfSource interface. 
    
    pSource->Release();
}

ITfCompartment


HRESULT hr;
ITfSource *pSource;

hr = pCompartmentManager->QueryInterface(IID_ITfSource, (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    //Use the ITfSource interface. 
    
    pSource->Release();
}

ITfInputProcessorProfiles


HRESULT hr;
ITfSource *pSource;

hr = pProfiles->QueryInterface(IID_ITfSource, (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    //Use the ITfSource interface. 
    
    pSource->Release();
}

ITfLangBarItem


HRESULT hr;
ITfSource *pSource;

hr = pLangBarItem->QueryInterface(IID_ITfSource, (LPVOID*)&pSource);
if(SUCCEEDED(hr))
{
    //Use the ITfSource interface. 
    
    pSource->Release();
}

Spécifications

   
Client minimal pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête msctf.h
Composant redistribuable TSF 1.0 sur Windows 2000 Professionnel