SLGetLicenseFileId function (slpublic.h)

Checks if the license BLOB has been installed already.

Syntax

HRESULT SLGetLicenseFileId(
  [in]  HSLC       hSLC,
  [in]  UINT       cbLicenseBlob,
  [in]  const BYTE *pbLicenseBlob,
  [out] SLID       *pLicenseFileId
);

Parameters

[in] hSLC

The handle to the current SLC context.

[in] cbLicenseBlob

The size, in bytes, of the license BLOB.

[in] pbLicenseBlob

A pointer to the number of licenses in the BLOB.

[out] pLicenseFileId

A pointer to the license file ID.

Return value

If the License has been previously installed, it returns a SLID. Otherwise, it returns an HRESULT error code.

Return code/value Description
E_INVALIDARG
0x80070057
One or more arguments are not valid.
SL_E_INVALID_LICENSE
0xC004F01F
The license is not valid.
SL_E_LICENSE_FILE_NOT_INSTALLED
0xC004F011
The license file is not installed.

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