Gets the input context associated with the specified window. An application must release each context that it gets by calling IActiveIMMApp::ReleaseContext.
Syntax
HRESULT GetContext(
  [in]  HWND hWnd,
  [out] HIMC *phIMC
);
Parameters
- hWnd [in] 
 A handle to the window that gets an input context.
- phIMC [out] 
 The address of the input context handle that is associated with the specified window.
Return value
Returns S_OK if successful, or an error value otherwise.
Remarks
This method maps to the ImmGetContext function that is documented in the Windows Software Development Kit (SDK).
Requirements
| Minimum supported client | Windows XP | 
| Minimum supported server | Windows 2000 Server | 
| Product | Internet Explorer 5.0 | 
| Header | Dimm.h | 
| IDL | Dimm.idl |