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

# IXtfApplicationClient::Terminate

> IXtfApplicationClient::Terminate

# IXtfApplicationClient::Terminate

指定したパッケージ モニカーを持つアプリを終了します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
public:
HRESULT Terminate(
         LPCWSTR pszPackageMoniker
)  
```

<a id="parametersSection" />

### パラメーター

*pszPackageMoniker*<br />型: LPCWSTR

終了するアプリのパッケージ モニカーへのポインターです。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

このメソッドは、指定したパッケージ モニカーを持つアプリを終了します。 このメソッドは、XBOX Tools Framework (XTF) の一部として含まれるアプリケーション管理 (xbapp.exe) ツールの `xbapp terminate` コマンドに似ています。 `xbapp terminate` コマンドの詳細については、[アプリケーション管理 (xbapp.exe) (NDA トピック)](/tools/tools-console/commandlinetools/xbapp) を参照してください。

<Note>
  開発本体で実行される終了シーケンスをシミュレートするには、アプリを終了する前に少なくとも 1 秒間中断してください。 即時終了は非標準的なプロセスであり、テスト シナリオでは使用しないでください。 ゲームのライフサイクル状態の詳細については、[XBOX ゲーム ライフサイクル (NDA トピック)](/build/console-features/console-workflows/xbox-game-life-cycle) を参照してください。
</Note>

<a id="requirementsSection" />

## 要件

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

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

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

<a id="seealsoSection" />

## 関連項目

[IXtfApplicationClient](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t)<br />[XtfApplication](/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n)


## Related topics

- [IXtfApplicationClient::Constrain](/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/constrain-ixtfapplicationclient-xtfapplication-xbox-windows-m.md)
- [IXtfApplicationClient::Deploy](/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/deploy-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::Launch](/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/launch-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::Uninstall](/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/uninstall-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::Resume](/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
