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.
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.
- pProductSkuId [in, optional]
-
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.
- 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/value | Description |
|---|---|
|
One or more arguments are not valid. |
|
The rights consumption failed. |
Requirements
|
Minimum supported client | Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
Send comments about this topic to Microsoft
Build date: 10/26/2012