GetFirstRegistrationDate (1)

Top  Previous  Next

This function retrieves a date when the software has been registered in first time by the current license code.

 

static void GetFirstRegistrationDate(OUT int& iYear, OUT int& iMonth, OUT int& iDay, OUT int& iHour, OUT 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

 

 Header: IntelliProtector.h

 

Example

 

using namespace IntelliProtectorService;

// ...

 

void ShowFirstRegistrationDate()

{

 int iYear, iMonth, iDay, iHour, iMinute;

 iYear = iMonth = iDay = iHour = iMinute = 0;

 

 CIntelliProtector::GetFirstRegistrationDate(iYear, iMonth, iDay, iHour, iMinute);

 

 CString csDate;

 csDate.Format("%d.%d.%d %d:%d", iDay, iMonth, iYear, iHour, iMinute);

 AfxMessageBox(csDate);

}

 

 

 





Copyright © 2015 IntelliProtector.com