SLGetLicensingStatusInformation function (slpublic.h)

Gets the licensing status of the specified application or SKU.

Syntax

HRESULT SLGetLicensingStatusInformation(
  [in]           HSLC                hSLC,
  [in, optional] const SLID          *pAppID,
  [in, optional] const SLID          *pProductSkuId,
  [in, optional] PCWSTR              pwszRightName,
  [out]          UINT                *pnStatusCount,
  [out]          SL_LICENSING_STATUS **ppLicensingStatus
);

Parameters

[in] hSLC

Type: HSLC

Handle to the current SLC context.

[in, optional] pAppID

Type: const SLID*

A pointer to a SLID that represents the application ID.

pAppID pProductSkuId Results
NULL NULL Get previous right consumption result.
NULL Not NULL Get licensing status of this SKU.
Not NULL NULL Get licensing status of this application.
Not NULL Not NULL Get licensing status of this application/SKU.

[in, optional] pProductSkuId

Type: const SLID*

A pointer to a SLID that represents the product ID.

pAppID pProductSkuId Results
NULL NULL Get previous right consumption result.
NULL Not NULL Get licensing status of this SKU.
Not NULL NULL Get licensing status of this application.
Not NULL Not NULL Get licensing status of this application/SKU.

[in, optional] pwszRightName

Type: PCWSTR

Must be NULL.

[out] pnStatusCount

Type: UINT*

A pointer to the number of the SKU's status.

[out] ppLicensingStatus

Type: SL_LICENSING_STATUS**

A pointer to the licensing status of the SKU.

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_RIGHT_NOT_CONSUMED
0xC004F002
The rights consumption failed.

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