> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XtfGetCredentialInfoCount

> XtfGetCredentialInfoCount

# XtfGetCredentialInfoCount

Obtient le nombre d'informations d'identification stockées dans un objet `XtfNetworkCredentials` retourné par [XtfGetCredentialInfoList](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT XtfGetCredentialInfoCount(
         XtfNetworkCredentials credentialInfo,
         UINT32* count
)  
```

<a id="parametersSection" />

### Paramètres

*credentialInfo*<br />Type : XtfNetworkCredentials

\[in] Objet `XtfNetworkCredentials` créé en appelant [XtfGetCredentialInfoList](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

*count*<br />Type : UINT32\*

\[out] Nombre d'informations d'identification stockées dans *credentialInfo*.

<a id="retvalSection" />

### Valeur renvoyée

Type : HRESULT

Retourne `S_OK` en cas de réussite ; sinon, retourne un code d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Utilisez cette fonction pour obtenir le nombre d'informations d'identification stockées dans l'objet `XtfNetworkCredentials` retourné par la fonction [XtfGetCredentialInfoList](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m). Utilisez cette fonction avec les fonctions `XtfGetCredentialInfoList`, [XtfGetCredentialServerName](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialtargetname-xtfapi-xbox-windows-m) et [XtfGetCredentialUserName](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialusername-xtfapi-xbox-windows-m) pour énumérer la liste actuelle des informations d'identification stockées sur une console. Vous pouvez également utiliser [XtfAddCredential](/fr/reference/tools/xtf/xtfapi/functions/xtfaddcredential-xtfapi-xbox-windows-m) pour ajouter des informations d'identification et [XtfRemoveCredential](/fr/reference/tools/xtf/xtfapi/functions/xtfremovecredential-xtfapi-xbox-windows-m) pour en supprimer.

Lorsque vous avez terminé, utilisez [XtfCloseCredentialInfoList](/fr/reference/tools/xtf/xtfapi/functions/xtfclosecredentialinfo-xtfapi-xbox-windows-m) pour libérer l'objet `XtfNetworkCredentials` retourné par `XtfGetCredentialInfoList`.

Pour obtenir un exemple qui montre comment gérer et énumérer les informations d'identification stockées, consultez [XtfGetCredentialInfoList](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xtfapi.h

**Bibliothèque :** XtfApi.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

<a id="seealsoSection" />

## Voir aussi

[Déploiement Run from PC (rubrique sous NDA)](/fr/home/setup-install/concepts/deployment)<br />[Erreurs de transport XTF (rubrique sous NDA)](/fr/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[API Xtf supplémentaires](/fr/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfGetCredentialInfoCount](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfocount-xtfapi-xbox-windows-m.md)
- [XtfAddCredential](/reference/tools/xtf/xtfapi/functions/xtfaddcredential-xtfapi-xbox-windows-m.md)
- [XtfRemoveCredential](/reference/tools/xtf/xtfapi/functions/xtfremovecredential-xtfapi-xbox-windows-m.md)
- [XtfCloseCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfclosecredentialinfo-xtfapi-xbox-windows-m.md)
