SLGetLicense function

Returns the license file BLOB.

Syntax


HRESULT WINAPI SLGetLicense(
  _In_   HSLC hSLC,
  _In_   const SLID *pLicenseFileId,
  _Out_  UINT *pcbLicenseFile,
  _Out_  PBYTE *ppbLicenseFile
);

Parameters

hSLC [in]

Type: HSLC

The handle to the current SLC context.

pLicenseFileId [in]

Type: const SLID*

A pointer to the license file ID.

pcbLicenseFile [out]

Type: UINT*

A pointer to the size, in bytes, of the license file BLOB.

ppbLicenseFile [out]

Type: PBYTE*

The license file BLOB.

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_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