Partager via


IPackageDebugSettings::GetPackageExecutionState method

Gets the execution state for the processes of the specified package.

Syntax

HRESULT GetPackageExecutionState(
  [in]  LPCWSTR                 packageFullName,
  [out] PACKAGE_EXECUTION_STATE *packageExecutionState
);

Parameters

packageFullName [in]

Type: LPCWSTR

The package full name.

packageExecutionState [out]

Type: PACKAGE_EXECUTION_STATE*

A pointer to a variable that receives a PACKAGE_EXECUTION_STATE-typed value that indicates the execution state. Here are possible values:

PES_UNKNOWN (0)

PES_RUNNING (1)

PES_SUSPENDING (2)

PES_SUSPENDED (3)

PES_TERMINATED (4)

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Shobjidl_core.h

IDL

Shobjidl.idl

See also

IPackageDebugSettings