Partager via


IPackageDebugSettings::EnumerateBackgroundTasks method

Enumerates background tasks for the processes of the specified package.

Syntax

HRESULT EnumerateBackgroundTasks(
  [in]  LPCWSTR packageFullName,
  [out] ULONG   *taskCount,
  [out] LPCGUID *taskIds,
  [out] LPCWSTR **taskNames
);

Parameters

  • packageFullName [in]
    Type: LPCWSTR

    The package full name.

  • taskCount [out]
    Type: ULONG*

    A pointer to a variable that receives the number of background tasks that were enumerated.

  • taskIds [out]
    Type: LPCGUID*

    A pointer to memory space that receives a pointer to the array of IDs that represent all of the background tasks that were enumerated.

  • taskNames [out]
    Type: LPCWSTR**

    A pointer to memory space that receives a pointer to the string of names for all of the background tasks that were enumerated.

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