Share via


IInputMethod3::RegisterCallback2 (Compact 2013)

3/28/2014

Implement this method to receive a pointer to an IIMCallback2 interface.

Syntax

HRESULT RegisterCallback2(
  IIMCallback2* pIMCallback2
);

Parameters

  • pIMCallback2
    [in] Pointer to an IIMCallback2 interface that is implemented in the software-based input panel (SIP). The input method (IM) can call methods on this interface to send information back to the SIP.

Return Value

Returns S_OK to indicate success; otherwise, return the appropriate HRESULT value to indicate that it was not successful.

Remarks

This method is the only way to access the IIMCallback2 interface to the SIP. The SIP calls this method during the initialization of the input method, along with IInputMethod3::Select, IInputMethod3::GetInfo, and IInputMethod3::ReceiveSipInfo.

An input method uses IIMCallback2 to send keystrokes to applications and to change the icons on the Input Panel.

Requirements

Header

sip.h

Library

uuid.lib

sysgen

SYSGEN_SOFTKB

See Also

Reference

IInputMethod3
IIMCallback2
IInputMethod3::Deselect
IInputMethod3::GetInfo
IInputMethod3::Hiding
IInputMethod3::InputContextChange
IInputMethod3::ReceiveSipInfo
IInputMethod3::RegisterCallback
IInputMethod3::RegisterCallback3
IInputMethod3::Select
IInputMethod3::SetImData
IInputMethod3::SetIMMActiveContext
IInputMethod3::Showing
IInputMethod3::UserOptionsDlg