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

> IXtfApplicationClient::Suspend

# IXtfApplicationClient::Suspend

Suspend l'exécution de l'application dotée du moniker de package spécifié.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
public:
HRESULT Suspend(
         LPCWSTR pszPackageMoniker,
         BOOL fAsDebugger
)  
```

<a id="parametersSection" />

### Paramètres

*pszPackageMoniker*<br />Type : LPCWSTR

Pointeur vers le moniker de package de l'application à suspendre.

*fAsDebugger*<br />Type : BOOL

Spécifiez TRUE pour suspendre l'application avec le débogage activé ; sinon, FALSE pour désactiver le débogage. Pour plus d'informations sur les effets de l'activation ou de la désactivation du débogage, consultez [DebugEnable](/fr/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/debugenable-ixtfapplicationclient-xtfapplication-xbox-microsoft-m).

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

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

<a id="remarksSection" />

## Remarques

Cette méthode suspend l'exécution de l'application dotée du moniker de package spécifié. Cette méthode est similaire à la commande `xbapp suspend` de l'outil Gestion des applications (xbapp.exe), inclus dans XBOX Tools Framework (XTF). Pour plus d'informations sur la commande `xbapp suspend`, consultez [Gestion des applications (xbapp.exe) (rubrique sous NDA)](/fr/tools/tools-console/commandlinetools/xbapp).

Vous pouvez reprendre l'exécution de l'application en appelant la méthode [IXtfApplicationClient::Resume](/fr/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m) ou la commande `xbapp resume` de l'outil Gestion des applications. Pour plus d'informations sur les états du cycle de vie d'un jeu, consultez [Cycle de vie d'un jeu XBOX (rubrique sous NDA)](/fr/build/console-features/console-workflows/xbox-game-life-cycle).

<a id="requirementsSection" />

## Configuration requise

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

**Bibliothèque :** xtfapplication.lib

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

<a id="seealsoSection" />

## Voir aussi

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


## Related topics

- [IXtfApplicationClient::Suspend](/ko/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/suspend-ixtfapplicationclient-xtfapplication-xbox-windows.md)
- [IXtfApplicationClient::Resume](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::DebugEnable](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/debugenable-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
