Partager via


AddCredentialsW, fonction (sspi.h)

Ajoute des informations d’identification à la liste des informations d’identification associées au thread actuel.

Syntaxe

KSECDDDECLSPEC SECURITY_STATUS SEC_ENTRY AddCredentialsW(
  PCredHandle      hCredentials,
  PSECURITY_STRING pPrincipal,
  PSECURITY_STRING pPackage,
  unsigned long    fCredentialUse,
  void             *pAuthData,
  SEC_GET_KEY_FN   pGetKeyFn,
  void             *pvGetKeyArgument,
  PTimeStamp       ptsExpiry
);

Paramètres

hCredentials

Informations d’identification à ajouter à la liste.

pPrincipal

Nom du principal pour les informations d’identification.

pPackage

Nom du package pour les informations d’identification.

fCredentialUse

Indicateurs indiquant l’utilisation des informations d’identification.

pAuthData

Données d’authentification spécifiques au package.

pGetKeyFn

Pointeur vers la fonction GetKey pour obtenir la clé des informations d’identification.

pvGetKeyArgument

Valeur à passer à la fonction GetKey .

ptsExpiry

Durée de vie des informations d’identification.

Valeur retournée

Retourne un code d’état indiquant la réussite ou l’échec.

Spécifications

Requirement Valeur
Header sspi.h
Library mincore.lib