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

Suspends execution of the app with the specified package moniker.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*pszPackageMoniker*<br />Type: LPCWSTR

A pointer to the package moniker of the app to suspend.

*fAsDebugger*<br />Type: BOOL

Specify TRUE to suspend the app with debugging enabled; otherwise, FALSE to disable debugging. For more information about the effects of enabling or disabling debugging, see [DebugEnable](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/debugenable-ixtfapplicationclient-xtfapplication-xbox-microsoft-m).

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

<a id="remarksSection" />

## Remarks

This method suspends execution of the app with the specified package moniker. This method is similar to the `xbapp suspend` command from the Application Management (xbapp.exe) tool, included as part of the XBOX Tools Framework (XTF). For more information about the `xbapp suspend` command, see [Application Management (xbapp.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbapp).

You can resume execution of the app by either invoking the [IXtfApplicationClient::Resume](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m) method or calling the `xbapp resume` command from the Application Management tool. For more information about game life cycle states, see [XBOX Game Life Cycle (NDA topic)](/build/console-features/console-workflows/xbox-game-life-cycle).

<a id="requirementsSection" />

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[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::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)
- [IXtfApplicationClient::Terminate](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/terminate-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [XtfCreateApplicationClient](/reference/tools/xtf/xtfapplication/methods/xtfcreateapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::Constrain](/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/constrain-ixtfapplicationclient-xtfapplication-xbox-windows-m.md)
