IDebugCoreServer2:: GetPort

检索特定端口。

HRESULT GetPort( 
   REFGUID       guidPort,
   IDebugPort2** ppPort
);
int GetPort( 
   ref Guid        guidPort,
   out IDebugPort2 ppPort
);

参数

  • guidPort
    [in] 要检索的端口的 GUID。

  • ppPort
    [out] 返回表示所需的端口的 IDebugPort2 对象。

返回值

如果成功,则返回; S_OK否则,返回错误代码。 ,如果不存在给定标识符的,端口返回 E_PORTSUPPLIER_NO_PORT 。

请参见

参考

IDebugCoreServer2

IDebugPort2