ITfFnLMProcessor interface

The ITfFnLMProcessor interface is implemented by the language model text service and is used by an application or text service to enable alternate language model processing.

The application or text service obtains this interface from a thread manager object by calling ITfThreadMgr::GetFunctionProvider with GUID_MASTERLM_FUNCTIONPROVIDER and then calling ITfFunctionProvider::GetFunction interface with IID_ITfFnLMProcessor. If ITfThreadMgr::GetFunctionProvider fails, then no language model processor is installed.

Members

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

Methods

The ITfFnLMProcessor interface has these methods.

MethodDescription
GetReconversion

Obtains an ITfCandidateList object for a range from the language model text service.

InvokeFunc

Invokes a function of the language model text service.

InvokeKey

Called to enable the language model text service to process a key event.

QueryKey

Called to determine if the language model text service handles a key event.

QueryLangID

Determines if the language model text service supports a particular language.

QueryRange

Obtains the range of text that a reconversion applies to.

Reconvert

Invokes the reconversion process in the language model text service for a range.

 

Examples



HRESULT hr;
ITfFunctionProvider *pFuncProv;

hr = pThreadMgr->GetFunctionProvider(GUID_MASTERLM_FUNCTIONPROVIDER, &pFuncProv);
if(SUCCEEDED(hr))
{
    ITfFnLMProcessor    *pProcessor;

    hr = pFuncProv->GetFunction(GUID_NULL, IID_ITfFnLMProcessor, (IUnknown**)&pProcessor);
    if(SUCCEEDED(hr))
    {
        //Use the interface. 

        //Release the interface. 
        pProcessor->Release();
    }

    pFuncProv->Release();
}


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Ctffunc.h

IDL

Ctffunc.idl

DLL

Msctf.dll

See also

ITfThreadMgr::GetFunctionProvider
ITfFunctionProvider::GetFunction
ITfCandidateList

 

 

Community Additions

ADD
Show:
© 2014 Microsoft