![]() |
![]() |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| DelevopersObjectDatabase++ APIGet License Information |
static unsigned int GetLicenseInformation ( LPFILETIME start, LPFILETIME finish, unsigned int *installations = NULL, char16_t **registeredName = NULL );
| start | The time the licence period starts, this is UTC time so the local GetSystemTimeAsFileTime() works correctly |
| finish | The time the licence period finishes, this is UTC time so the local GetSystemTimeAsFileTime() works correctly |
| installations | A number showing how many installations are licensed |
| registeredName | A '\0' terminating string showing the name of the licenesee |
bool isRegistered(){
FILETIME s, f, temp;
CODBPP::GetLicenseInformation(&s,&f);
GetSystemTimeAsFileTime(&temp);
return CompareFileTime(&s,&temp) > 0 && CompareFileTime(&temp,&f) > 0;
}
Copyright © 2003-2008, Ekky Software Pty. Ltd.