Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 2.55 KB

nf-appmodel-apppolicygetlifecyclemanagement.md

File metadata and controls

72 lines (58 loc) · 2.55 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:appmodel.AppPolicyGetLifecycleManagement
AppPolicyGetLifecycleManagement function (appmodel.h)
Retrieves a value indicating whether a process can be suspended/resumed by the Process Lifecycle Manager (PLM).
AppPolicyGetLifecycleManagement
AppPolicyGetLifecycleManagement function [App packaging and management]
appmodel/AppPolicyGetLifecycleManagement
appxpkg.apppolicygetlifecyclemanagement_function
appxpkg\apppolicygetlifecyclemanagement_function.htm
appxpkg
FED6C183-7AA9-428F-8815-F6BC9844B360
12/05/2018
AppPolicyGetLifecycleManagement, AppPolicyGetLifecycleManagement function [App packaging and management], appmodel/AppPolicyGetLifecycleManagement, appxpkg.apppolicygetlifecyclemanagement_function
appmodel.h
Windows
OneCoreUap.lib
Api-ms-win-appmodel-runtime-l1-1-2.dll
Windows
19H1
AppPolicyGetLifecycleManagement
appmodel/AppPolicyGetLifecycleManagement
c++
APIRef
kbSyntax
DllExport
api-ms-win-appmodel-runtime-l1-1-2.dll
AppPolicyGetLifecycleManagement

AppPolicyGetLifecycleManagement function

-description

Retrieves a value indicating whether a process can be suspended/resumed by the Process Lifecycle Manager (PLM). You can use the value to decide whether to subscribe to relevant notifications from the PLM, or to register for a classic system suspend notification.

-parameters

-param processToken [in]

A handle that identifies the access token for a process.

-param policy [out]

A pointer to a variable of the AppPolicyLifecycleManagement enumerated type. When the function returns successfully, the variable contains an enumerated constant value indicating whether the identified process is lifecycle-managed or not.

-returns

If the function succeeds, the function returns ERROR_SUCCESS.

If no known lifecycle management policy was found for the process token, the function raises a STATUS_ASSERTION_FAILURE exception and returns ERROR_NOT_FOUND.

If either processToken or policy are null, the function returns ERROR_INVALID_PARAMETER.