ITP_GET_TRIAL_UNITS_V3

Top  Previous  Next

This call tells the total duration of trial period in the time units.

 

ITP_GET_TRIAL_UNITS_V3(int iUnits, int iDimension);

 

Parameters

 

 iUnits - the number of minutes/hours/days/weeks/months in the evaluation period.

 iDimension - type of the timeframe, where:

         0 - minutes

         1 - hours

         2 - weeks

         3 - days

         4 - months

 

Return

 

 Returns nothing. The output value (iUnits) will get the number of time units.

 

Requirements

 

 Header: IntelliProtectorDeclarations.h

 

Example

 

int GetTrialDaysCount()

{

 int iDimension = 3; // days

 int iDays = 0;

 ITP_GET_TRIAL_UNITS_V3(iDays, iDimension);

 return iDays;

}

 

 

 

 





Copyright © 2015 IntelliProtector.com