Contents - Index Is Product Licensed

HRESULT WINAPI SLS_IsProductLicensed(LPCSTR pszProductID);

IsProductLicensed returns SLS_SUCCESS if Sheriff detects that the specified product has been licensed on the PC.

See also IsProductInstalled. Note that both functions are designed to detect the history of the product and licence. A success return does not necessarily mean the current state of the product or licence on the PC. In other words, if the specified product was installed or licensed once on the PC and then terminated or deleted, SLS_IsProductInstalled or SLS_IsProductLicensed will still succeed.

These functions are typically used in applications to prevent users from re-installing a trial licence.