IWRdsProtocolConnection::GetUserCredentials method (wtsprotocol.h)

Returns user credentials.

Syntax

HRESULT GetUserCredentials(
  [out] WRDS_USER_CREDENTIAL *pUserCreds
);

Parameters

[out] pUserCreds

A pointer to a WRDS_USER_CREDENTIAL structure that contains the credentials. Currently, only the user name, password, and domain are supported. The user name and password are plaintext.

Return value

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

Remarks

If your protocol returns an HRESULT error code, or the user provides incorrect credentials, WinLogon will display a logon screen to request credentials. If your protocol returns S_OK, the credentials will be passed to WinLogon to log on the user.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header wtsprotocol.h

See also

IWRdsProtocolConnection