Export (0) Print
Expand All

SLGetLicensingStatusInformation function

Gets the licensing status of the specified application or SKU.

Syntax


HRESULT WINAPI SLGetLicensingStatusInformation(
  _In_      HSLC hSLC,
  _In_opt_  const SLID *pAppID,
  _In_opt_  const SLID *pProductSkuId,
  _In_opt_  PCWSTR pwszRightName,
  _Out_     UINT *pnStatusCount,
  _Out_     SL_LICENSING_STATUS **ppLicensingStatus
);

Parameters

hSLC [in]

Type: HSLC

Handle to the current SLC context.

pAppID [in, optional]

Type: const SLID*

A pointer to a SLID that represents the application ID.

pAppIDpProductSkuIdResults

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.

 

pProductSkuId [in, optional]

Type: const SLID*

A pointer to a SLID that represents the product ID.

pAppIDpProductSkuIdResults

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.

 

pwszRightName [in, optional]

Type: PCWSTR

Must be NULL.

pnStatusCount [out]

Type: UINT*

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

ppLicensingStatus [out]

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/valueDescription
E_INVALIDARG
0x80070057

One or more arguments are not valid.

SL_E_RIGHT_NOT_CONSUMED
0xC004F002

The rights consumption failed.

 

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft