GetTrialUnitsCount |
Top Previous Next |
This function obtains total units of the trial period. This is can be minutes, hours, days, weeks, months and they are depending from the dimension.
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 count of time units which are available in the trial period.
Requirements
Header: IntelliProtector.h
Example
using namespace IntelliProtectorService; // ...
void ShowTrialDays() { int iTrialDaysCount = CIntelliProtector::GetTrialUnitsCount(IntelliProtectorService::eudDays); CString csTrialDays; csTrialDays.Format(L"Trial days: %d", iTrialDaysCount); AfxMessageBox(csTrialDays); }
|
Copyright © 2015 IntelliProtector.com |