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

指定されたドライブにデプロイされているすべてのパッケージを登録します。

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*address*<br />型: LPCWSTR

\[in] コンソールのアドレスです。

*drive*<br />型: DWORD

\[in] パッケージを登録するドライブです。このパラメーターは次の値を受け付けます。

| Value | Description         |
| ----- | ------------------- |
| 0     | リテール ドライブ           |
| 1     | 開発ドライブ              |
| 2 - 8 | 外部ドライブ 1 から外部ドライブ 7 |

*pbstrPackageList*<br />型: LPBSTR

\[out] 登録されたパッケージとアプリに関する情報です。

<a id="retvalSection" />

### Return value

型: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合は、HRESULT エラー コードを返します。

<a id="remarksSection" />

## Remarks

この関数は、外部ドライブなどの指定されたドライブにデプロイされているすべてのパッケージを登録し、*pbstrPackageList* に文字列化された JSON オブジェクトを提供します。この JSON オブジェクトは、登録された各パッケージについて、パッケージのフル ネームと、アプリケーション ユーザー モデル ID (AUMID) を含むアプリの情報を提供する配列です。

アプリケーション管理の詳細については、[Application Management (xbapp.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbapp) を参照してください。

<a id="requirementsSection" />

## Requirements

**ヘッダー:** xtfapi.h

**ライブラリ:** XtfApi.lib

**サポートされているプラットフォーム:** Windows (XBOX コンソール ツール用)

<a id="seealsoSection" />

## See also

[Run from PC Deployment (NDA topic)](/home/setup-install/concepts/deployment)<br />[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

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