Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Retrieves the Input Method Editor (IME) context for a given window. Use before getting or setting IME information using methods such as GetImmCompositionString.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function GetImmContext ( _
hwnd As IntPtr, _
<OutAttribute> ByRef phimc As UInteger _
) As Integer
'Usage
Dim instance As IVsIME
Dim hwnd As IntPtr
Dim phimc As UInteger
Dim returnValue As Integer
returnValue = instance.GetImmContext(hwnd, _
phimc)
int GetImmContext(
IntPtr hwnd,
out uint phimc
)
int GetImmContext(
[InAttribute] IntPtr hwnd,
[OutAttribute] unsigned int% phimc
)
abstract GetImmContext :
hwnd:IntPtr *
phimc:uint32 byref -> int
function GetImmContext(
hwnd : IntPtr,
phimc : uint
) : int
Parameters
- hwnd
Type: System.IntPtr
[in] Handle for the editor window.
- phimc
Type: System.UInt32%
[out] Pointer to a handle to the IME context.
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::GetImmContext(
[in] HWND hwnd,
[out] HIMC * phimc
);
.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.