次の方法で共有


IMsRdpWorkspace::DisconnectWorkspace method

Disconnects all existing connections associated with the specified connection ID and deletes the corresponding user credentials from the credential store.

Syntax

HRESULT DisconnectWorkspace(
  [in] BSTR bstrWorkspaceId
);

Parameters

  • bstrWorkspaceId [in]
    A string that contains the connection ID of the connection to disconnect.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

DLL

MsRdpWebAccess.dll

IID

IID_IMsRdpWorkspace is defined as 145D0621-04CF-4FC2-A766-A81A9069CDF8

See also

IMsRdpWorkspace