IInputPaneInterop::GetForWindow method (inputpaneinterop.h)

Gets an instance of an InputPane object for the specified window.


HRESULT GetForWindow(
  [in]          HWND   appWindow,
  [in]          REFIID riid,
  [out, retval] void   **inputPane


[in] appWindow

The top-level (GA_ROOT) window for which you want to get the InputPane object.

[in] riid

The interface identifier for the interface that you want to get in the inputPane parameter. This value is typically IID_IInputPane or IID_IInputPane2, as defined in Windows.UI.ViewManagement.h.

[out, retval] inputPane

The InputPane object for the window that the appWindow parameter specifies. This parameter is typically a pointer to an IInputPane or IInputPane2 interface, as defined in Windows.UI.ViewManagement.idl.

Return value

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


Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header inputpaneinterop.h

See also