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

 

GetBuyNowLink

Returns a BuyNow link.

GetCurrentActivationDate

Obtains the date, when software has been activated.

GetCurrentProductVersion

Gets the current product version.

GetCurrentRegistrationDate

Gets the date, when software has been registered.

GetCustomerEMail

Obtains the customer's email address.

GetCustomerName

Returns the customer's name.

GetFirstRegistrationDate

Gets the first date, when software has been registered by current license code.

GetIntelliprotectorVersion

Returns the version of the protection engine.

GetLicenseCode

Gets the license code provided from registration process.

GetLicenseExpirationDate

Returns the date when order has been created.

GetLicenseExpirationDaysCount

Obtains the length of the 'retail' days.

GetLicenseExpirationDaysLeftCount

Returns the days, which are left before the license code expires.

GetLicenseType

Returns a license type for license code.

GetProtectionDate

Gets the date, when software has been protected.

GetRenewalPurchaseLink

Returns the 'purchase renewal code' link.

GetSupportExpirationDate

Gets the date, when support will be expired.

GetSupportExpirationDaysCount

Returns length of the support period in days.

GetSupportExpirationDaysLeftCount

Returns how many days remain before registration.

GetSupportExpirationProductVersion

Gets the product version when support will be expired.

GetOrderDate

Returns the date, when license will be expired.

GetTrialDaysCount

Obtains the days for the trial period.

GetTrialDaysLeftCount

Obtains how many days remain before registration.

GetTrialLaunchesCount

Returns count of free launches in the trial period.

GetTrialLaunchesLeftCount

Gets count of free launches in the trial period, which are left after activation.

GetTrialUnitsCount

Returns the time units for the trial period.

GetTrialUnitsLeftCount

Returns how many time units remain before registration.

IsSoftwareProtected

Says whether the software is protected or not protected.

IsSoftwareRegistered

Says whether software is registered or not registered.

IsTrialElapsed

Says whether trial is over on not.

RegisterSoftware

Register's the protected software by the license code provided.

RenewLicenseCode

Renew current license code by the renewal code.

ShowRegistrationWindow

Invokes a registration pop-up window.

 

 





Copyright © 2011 intelliprotector.com