Contents - Index


4.2.3.22 License

HRESULT SLS_License(
                                      LPCSTR pszProductID,
                                      SLS_LICENCE *pLicence,
                                      SLS_CHALLENGE *pChallenge)

The SLS_License function asks SLSAPI to authorise a licence policy.

Parameters

pszProductID

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

pLicence

Points to a licence policy structure.

pChallenge

Points to a challenge structure. The licence system does not challenge back.

Return Values

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

Remarks

If an application wants to issue a licence policy programmatically without the user's involvement, this is the function to call. This function is typically used by an application's installation program to issue an evaluation licence with a limited licence policy.

The input parameter for computing challenge is the Licence structure.