Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Stores the current consumed policies to disk for fast policy access.
Syntax
HRESULT SLPersistApplicationPolicies(
[in] const SLID *pApplicationId,
[in, optional] const SLID *pProductSkuId,
[in] DWORD dwFlags
);
Parameters
[in] pApplicationId
Type: const SLID*
A pointer to the identifier of the application ID to be used for the fast policy queries.
[in, optional] pProductSkuId
Type: const SLID*
A pointer to the identifier of the ACID to be used for the fast policy queries.
[in] dwFlags
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/value | Description |
---|---|
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | slpublic.h |
Library | Slc.lib |
DLL | Slc.dll |