Partilhar via


Método IVsIME.ReleaseImmContext (IntPtr, UInt32, Int32)

 

Libera o contexto de entrada do Editor de método de entrada (IME) e libera a memória associada.O método é um wrapper para ImmReleaseContext.Você deve chamar essa função de uma vez para cada chamada para GetImmContext.

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

Sintaxe

int ReleaseImmContext(
    IntPtr hwnd,
    uint HIMC,
    out int pfRetVal
)
int ReleaseImmContext(
    IntPtr hwnd,
    unsigned int HIMC,
    [OutAttribute] int% pfRetVal
)
abstract ReleaseImmContext : 
        hwnd:nativeint *
        HIMC:uint32 *
        pfRetVal:int byref -> int
Function ReleaseImmContext (
    hwnd As IntPtr,
    HIMC As UInteger,
    <OutAttribute> ByRef pfRetVal As Integer
) As Integer

Parâmetros

  • hwnd
    [in] Identificador da janela do editor.
  • HIMC
    [in] Identificador para o contexto de entrada do IME.
  • pfRetVal
    [out] Valor de retorno de erro.Defina como zero, se houver um erro.Caso contrário, o Nonzero.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De vsshell.idl:

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

Consulte também

Interface IVsIME
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo