IRDPSRAPISharingSession::ConnectToClient method

Used for reverse connect mode, where the sharer connects to the viewer. In this mode, the sharer sends the invitation file to the viewer out-of-band by using instant messaging (IM) or email. For the sharer to connect to the viewer, the sharer receives a connection string from the viewer out-of-band through IM or email.

Syntax

HRESULT ConnectToClient(
  BSTR bstrConnectionString
);

Parameters

bstrConnectionString

Type: BSTR

Connection string that the viewer sends to the sharer out-of-band through IM or email.

Return Value

Type: HRESULT

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

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header rdpencomapi.h
DLL RdpEncom.dll

See Also

IRDPSRAPISharingSession

IRDPSRAPISharingSession2