> ## 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

Obtiene el recuento de credenciales almacenadas en un objeto `XtfNetworkCredentials` devuelto por [XtfGetCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

<a id="syntaxSection" />

## Sintaxis

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

<a id="parametersSection" />

### Parámetros

*credentialInfo*<br />Tipo: XtfNetworkCredentials

\[in] Un objeto `XtfNetworkCredentials` creado mediante una llamada a [XtfGetCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

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

\[out] El número de credenciales almacenadas en *credentialInfo*.

<a id="retvalSection" />

### Valor devuelto

Tipo: HRESULT

Devuelve `S_OK` si se realiza correctamente; de lo contrario, devuelve un código de error HRESULT.

<a id="remarksSection" />

## Comentarios

Use esta función para obtener el número de credenciales almacenadas en el objeto `XtfNetworkCredentials` devuelto por la función [XtfGetCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m). Use esta función junto con las funciones `XtfGetCredentialInfoList`, [XtfGetCredentialServerName](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialtargetname-xtfapi-xbox-windows-m) y [XtfGetCredentialUserName](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialusername-xtfapi-xbox-windows-m) para enumerar la lista actual de credenciales almacenadas en una consola. También puede usar [XtfAddCredential](/reference/tools/xtf/xtfapi/functions/xtfaddcredential-xtfapi-xbox-windows-m) para agregar credenciales y [XtfRemoveCredential](/reference/tools/xtf/xtfapi/functions/xtfremovecredential-xtfapi-xbox-windows-m) para quitar credenciales.

Cuando haya terminado, use [XtfCloseCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfclosecredentialinfo-xtfapi-xbox-windows-m) para liberar el objeto `XtfNetworkCredentials` devuelto por `XtfGetCredentialInfoList`.

Para ver un ejemplo que muestra cómo administrar y enumerar las credenciales almacenadas, consulte [XtfGetCredentialInfoList](/reference/tools/xtf/xtfapi/functions/xtfgetcredentialinfolist-xtfapi-xbox-windows-m).

<a id="requirementsSection" />

## Requisitos

**Encabezado:** xtfapi.h

**Biblioteca:** XtfApi.lib

**Plataformas compatibles:** Windows (para herramientas de consola XBOX)

<a id="seealsoSection" />

## Consulte también

[Run from PC Deployment (tema con NDA)](/home/setup-install/concepts/deployment)<br />[Errores de transporte de XTF (tema con NDA)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[API de Xtf adicionales](/reference/tools/xtf/xtfapi/atoc-xtfapi)
