IRDPSRAPITcpConnectionInfo::PeerPort property

Retrieves the remote port that is being used by the sharer or by the viewer in communication. For example, the sharer can retrieve the port that the viewer is using in communication and vice versa.

This property is read-only.

Syntax


HRESULT get_PeerPort(
  [out] long *plPort
);

Property value

Returns the peer port number.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Requirements

Minimum supported client

Windows Vista [desktop apps | UWP apps]

Minimum supported server

Windows Server 2008 [desktop apps | UWP apps]

Header

RdpEncomAPI.h

IDL

RdpEncomAPI.idl

Type library

RdpEncomAPI.tlb

DLL

RdpEncom.dll

See also

IRDPSRAPITcpConnectionInfo

 

 

Show: