Skip to main content
SLLoadApplicationPolicies function

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

Syntax


HRESULT WINAPI SLLoadApplicationPolicies(
  _In_      const SLID *pApplicationId,
  _In_opt_  const SLID *pProductSkuId,
  _In_      DWORD dwFlags,
  _Out_     HSLP *phPolicyContext
);

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.

phPolicyContext [out]

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/valueDescription
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

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