IRDPSRAPIAttendee::TerminateConnection method (rdpencomapi.h)
Disconnects the client represented by the attendee.
This method has no parameters.
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. The following is a possible value.
This method disconnects clients from the session. The clients can reconnect because the authentication is based on the invitation. To provide stricter access control to the session, an application can create one invitation object per attendee and revoke the invitation at the same time it calls this method.
This call is not blocking. However, termination is not immediate and can be delayed by a send operation. If the thread that is managing connections is in the middle of sending a buffer, it must wait for the buffer to be sent. The caller should consider the attendee disconnected only after the _IRDPSessionEvents::OnAttendeeDisconnected event is fired.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|