Share via


IInputMethod3::RegisterCallback (Compact 2013)

3/28/2014

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

Syntax

HRESULT RegisterCallback( 
  IIMCallback* pIMCallback
);

Parameters

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

Return Value

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

Remarks

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

An input method uses the IIMCallback interface 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
IIMCallback
IInputMethod3::Deselect
IInputMethod3::GetInfo
IInputMethod3::Hiding
IInputMethod3::InputContextChange
IInputMethod3::ReceiveSipInfo
IInputMethod3::RegisterCallback2
IInputMethod3::RegisterCallback3
IInputMethod3::Select
IInputMethod3::SetImData
IInputMethod3::SetIMMActiveContext
IInputMethod3::Showing
IInputMethod3::UserOptionsDlg