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