GetLicenseType

Top  Previous  Next

This function returns type of license code.

By default, project has only one license type (Full version, TypeID = 1).

If you need more than one type of license you should add them manually at the Purchases tab page.

 

static int GetLicenseType();

 

Parameters

 

 No parameters.

 

Return value

 

 Returns type of license code. 
 Returns -1 if license code is not available (software is not purchased, trial period).

 

Requirements

 

 Header: IntelliProtector.h

 

Example

 

using namespace IntelliProtectorService;

// ...

 

void MP3Encode_ProVersion()

{

 int iLicenseType = CIntelliProtector::GetLicenseType();

 

 const int ciLiteVersion = 1;

 const int ciBasicVersion = 2;

 const int ciProVersion = 3;

 

 // call this function during the trial period and for the Pro Version only...

 if (iLicenseType != -1 && iLicenseType != ciProVersion)

         return;

 

 // encode mp3 here...

}

 

 

 

 





Copyright © 2015 IntelliProtector.com