IVsIME.ReleaseImmContext Method
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)
Syntax
'Declaration
Function ReleaseImmContext ( _
hwnd As IntPtr, _
HIMC As UInteger, _
<OutAttribute> ByRef pfRetVal As Integer _
) As Integer
int ReleaseImmContext(
IntPtr hwnd,
uint HIMC,
out int pfRetVal
)
int ReleaseImmContext(
[InAttribute] IntPtr hwnd,
[InAttribute] unsigned int HIMC,
[OutAttribute] int% pfRetVal
)
abstract ReleaseImmContext :
hwnd:IntPtr *
HIMC:uint32 *
pfRetVal:int byref -> int
function ReleaseImmContext(
hwnd : IntPtr,
HIMC : uint,
pfRetVal : int
) : int
Parameters
hwnd
Type: IntPtr[in] Handle of the editor window.
HIMC
Type: UInt32[in] Handle to the IME input context.
pfRetVal
Type: Int32%[out] Error return value. Set to zero if there is an error. Nonzero otherwise.
Return Value
Type: Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.