IXtfApplicationClient::QueryExecutionState Method

Queries the execution state of the app with the specified package moniker.

Syntax

public:
HRESULT QueryExecutionState(
         LPCWSTR pszPackageMoniker,
         DWORD *dwState
)  

Parameters

pszPackageMoniker
Type: LPCWSTR 

Pointer to the package moniker of the app to query.

dwState
Type: DWORD *

Pointer that receives the execution state of the app. This will be one of the values listed in the following table.

Constant Value Description
Unknown 0 The execution state of the app is unknown.
Running 1 The app is currently running.
Suspending 2 The app is in the process of suspending.
Suspended 3 Execution of the app is currently suspended.
Terminated 4 The app has been terminated.

Return value

Type: HRESULT 

HRESULT success or error code.

Requirements

Header: Declared in xtfapplication.h.

Library: Use xtfapplication.lib.

See also

Reference

IXtfApplicationClient Interface

IXtfApplicationClient Members

XtfApplication