GetLicenseExpirationDate

Top  Previous  Next

This function returns the date, when license will be expired.

 

procedure GetLicenseExpirationDate(iYear:PInteger; iMonth:PInteger; iDay:PInteger; iHour:PInteger; iMinute:PInteger);

 

Parameters

 

 iYear: PInteger   - Year in date

 iMonthPInteger  - Month in date

 iDayPInteger    - Day in date

 iHourPInteger   - Hours in date

 iMinutePInteger - Minutes in date

 

Return value

 

 Returns nothing.

 

Requirements

 

 Library: IntelliProtectorDummy.lib

 Source: UnitIntelliProtector.pas

 

Example

 

uses UnitIntelliProtector;

//...

procedure TFormMain.ShowLicenseExpirationDate();

var

 iYear, iMonth, iDay, iHour, iMinute: Integer;

 

begin

   IntelliProtector.GetLicenseExpirationDate(Addr(iYear), Addr(iMonth), Addr(iDay), Addr(iHour), Addr(iMinute));

   if (iYear < 0) Then

       lLicenseExpirationDate.Caption := '-1'

   else

       lLicenseExpirationDate.Caption := Format('%d.%d.%d %d:%d', [iDay, iMonth, iYear, iHour, iMinute]);

end;

 

 





Copyright © 2015 IntelliProtector.com