切换输入

来源:互联网 发布:魏嬿婉 知乎 编辑:程序博客网 时间:2024/04/28 05:53

This function sets the class identifier (CLSID) for the current input method (IM).

BOOL SipSetCurrentIM(   CLSID* pClsid);

Parameters

pClsid
[in] Pointer to the buffer that contains that contains the CLSID of the new IM.

Return Values

TRUE indicates success. FALSE indicates failure. When this function fails, it returns an HRESULT error code.

If the SIP is unable to load the IM, the default IM is loaded in its place. Follow a call to SipSetCurrentIM with a call to SipGetCurrentIM to verify that the requested IM is loaded.

Remarks

An IM is a COM object; therefore, it is a window class defined by the application developer.

SipGetCurrentIM returns the CLSID of the active IM.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Sipapi.h.
Link Library: Coredll.lib.