Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IFrameworkInputPane::AdviseWithHWND method

Registers the app's input pane handler object to receive notifications on behalf of a window when an event triggers the input pane. This method differs from Advise in that it references its window through an HWND.

Syntax


HRESULT AdviseWithHWND(
  [in]  HWND                       hwnd,
  [in]  IFrameworkInputPaneHandler *pHandler,
  [out] DWORD                      *pdwCookie
);

Parameters

hwnd [in]

Type: HWND

The handle of the window for which the handler should listen for input pane events.

pHandler [in]

Type: IFrameworkInputPaneHandler*

An IFrameworkInputPaneHandler interface pointer to the handler instance for this app.

pdwCookie [out]

Type: DWORD*

A pointer to a value that, when this method returns successfully, receives a cookie for that can be used later to unregister the handler through the Unadvise method.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IFrameworkInputPane
IFrameworkInputPane::Advise
IFrameworkInputPane::Unadvise

 

 

Community Additions

Show:
© 2015 Microsoft