Antarmuka ITfSource (msctf.h)
Antarmuka ITfSource diimplementasikan oleh manajer TSF. Ini digunakan oleh aplikasi dan layanan teks untuk menginstal dan menghapus instalan sink saran.
Antarmuka ITfSource mewarisi dari antarmuka IUnknown . ITfSource juga memiliki jenis anggota ini:
Antarmuka ITfSource memiliki metode ini.
ITfSource::AdviseSink Metode ITfSource::AdviseSink |
ITfSource::UnadviseSink Metode ITfSource::UnadviseSink |
Manajer TSF memiliki implementasi ITfSource yang berbeda, tergantung pada bagaimana antarmuka ITfSource diperoleh. Perbedaan dalam implementasi adalah jenis sink saran yang dapat diinstal dengan antarmuka. Implementasi yang berbeda dapat diperoleh dari objek berikut.
Untuk informasi selengkapnya tentang sink saran yang dapat diinstal oleh setiap implementasi, lihat 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();
}
Klien minimum yang didukung | Windows 2000 Professional [aplikasi desktop | Aplikasi UWP] |
Server minimum yang didukung | Windows 2000 Server [aplikasi desktop | Aplikasi UWP] |
Target Platform | Windows |
Header | msctf.h |
Redistribusi | TSF 1.0 di Windows 2000 Professional |