> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Suspend

> IXtfApplicationClient::Suspend

Suspends execution of the app with the specified package moniker.

## Syntax

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

### Parameters

*pszPackageMoniker*\
Type: LPCWSTR

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

*fAsDebugger*\
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](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/debugenable-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md).

### Return value

Type: HRESULT

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

## 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)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbapp.md).

You can resume execution of the app by either invoking the [IXtfApplicationClient::Resume](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/resume-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md) 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)](https://docs.xbox.com/build/console-features/console-workflows/xbox-game-life-cycle.md).

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

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

## See also

[IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [xcurl_global_suspend](https://docs.xbox.com/reference/networking/xcurl/functions/xcurl_global_suspend.md)
- [PlayFabMultiplayerManager.Get().Suspend](https://docs.xbox.com/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitysuspend.md)
- [xCurl overview](https://docs.xbox.com/build/console-features/networking/web-requests/intro-xcurl.md)
- [Intro to Game Chat 2](https://docs.xbox.com/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [PlayFab Party](https://docs.xbox.com/build/console-features/networking/game-mesh/playfab-party-intro-networking.md)
