Partager via


IMsRdpWorkspace::OnAuthenticated method

Marks the authentication of user credentials for the connection ID, and subsequently shows the connect notification in the taskbar notification area. The OnAuthenticated method also resets the credential time-out.

Syntax

HRESULT OnAuthenticated(
  [in] BSTR bstrWorkspaceId,
  [in] BSTR bstrUserName
);

Parameters

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

  • bstrUserName [in]
    A string that contains a user name.

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