IDebugDefaultPort2:: GetPortNotify

此方法获取此端口的一 IDebugPortNotify2 接口。

HRESULT GetPortNotify(
   IDebugPortNotify2** ppPortNotify
);
int GetPortNotify(
   out IDebugPortNotify2 ppPortNotify
);

参数

返回值

如果成功,则返回; S_OK否则,返回错误代码。

备注

通常, QueryInterface 调用方法 IDebugPort2 实现接口的对象获取 IDebugPortNotify2 接口。 但是,具有所需接口在不同的对象实现的情况。 此方法隐藏这些情况并从最合适的对象的 IDebugPortNotify2 接口。

请参见

参考

IDebugDefaultPort2

IDebugPortNotify2