|
GetCurrentActivationDate |
Top Previous Next |
|
This function gets the date, when software has been activated.
static void GetCurrentActivationDate(int& iYear, int& iMonth, int& iDay, int& iHour, int& iMinute);
Parameters
int iYear - Year in date of the activation int iMonth - Month in date of the activation int iDay - Day in date of the activation int iHour - Hours in date of the activation int iMinute - Minutes in date of the activation
Return value
Returns nothing.
Requirements
Library: IntelliProtectorDummy.dll Source: UnitIntelliProtector.h
Example
#include "UnitIntelliProtector.h" using namespace IntelliProtectorService; //... void TFormMain::ShowCurrentActivationDate() { int iYear, iMonth, iDay, iHour, iMinute; CIntelliProtector::GetCurrentActivationDate(iYear, iMonth, iDay, iHour, iMinute);
if (iYear < 0) lCurrentActivationDate->Caption = "-1"; else { TVarRec vrParam[] = {iDay, iMonth, iYear, iHour, iMinute}; lCurrentActivationDate->Caption = Format("%d.%d.%d %d:%d", vrParam, 5); } }
|
| Copyright © 2011 intelliprotector.com |