GetTrialUnitsLeftCount

Top  Previous  Next

This function returns how many time units remain before registration. During these time the software is still in the trial mode.

 

static int GetTrialUnitsLeftCount(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 number of trial units left.

 

Requirements

 

 Library: IntelliProtectorDummy.dll

 Source: UnitIntelliProtector.h

 

Example

 

#include "UnitIntelliProtector.h"

using namespace IntelliProtectorService;

//...

void TFormMain::UpdateIntelliprotectorControls()

{

 int iTrialDaysLeftCount = CIntelliProtector::GetTrialUnitsLeftCount(IntelliProtectorService::eudDays);

 lTrialDaysLeft->Caption = IntToStr(iTrialDaysLeftCount);

}

 

 

 

 





Copyright © 2011 intelliprotector.com