API Reference

DefineProduct

Description

The DefineProduct method initializes basic information required to validate license keys. You must call this function prior to calling any other function.

bool DefineProduct ( int ProductID, string ProductName, 
                    int MajorVersion, int MinorVersion, 
                    string EncryptionKey, string PersistenceKey )
VARIANT_BOOL DefineProduct ( int ProductID, BSTR ProductName, 
                            int MajorVersion, int MinorVersion,
                            BSTR EncryptionKey, BSTR PersistenceKey )

Arguments

NameData TypeDescription
ProductIDintID of the product as generated by Quick License Manager
ProductNamestringName of the product
MajorVersionintMajor version of the product (maximum 2 digits)
MinorVersionintMinor version of the product (maximum 2 digits)
EncryptionKeystringstring used to encrypt the license key (obsolete)
PersistenceKeystringGUID associated with the product and automatically generated by Quick License Manager for each product. The evaluation information of the product is stored at runtime in the registry under HKCR\CLSID<GUID>.

Return

TypeDescription
booltrue if successful; otherwise false.