Export (0) Print
Expand All

SLGetLicenseFileId function

Checks if the license BLOB has been installed already.

Syntax


HRESULT WINAPI SLGetLicenseFileId(
  _In_   HSLC hSLC,
  _In_   UINT cbLicenseBlob,
  _In_   const BYTE *pbLicenseBlob,
  _Out_  SLID *pLicenseFileId
);

Parameters

hSLC [in]

The handle to the current SLC context.

cbLicenseBlob [in]

The size, in bytes, of the license BLOB.

pbLicenseBlob [in]

A pointer to the number of licenses in the BLOB.

pLicenseFileId [out]

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/valueDescription
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

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