IVsIME::GetImmContext Method (IntPtr, UInt32)
Visual Studio 2015
Retrieves the Input Method Editor (IME) context for a given window. Use before getting or setting IME information using methods such as GetImmCompositionString.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- hwnd
-
Type:
System::IntPtr
[in] Handle for the editor window.
- phimc
-
Type:
System::UInt32
[out] Pointer to a handle to the IME context.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsIME::GetImmContext(
[in] HWND hwnd,
[out] HIMC * phimc
);
Show: