Condividi tramite


IDebugDefaultPort2::GetPortNotify

Questo metodo ottiene un'interfaccia IDebugPortNotify2 per questa porta.

Sintassi

int GetPortNotify(
   out IDebugPortNotify2 ppPortNotify
);

Parametri

ppPortNotify
[out] Oggetto IDebugPortNotify2 .

Valore restituito

Se ha esito positivo, restituisce S_OK; in caso contrario, restituisce un codice di errore.

Osservazioni:

In genere, il QueryInterface metodo viene chiamato sull'oggetto che implementa l'interfaccia IDebugPort2 per ottenere un'interfaccia IDebugPortNotify2 . Tuttavia, esistono circostanze in cui l'interfaccia desiderata viene implementata su un oggetto diverso. Questo metodo nasconde tali circostanze e restituisce l'interfaccia IDebugPortNotify2 dall'oggetto più appropriato.

Vedi anche