|
GetCurrentRegistrationDate |
Top Previous Next |
|
This function gets the date, when software has been registered.
static void GetCurrentRegistrationDate(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::ShowCurrentRegistrationDate() { int iYear, iMonth, iDay, iHour, iMinute; CIntelliProtector::CurrentRegistrationDate(iYear, iMonth, iDay, iHour, iMinute);
if (iYear < 0) lCurrentRegistrationDate->Caption = "-1"; else { TVarRec vrParam[] = {iDay, iMonth, iYear, iHour, iMinute}; lCurrentRegistrationDate->Caption = Format("%d.%d.%d %d:%d", vrParam, 5); } }
|
| Copyright © 2011 intelliprotector.com |