Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a serialized user credential.
Syntax
HRESULT GetSerializedUserCredential(
[out] WRDS_SERIALIZED_USER_CREDENTIAL** userCredential);
Syntax
HRESULT GetSerializedUserCredential(
[out] WRDS_SERIALIZED_USER_CREDENTIAL **userCredential
);
Parameters
[out] userCredential
Receives a pointer to an instance of WTS_SERIALIZED_USER_CREDENTIAL containing the serialized credential if the function succeeds. To free the allocated memory, the Remote Desktop Services service calls the WTSFreeMemoryEx function and pass WTSTypeSerializedUserCredential for the WTSTypeClass parameter. Protocol implementations can transfer the ownership of the credential they obtained using WTSCloudAuthConvertAssertionToSerializedUserCredential (recommended) after which they should not use the credential anymore. Alternatively, protocol implementations can use WTSCloudAuthDuplicateSerializedUserCredential* to duplicate the serialized credentials obtained from WTSCloudAuthConvertAssertionToSerializedUserCredential.
Return value
If the function succeeds, the function returns S_OK. If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
Remarks
If your protocol both returns an HRESULT error code in this method and in **IWRdsProtocolConnection::GetUserCredentials, 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 | Windows, version 26100 |
| Header | wtsprotocol.h |