PACKAGE_EXECUTION_STATE enumeration (shobjidl_core.h)

Represents the state of a Windows app package.

Syntax

typedef enum PACKAGE_EXECUTION_STATE {
  PES_UNKNOWN = 0,
  PES_RUNNING = 1,
  PES_SUSPENDING = 2,
  PES_SUSPENDED = 3,
  PES_TERMINATED = 4
} ;

Constants

 
PES_UNKNOWN
Value: 0
The package is in an unknown state.
PES_RUNNING
Value: 1
The package is running.
PES_SUSPENDING
Value: 2
The package is being suspended.
PES_SUSPENDED
Value: 3
The package is suspended.
PES_TERMINATED
Value: 4
The package was terminated.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Header shobjidl_core.h (include Shobjidl.h)

See also

IPackageIPackageDebugSettings::GetPackageExecutionState

IPackageExecutionStateChangeNotification::OnStateChanged