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

# XtfRegisterAllPackagesOnDrive

> XtfRegisterAllPackagesOnDrive

# XtfRegisterAllPackagesOnDrive

Registra todos los paquetes implementados en la unidad especificada.

<a id="syntaxSection" />

## Sintaxis

```cpp theme={null}
HRESULT XtfRegisterAllPackagesOnDrive(
         LPCWSTR address,
         DWORD drive,
         LPBSTR pbstrPackageList
)  
```

<a id="parametersSection" />

### Parámetros

*address*<br />Tipo: LPCWSTR

\[in] La dirección de la consola.

*drive*<br />Tipo: DWORD

\[in] La unidad en la que se registran los paquetes. Este parámetro acepta los siguientes valores:

| Valor | Descripción                         |
| ----- | ----------------------------------- |
| 0     | Unidad comercial                    |
| 1     | Unidad de desarrollo                |
| 2 - 8 | Unidad externa 1 a unidad externa 7 |

*pbstrPackageList*<br />Tipo: LPBSTR

\[out] Información sobre los paquetes y las aplicaciones que se registraron.

<a id="retvalSection" />

### Valor devuelto

Tipo: HRESULT

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

<a id="remarksSection" />

## Comentarios

Esta función registra todos los paquetes implementados en la unidad especificada, como una unidad externa, y proporciona un objeto JSON convertido en cadena en *pbstrPackageList*. El objeto JSON es una matriz que proporciona el nombre completo del paquete y las aplicaciones, incluidos los identificadores de modelo de usuario de aplicación (AUMID), para cada paquete registrado.

Para obtener más información sobre la administración de aplicaciones, consulte [Administración de aplicaciones (xbapp.exe) (tema con NDA)](/tools/tools-console/commandlinetools/xbapp).

<a id="requirementsSection" />

## Requisitos

**Encabezado:** xtfapi.h

**Biblioteca:** XtfApi.lib

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

<a id="seealsoSection" />

## Consulte también

[Implementación de ejecución desde PC (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)


## Related topics

- [XtfRegisterPackageOnDrive](/es/reference/tools/xtf/xtfapi/functions/xtfregisterpackageondrive-xtfapi-xbox-windows-m.md)
- [XtfRegisterPackage](/es/reference/tools/xtf/xtfapi/functions/xtfregisterpackage-xtfapi-xbox-windows-m.md)
- [XtfRegisterNetworkSharePackage](/es/reference/tools/xtf/xtfapi/functions/xtfregisternetworksharepackage-xtfapi-xbox-windows-m.md)
- [XtfUnregisterPackage](/es/reference/tools/xtf/xtfapi/functions/xtfunregisterpackage-xtfapi-xbox-windows-m.md)
- [XtfGetPackageFullName](/es/reference/tools/xtf/xtfapi/functions/xtfgetpackagefullname-xtfapi-xbox-windows-m.md)
