InitLocalMsCtfMonitor function

The InitLocalMsCtfMonitor function initializes TextServicesFramework on the current desktop and prepares the floating language bar, if necessary. This function must be called on the app's desktop.

Syntax


HRESULT CALLBACK InitLocalMsCtfMonitor(
  _In_  DWORD dwFlags
);

Parameters

dwFlags [in]

This is a combination of the following flags:

ValueMeaning
ILMCM_CHECKLAYOUTANDTIPENABLED

InitLocalMsCtfMonitor forcefully checks the available keyboard layout or text service. If there is no secondary keyboard layout or text services, it does not initialize TextServicesFramework on the desktop.

ILMCM_LANGUAGEBAROFF

Starting with Windows 8: A local language bar is not started for the current desktop.

 

Return value

ValueMeaning
S_OKThe function was successful.
E_FAILAn unspecified error occurred.

 

Remarks

If this function was successful, UninitLocalMsCtfMonitor needs to be called before the caller thread is terminated or the desktop is switched.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

MsCtfMonitorApi.h

Library

MsCtfMonitor.lib

DLL

Msctf.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.