GetTrialUnitsCount

Top  Previous  Next

This function obtains the total time units of the trial period.

 

static int GetTrialUnitsCount(int iDimension);

 

Parameters

 

 int iDimension - type of the timeframe, where:

         0 - minutes

         1 - hours

         2 - weeks

         3 - days

         4 - months

 

 You can use the predefined enum from the IntelliProtectorService namespace: enUnitDimension 

 enum enUnitDimension

 {

         eudMinutes,

         eudHours,

         eudDays,

         eudWeeks,

         eudMonths

 };

 

Return value

 

 Returns the count of units, which are available in the trial period.

 

Requirements

 

 Library: IntelliProtectorDummy.dll

 Source: UnitIntelliProtector.h

 

Example

 

#include "UnitIntelliProtector.h"

using namespace IntelliProtectorService;

//...

void TFormMain::UpdateIntelliprotectorControls()

{

 int iTrialDaysCount = CIntelliProtector::GetTrialUnitsCount(IntelliProtectorService::eudDays);

 lTrialDaysTotal->Caption = IntToStr(iTrialDaysCount);

}

 

 

 

 





Copyright © 2011 intelliprotector.com