Contents - Index


4.2.3.33 Set Licence

HRESULT WINAPI SLS_SetLicence(
                                                         LPCSTR pszProductID,
                                                         LPCSTR pszReference,
                                                         LPCSTR pszLicenceKey)

The SLS_SetLicence function asks the SLSAPI to authorise the product's licence policy.

Parameters

pszProductID

Points to a string that uniquely identifies the application's Product ID.

pszReference

Points to a string that uniquely identifies the application's Reference Code.

pszLicenceKey

Points to a string which contains a Licence Key.

Return Values

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned to indicate the cause of the error.

Remarks

The application calls the SLS_SetLicence to programmatically issue a licence policy with its licence key. LicenceKey is issued to the user by the publisher with the user's reference code which is generated by a call to the SLS_GetReference.