Retrieves the input context associated with the specified window.
Syntax
HRESULT GetContext( HWND hWnd, HIMC *phIMC );
Parameters
- hWnd
- [in] Handle to the window to retrieve the input context for.
- 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).