Share via


IVsIME.IsActive Method

Indicates whether or not the Input Method Editor (IME) is active for a given window.

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

Syntax

'Declaration
Function IsActive ( _
    hwnd As IntPtr, _
    <OutAttribute> ByRef pfRetVal As Integer _
) As Integer
int IsActive(
    IntPtr hwnd,
    out int pfRetVal
)
int IsActive(
    [InAttribute] IntPtr hwnd, 
    [OutAttribute] int% pfRetVal
)
abstract IsActive : 
        hwnd:IntPtr * 
        pfRetVal:int byref -> int 
function IsActive(
    hwnd : IntPtr, 
    pfRetVal : int
) : int

Parameters

  • pfRetVal
    Type: System.Int32%
    [out] Pointer to a Boolean. Set to true if the IME is active for the window. Set to false otherwise.

Return Value

Type: System.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::IsActive(
   [in] HWND hwnd, 
   [out] BOOL * pfRetVal
);

.NET Framework Security

See Also

Reference

IVsIME Interface

Microsoft.VisualStudio.Shell.Interop Namespace