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