Skip to content

Latest commit

 

History

History
107 lines (85 loc) · 2.63 KB

nf-slpublic-slpersistapplicationpolicies.md

File metadata and controls

107 lines (85 loc) · 2.63 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:slpublic.SLPersistApplicationPolicies
SLPersistApplicationPolicies function (slpublic.h)
Stores the current consumed policies to disk for fast policy access.
SLPersistApplicationPolicies
SLPersistApplicationPolicies function [Security]
security.slpersistapplicationpolicies
slpublic/SLPersistApplicationPolicies
security\slpersistapplicationpolicies.htm
security
a4bf2bcc-3ea5-4288-9bad-b74efdd9969c
12/05/2018
SLPersistApplicationPolicies, SLPersistApplicationPolicies function [Security], security.slpersistapplicationpolicies, slpublic/SLPersistApplicationPolicies
slpublic.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Slc.lib
Slc.dll
Windows
19H1
SLPersistApplicationPolicies
slpublic/SLPersistApplicationPolicies
c++
APIRef
kbSyntax
DllExport
Slc.dll
SLPersistApplicationPolicies

SLPersistApplicationPolicies function

-description

Stores the current consumed policies to disk for fast policy access.

-parameters

-param pApplicationId [in]

Type: const SLID*

A pointer to the identifier of the application ID to be used for the fast policy queries.

-param pProductSkuId [in, optional]

Type: const SLID*

A pointer to the identifier of the ACID to be used for the fast policy queries.

-param dwFlags [in]

Type: DWORD

Additional flags.

-returns

Type: HRESULT WINAPI

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

Return code/value Description
E_INVALIDARG
0x80070057
One or more arguments are not valid.

-remarks

If the internal consumption fails then any current cache data is deleted.
Subsequent calls to the SLLoadApplicationPolicies function will return
SL_E_APPLICATION_POLICIES_MISSING.

The SLPersistApplicationPolicies function returns success if the policy update succeeds,
regardless of internal consumption results.