SLUnloadApplicationPolicies function (slpublic.h)

Releases the policy context handle returned by the SLLoadApplicationPolicies function.

Syntax

HRESULT SLUnloadApplicationPolicies(
  [in] HSLP  hPolicyContext,
  [in] DWORD dwFlags
);

Parameters

[in] hPolicyContext

Type: HSLP

The context handle returned by the SLLoadApplicationPolicies function.

[in] dwFlags

Type: DWORD

The 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
E_INVALIDARG
0x80070057
One or more arguments are not valid.
SL_E_APPLICATION_POLICIES_NOT_LOADED
0xC004F073
The policy context was not 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