IVsIME::ReleaseImmContext Method (IntPtr, UInt32, Int32)

 

Releases the Input Method Editor (IME) input context and frees the associated memory. The method is a wrapper for ImmReleaseContext.. You should call this function once for each call to GetImmContext.

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

int ReleaseImmContext(
	IntPtr hwnd,
	unsigned int HIMC,
	[OutAttribute] int% pfRetVal
)

Parameters

hwnd
Type: System::IntPtr

[in] Handle of the editor window.

HIMC
Type: System::UInt32

[in] Handle to the IME input context.

pfRetVal
Type: System::Int32

[out] Error return value. Set to zero if there is an error. Nonzero otherwise.

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::ReleaseImmContext(
   [in] HWND hwnd, 
   [in] HIMC himc, 
   [out] BOOL * pfRetVal
);
Return to top
Show: