Interfaz ITfSource (msctf.h)

El administrador de TSF implementa la interfaz ITfSource . Se usa en aplicaciones y servicios de texto para instalar y desinstalar receptores de asesoramiento.

Herencia

La interfaz ITfSource hereda de la interfaz IUnknown . ITfSource también tiene estos tipos de miembros:

Métodos

La interfaz ITfSource tiene estos métodos.

 
ITfSource::AdviseSink

Método ITfSource::AdviseSink
ITfSource::UnadviseSink

Método ITfSource::UnadviseSink

Comentarios

El administrador de TSF tiene diferentes implementaciones de ITfSource, dependiendo de cómo se obtenga la interfaz ITfSource . La diferencia en las implementaciones es el tipo de receptores de asesoramiento que se pueden instalar con la interfaz . Las distintas implementaciones se pueden obtener de los objetos siguientes.

Para obtener más información sobre los receptores de asesoramiento que puede instalar cada implementación, consulte ITfSource::AdviseSink.

Ejemplos

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();
}

Requisitos

   
Cliente mínimo compatible Windows 2000 Professional [aplicaciones de escritorio | Aplicaciones para UWP]
Servidor mínimo compatible Windows 2000 Server [aplicaciones de escritorio | Aplicaciones para UWP]
Plataforma de destino Windows
Encabezado msctf.h
Redistribuible TSF 1.0 en Windows 2000 Professional