IXtfApplicationClient::Terminate

Terminates the app with the specified package moniker.

Syntax

public:
HRESULT Terminate(
         LPCWSTR pszPackageMoniker
)  

Parameters

pszPackageMoniker
Type: LPCWSTR

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

Return value

Type: HRESULT

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

Remarks

This method terminates the app with the specified package moniker. This method is similar to the xbapp terminate command from the Application Management (xbapp.exe) tool, included as part of the Xbox Tools Framework (XTF). For more information about the xbapp terminate command, see Application Management (xbapp.exe) (NDA topic)Authorization required.

Note

To simulate the termination sequence performed by a development console, suspend the app for at least one second before terminating it. Immediate termination is a non-standard process that should not be used in test scenarios. For more information about game life cycle states, see Xbox Game Life Cycle (NDA topic)Authorization required.

Requirements

Header: xtfapplication.h

Library: xtfapplication.lib

Supported platforms: Windows (for Xbox console tools)

See also

IXtfApplicationClient
XtfApplication