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 |
---|---|
|
One or more arguments are not valid. |
|
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 |