SetCredential
Sets the credential for an authenticated identity.
HRESULT SetCredential (
IN PassportIdentityHandle hIdentity,
IN LPCWSTR wszCredType,
IN LPCWSTR wszCredValue
);
Parameters
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.
Return Value
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. |
Remarks
A credential, such as a password, is used to authenticate the identity.