SLInstallSAMLicense function
[SLInstallSAMLicense is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Installs a Software Asset Management (SAM) license for the specified application.
HRESULT WINAPI SLInstallSAMLicense(
_In_ const SLID *pApplicationId,
_In_ UINT cbXmlLicenseData,
_In_ const BYTE *pbXmlLicenseData
);
pApplicationId [in]
A pointer to an SLID structure that specifies the application for which to install a SAM license.cbXmlLicenseData [in]
The size, in bytes, of the pbXmlLicenseData buffer.pbXmlLicenseData [in]
A pointer to an array of BYTE pointers that specifies data for the SAM license.
If the method succeeds, it returns S_OK.
If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.
This function can return the following values defined in Slerror.h.
Return code/value | Description |
---|---|
SL_E_LICENSE_FILE_NOT_INSTALLED 0xC004F011 | The software license file for the specified application does not exist. |
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
Slpublic.h |
Library |
Slc.lib |
DLL |
Slc.dll |