Retrieves the input context associated with the specified window. An application must release each context retrieved by calling IActiveIMMApp::ReleaseContext.
Syntax
HRESULT GetContext( HWND hWnd, HIMC *phIMC );
Parameters
- hWnd
- [in] Handle to the window that is retrieving an input context.
- phIMC
- [out] Address of the input context handle associated with the specified window.
Return Value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method maps to the ImmGetContext function documented in the Microsoft® Platform Software Development Kit (SDK).