Export (0) Print
Expand All

SetCredential

Lync Online

Sets the credential for an authenticated identity.

HRESULT SetCredential (
       IN PassportIdentityHandle hIdentity,
       IN LPCWSTR wszCredType,
       IN LPCWSTR wszCredValue
);

hIdentity

The identity handle for which the credential is set.

wszCredType

A string indicating the type of credential that is being set. The allowed values are described in the following table.

Value

Description

PPCRL_CREDTYPE_PASSWORD

Sets the password for the identity.

PPCRL_CREDTYPE_MEMBERNAMEONLY

Sets the name for the identity.

wszCredValue

A string containing the value of the credential.

The following table describes the return values for this method.

Return Code

Description

S_OK

The credential was successfully set.

E_POINTER

The wszCredType parameter is NULL.

A credential, such as a password, is used to authenticate the identity.

Show:
© 2014 Microsoft