IVsIntellisenseHost.GetHostWindow(IntPtr) 方法

定义

返回宿主窗口的句柄。

public:
 int GetHostWindow([Runtime::InteropServices::Out] IntPtr % hwnd);
public int GetHostWindow (out IntPtr hwnd);
abstract member GetHostWindow : nativeint -> int
Public Function GetHostWindow (ByRef hwnd As IntPtr) As Integer

参数

hwnd
IntPtr

nativeint

弄主机窗口的句柄。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

C++

从 singlefileeditor:

HRESULT IVsIntellisenseHost::GetHostWindow([out] HWND *hwnd);

适用于