Share via


IDebugDefaultPort2::GetPortNotify

This method gets an IDebugPortNotify2 interface for this port.

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

Parameters

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

Normally, the QueryInterface method is called on the object implementing the IDebugPort2 interface to obtain an IDebugPortNotify2 interface. However, there are circumstances in which the desired interface is implemented on a different object. This method hides those circumstances and returns the IDebugPortNotify2 interface from the most appropriate object.

See Also

Reference

IDebugDefaultPort2

IDebugPortNotify2