GetCurrentActivationDate (1) |
Top Previous Next |
This function retrieves a date when the software has been activated on the current computer.
static void GetCurrentActivationDate(OUT int& iYear, OUT int& iMonth, OUT int& iDay, OUT int& iHour, OUT int& iMinute);
Parameters
int iYear - Year in date of the activation int iMonth - Month in date of the activation int iDay - Day in date of the activation int iHour - Hours in date of the activation int iMinute - Minutes in date of the activation
Return value
Returns nothing.
Requirements
Header: IntelliProtector.h
Example
using namespace IntelliProtectorService; // ...
void ShowActivationDate() { int iYear, iMonth, iDay, iHour, iMinute; iYear = iMonth = iDay = iHour = iMinute = 0;
CIntelliProtector::GetCurrentActivationDate(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 |