IVsIME.GetImmContext 方法

检索特定 (IME)窗口的输入法编辑器 (ime) 上下文。在获取或设置 IME 消息之前的使用方法例如 GetImmCompositionString

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function GetImmContext ( _
    hwnd As IntPtr, _
    <OutAttribute> ByRef phimc As UInteger _
) As Integer
int GetImmContext(
    IntPtr hwnd,
    out uint phimc
)

参数

  • phimc
    类型:System.UInt32%
    [out] 对处理的指针 IME 上下文。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsIME::GetImmContext(
   [in] HWND hwnd, 
   [out] HIMC * phimc
);

.NET Framework 安全性

请参见

参考

IVsIME 接口

Microsoft.VisualStudio.Shell.Interop 命名空间