IVsIME.ReleaseImmContext(IntPtr, UInt32, Int32) Method

Definition

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(IntPtr, UInt32).

public:
 int ReleaseImmContext(IntPtr hwnd, System::UInt32 HIMC, [Runtime::InteropServices::Out] int % pfRetVal);
public int ReleaseImmContext (IntPtr hwnd, uint HIMC, out int pfRetVal);
abstract member ReleaseImmContext : nativeint * uint32 * int -> int
Public Function ReleaseImmContext (hwnd As IntPtr, HIMC As UInteger, ByRef pfRetVal As Integer) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] Handle of the editor window.

HIMC
UInt32

[in] Handle to the IME input context.

pfRetVal
Int32

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

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::ReleaseImmContext(  
   [in] HWND hwnd,   
   [in] HIMC himc,   
   [out] BOOL * pfRetVal  
);  

Applies to