Share via


IDebugDefaultPort2::GetServer

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

This method obtains an interface to the server that this port is on.

Syntax

HRESULT GetServer(  
   IDebugCoreServer3** ppServer  
);  
int GetServer(  
   out IDebugCoreServer3 ppServer  
);  

Parameters

ppServer
[out] Returns an object implementing the IDebugCoreServer3 interface.

Return Value

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

Remarks

The IDebugCoreServer3 is implemented by Visual Studio and represents the server that the port is located on.

See Also

IDebugDefaultPort2
IDebugCoreServer3