Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Stores the specified license and returns a license file ID.
Syntax
HRESULT SLInstallLicense(
[in] HSLC hSLC,
[in] UINT cbLicenseBlob,
[in] const BYTE *pbLicenseBlob,
[out] SLID *pLicenseFileId
);
Parameters
[in] hSLC
Type: HSLC
The handle to the current SLC context.
[in] cbLicenseBlob
Type: UINT
Size of license BLOB.
[in] pbLicenseBlob
Type: const BYTE*
A pointer to the licenses in the BLOB.
[out] pLicenseFileId
Type: SLID*
A pointer to the license file ID.
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. |
|
Access denied (API requires admin privileges). |
|
The action requires administrator privilege. |
|
The license is not valid. |
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 |