GetTrialUnitsLeftCount

Top  Previous  Next

This function returns how many time units remain till registration. During this period 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

 

 Header: IntelliProtector.h

 

Example

 

using namespace IntelliProtectorService;

// ...

 

void ShowTrialDaysLeft()

{

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

 CString csTrialDays;

 csTrialDays.Format(L"Trial is expires after %d days", iTrialDaysLeftCount);

 AfxMessageBox(csTrialDays);

}

 

 

 





Copyright © 2011 intelliprotector.com