SLLoadApplicationPolicies function (slpublic.h)

Loads the application policies set with the SLPersistApplicationPolicies function
for use by the SLGetApplicationPolicy function.

Syntax

HRESULT SLLoadApplicationPolicies(
  [in]           const SLID *pApplicationId,
  [in, optional] const SLID *pProductSkuId,
  [in]           DWORD      dwFlags,
  [out]          HSLP       *phPolicyContext
);

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.

[out] phPolicyContext

Type: HSLP*

A pointer to a policy context for use in the SLGetApplicationPolicy function and
the SLUnloadApplicationPolicies function.

Return value

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.
SL_E_APPLICATION_POLICIES_MISSING
0xC004F072
The license policies for fast query could not be found.

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