IVsIME::GetImmContext Method (IntPtr, UInt32)

 

Retrieves the Input Method Editor (IME) context for a given window. Use before getting or setting IME information using methods such as GetImmCompositionString.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetImmContext(
	IntPtr hwnd,
	[OutAttribute] unsigned int% phimc
)

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::Int32

If 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
);
Return to top
Show: