|
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 license type you should add them manually on the Purchases tab page.
static int GetLicenseType();
Parameters
No parameters.
Return value
Returns type of license code.
Requirements
Library: IntelliProtectorDummy.dll Source: UnitIntelliProtector.h
Example
#include "UnitIntelliProtector.h" 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 in the trial period and in the Pro Version only... if(iLicenseType != -1 && iLicenseType != ciProVersion) return;
// encode mp3 here... }
|
| Copyright © 2011 intelliprotector.com |