IDebugCoreServer2::GetPort
Note
This article applies to Visual Studio 2015. 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
Retrieves a specific port.
Syntax
HRESULT GetPort(
REFGUID guidPort,
IDebugPort2** ppPort
);
int GetPort(
ref Guid guidPort,
out IDebugPort2 ppPort
);
Parameters
guidPort
[in] GUID of the port to be retrieved.
ppPort
[out] Returns an IDebugPort2 object representing the desired port.
Return Value
If successful, returns S_OK
; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT
if there is no port with the given identifier.