IPackageDebugSettings::GetPackageExecutionState method (shobjidl_core.h)

Returns the current execution state of the specified package.

Syntax

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

Parameters

[in] packageFullName

Type: LPCWSTR

The package full name.

[out] packageExecutionState

Type: PACKAGE_EXECUTION_STATE*

Return value

Type: HRESULT

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

Remarks

Debuggers can use the GetPackageExecutionState to understand if the application currently is running, suspending, suspended, or terminated. The GetPackageExecutionState function doesn't provide the state of background tasks running in the package.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h

See also

IPackageDebugSettings