IWdsTransportServer::DisconnectClient method (wdstptmgmt.h)

Disconnects a WDS client from a transport session and specifies what action the WDS client should take upon disconnection.

Syntax

HRESULT DisconnectClient(
  ULONG                        ulClientId,
  WDSTRANSPORT_DISCONNECT_TYPE DisconnectionType
);

Parameters

ulClientId

A unique ID for the WDS that was generated by the WDS transport server.

DisconnectionType

A value of the WDSTRANSPORT_DISCONNECT_TYPE enumeration that specifies what action the WDS client should take upon disconnection from the WDS server.

Return value

Standard HRESULT error values are used: S_OK for success; others for failure.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wdstptmgmt.h
DLL Wdstptmgmt.dll

See also

IWdsTransportServer

WDSTRANSPORT_DISCONNECT_TYPE