Compartir a través de


IMsRdpWorkspace::IsWorkspaceCredentialSpecified method

Determines whether user credentials exist for the specified connection ID.

Syntax

HRESULT IsWorkspaceCredentialSpecified(
  [in]          BSTR         bstrWorkspaceId,
  [in]          VARIANT_BOOL bCountUnauthenticatedCredentials,
  [out, retval] VARIANT_BOOL *pbCredExist
);

Parameters

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

  • bCountUnauthenticatedCredentials [in]
    VARIANT_TRUE to specify that the pbCredExist parameter should return VARIANT_TRUE if credentials (authenticated or unauthenticated) exist for the connection ID specified in the bstrWorkspaceId parameter. VARIANT_FALSE to specify that the pbCredExist parameter should return VARIANT_TRUE only if authenticated credentials exist for the connection ID specified in the bstrWorkspaceId parameter.

  • pbCredExist [out, retval]
    A pointer to a VARIANT_BOOL variable to receive whether credentials exist for the connection ID specified in the bstrWorkspaceId parameter. This value is VARIANT_TRUE if credentials exist; otherwise, VARIANT_FALSE.

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