Skip to main content
SLPersistApplicationPolicies function

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

Syntax


HRESULT WINAPI SLPersistApplicationPolicies(
  _In_      const SLID *pApplicationId,
  _In_opt_  const SLID *pProductSkuId,
  _In_      DWORD dwFlags
);

Parameters

pApplicationId [in]

Type: const SLID*

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

pProductSkuId [in, optional]

Type: const SLID*

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

dwFlags [in]

Type: DWORD

Additional flags.

Return value

Type: HRESULT WINAPI

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

Return code/valueDescription
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.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll