Skip to content

Latest commit

 

History

History
137 lines (109 loc) · 2.61 KB

nf-slpublic-slconsumeright.md

File metadata and controls

137 lines (109 loc) · 2.61 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:slpublic.SLConsumeRight
SLConsumeRight function (slpublic.h)
Let an application to exercise rights on a locally-stored licenses.
SLConsumeRight
SLConsumeRight function [Security]
security.slconsumeright
slpublic/SLConsumeRight
security\slconsumeright.htm
security
d61ec4ec-c552-4963-8f4e-a1540081e747
12/05/2018
SLConsumeRight, SLConsumeRight function [Security], security.slconsumeright, slpublic/SLConsumeRight
slpublic.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Slc.lib
Slc.dll
Windows
19H1
SLConsumeRight
slpublic/SLConsumeRight
c++
APIRef
kbSyntax
DllExport
Slc.dll
SLConsumeRight

SLConsumeRight function

-description

Let an application to exercise rights on a locally-stored licenses. Calling this function binds a license to the right.

-parameters

-param hSLC [in]

Type: HSLC

The handle to the current SLC context.

-param pAppId [in]

Type: const SLID*

A pointer to the identifier of the application who's right is going to be
consumed.

-param pProductSkuId [in, optional]

Type: const SLID*

A pointer to the identifier of product SKU. If set to NULL, all of the product SKU's
licenses will be consumed.

-param pwszRightName [in, optional]

Type: PCWSTR

The name of right to be consumed.

-param pvReserved

Type: PVOID

Reserved.

-returns

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_RIGHT_NOT_GRANTED
0xC004F013
The caller does not have permission to run the software.
SL_E_PRODUCT_SKU_NOT_INSTALLED
0xC004F015
The license is not installed.