Export (0) Print
Expand All

ITfInputProcessorProfileSubstituteLayout interface

This interface is implemented by the TSF manager and is used by an application or text service to manipulate the substitute input locale identifier (keyboard layout) of a text service profile. The interface ID is IID_ITfInputProcessorProfileSubstituteLayout.

Members

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

Methods

The ITfInputProcessorProfileSubstituteLayout interface has these methods.

MethodDescription
GetSubstituteKeyboardLayout

Retrieves the input locale identifier (keyboard layout).

 

Examples

ITfInputProcessorProfileSubstituteLayoutGetSubstituteKeyboardLayout



HRESULT hr;
HKL hKL = NULL;
    ITfInputProcessorProfiles *pPro;

    hr = CoCreateInstance(CLSID_TF_InputProcessorProfiles,
                                        NULL,
                                        CLSCTX_INPROC_SERVER,
                                        IID_ITfInputProcessorProfiles,
                                        (void **)&pPro ));
    if (SUCCEEDED(hr))
    {
        CLSID clsid;
        GUID guid;
 
        ITfInputProcessorProfileSubstituteLayout *pProSubLayout;

        hr = pPro->GetDefaultLanguageProfile(langid, 
                                             GUID_TFCAT_TIP_KEYBOARD, 
                                             &clsid, 
                                             &guid)));
        if (SUCCEEDED(hr))
        {
            if (!IsEqualGUID(clsid, CLSID_NULL))
            {
                hr = pPro->QueryInterface(IID_ITfInputProcessorProfileSubstituteLayout,
                                                        (void **)&pProSubLayout);
                if (SUCCEEDED(hr))
                {
                    hr = pProSubLayout->GetSubstituteKeyboardLayout(clsid, 
                                                                    langid, 
                                                                    guid, 
                                                                    &hKL);
                    pProSubLayout->Release();
                }
                else
                {
                    //Error handling. 
                }
            }
        }
        pPro->Release();
    }


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITfInputProcessorProfiles

 

 

Community Additions

ADD
Show:
© 2014 Microsoft