Contents - Index


4.2.3.14 Get Licence Status

HRESULT WINAPI SLS_GetStatusCode(
                                                              LPCSTR pszProductID,
                                                              LPSTR pszStatusCode)

Parameters

pszProductID

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

pszStatusCode

Points to a buffer in which the Status Code is to be placed. The minimum size of the buffer is 32 bytes.

Return Values

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

Remarks

Use this function to retrieve the current status of the licence.

An end user can modify a licence policy by exporting keys; this function provides the publisher with a way of checking the current licence status and verifying it. Licence status is returned in the form of 40-digit code.