共用方式為


IDebugDefaultPort2::GetPortNotify

這個方法會取得 此埠的 IDebugPortNotify2 介面。

語法

int GetPortNotify(
   out IDebugPortNotify2 ppPortNotify
);

參數

ppPortNotify
[out]IDebugPortNotify2 物件。

傳回值

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

備註

一般而言,在 QueryInterface作 IDebugPort2 介面的物件上呼叫 方法,以取得 IDebugPortNotify2 介面。 不過,在某些情況下,所需的介面會在不同的 對象上實作。 這個方法會隱藏這些情況,並從最適當的物件傳回 IDebugPortNotify2 介面。

另請參閱