EnumIdentitiesWithCachedCredentials

Retrieves an enumeration that contains the sign-in names of the identities for which a credential has been cached.

HRESULT EnumIdentitiesWithCachedCredentials (
       IN OPTIONAL LPCWSTR szCachedCredType,
       OUT PassportEnumIdentitiesHandle *peihEnumHandle
       );

Parameters

szCachedCredType

Optional. A string that indicates the type of credential that will be included in the returned enumeration. Can be one of the following values, or null.

Value

Description

PPCRL_CREDTYPE_MEMBERNAMEONLY

Only the sign-in name is persisted.

PPCRL_CREDTYPE_PASSWORD

Both the sign-in name and password are persisted.

PPCRL_CREDTYPE_ACTIVE

The user is active at the time of the call.

peihEnumHandle

A pointer to the location of the sign-in names of the authenticated identities for which credentials are cached.

Return Values

The following table describes the return values for this method.

Return Code

Description

S_OK

The cached credential enumeration was successfully retrieved.

E_INVALIDARG

The peihEnumHandle parameter is null.

See Also

Concepts

Methods