ITfSource 介面 (msctf.h)

ITfSource介面是由 TSF 管理員實作。 應用程式和文字服務會使用它來安裝和卸載建議接收。

繼承

ITfSource介面繼承自IUnknown介面。 ITfSource 也有下列類型的成員:

方法

ITfSource介面具有這些方法。

 
ITfSource::AdviseSink

ITfSource::AdviseSink 方法
ITfSource::UnadviseSink

ITfSource::UnadviseSink 方法

備註

TSF 管理員有不同的 ITfSource實作,視 取得 ITfSource 介面的方式而定。 實作的差異是可使用 介面安裝的建議接收類型。 您可以從下列物件取得不同的實作。

如需每個實作可安裝之建議接收的詳細資訊,請參閱 ITfSource::AdviseSink

範例

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

需求

   
最低支援的用戶端 Windows 2000 專業版 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows 2000 Server [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 msctf.h
可轉散發套件 Windows 2000 專業版上的 TSF 1.0