Queries the execution state of the app with the specified package moniker.
public:
HRESULT QueryExecutionState(
LPCWSTR pszPackageMoniker,
DWORD *dwState
)
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. |
Type: HRESULT
HRESULT success or error code.
Header: Declared in xtfapplication.h.
Library: Use xtfapplication.lib.