Share via


IDebugDefaultPort2::GetPortNotify

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method gets an IDebugPortNotify2 interface for this port.

Syntax

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

Parameters

ppPortNotify
[out] An IDebugPortNotify2 object.

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