共用方式為


IDebugCoreServer2::GetPortSupplier

擷取特定的連接埠提供者。

HRESULT GetPortSupplier( 
   REFGUID               guidPortSupplier,
   IDebugPortSupplier2** ppPortSupplier
);
int GetPortSupplier( 
   ref Guid                guidPortSupplier,
   out IDebugPortSupplier2 ppPortSupplier
);

參數

  • guidPortSupplier
    [in]要擷取的連接埠供應者的 GUID。

  • ppPortSupplier
    [] out傳回IDebugPortSupplier2物件,代表您想要的連接埠提供者。

傳回值

如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。

請參閱

參考

IDebugCoreServer2

IDebugPortSupplier2