Edit

Share via


WTSCloudAuthDuplicateSerializedUserCredential function (wtsapi32.h)

Duplicates an instance of WTS_SERIALIZED_USER_CREDENTIAL.

Syntax

BOOL WINAPI WTSCloudAuthDuplicateSerializedUserCredential(
  [in] const WTS_SERIALIZED_USER_CREDENTIAL* userCredential,
  [out] WTS_SERIALIZED_USER_CREDENTIAL** duplicatedUserCredential
);

Syntax

BOOL WTSCloudAuthDuplicateSerializedUserCredential(
  [in]  const WTS_SERIALIZED_USER_CREDENTIAL *userCredential,
  [out] WTS_SERIALIZED_USER_CREDENTIAL       **duplicatedUserCredential
);

Parameters

[in] userCredential

The user credential obtained by calling WTSCloudAuthConvertAssertionToSerializedUserCredential.

[out] duplicatedUserCredential

Receives a pointer to the duplicated instance of WTS_SERIALIZED_USER_CREDENTIAL. To free the allocated memory, call the WTSFreeMemoryEx function and pass WTSTypeSerializedUserCredential for the WTSTypeClass parameter.

Return value

If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. To get extended error information, call the `GetLastError' function.

Requirements

Requirement Value
Minimum supported client Windows, version 26100
Header wtsapi32.h