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

> IXtfApplicationClient::QueryExecutionState

# IXtfApplicationClient::QueryExecutionState

Interroge l'état d'exécution de l'application dotée du moniker de package spécifié.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
public:
HRESULT QueryExecutionState(
         LPCWSTR pszPackageMoniker,
         DWORD *dwState
)  
```

<a id="parametersSection" />

### Paramètres

*pszPackageMoniker*<br />Type : LPCWSTR

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

*dwState*<br />Type : DWORD\*

Pointeur qui reçoit l'état d'exécution de l'application. Ce paramètre est défini sur l'une des valeurs répertoriées dans le tableau suivant.

| Constante | Valeur | Description |
| - | - | - |
| Unknown | 0 | L'état d'exécution de l'application est inconnu. |
| Running | 1 | L'application est en cours d'exécution. |
| Suspending | 2 | L'application est en cours de suspension. |
| Suspended | 3 | L'exécution de l'application est actuellement suspendue. |
| Terminated | 4 | L'application a été arrêtée. |

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

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

[Interface 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::QueryExecutionState](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/queryexecutionstate-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::DebugQuery](/ko/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/ixtfapplicationclient-debugquery.md)
