GetLicenseInformation

GetLicenseInformation allows any application to gain access to the ObjectDatabase++ licence information.
static unsigned int GetLicenseInformation (
   LPFILETIME start,
   LPFILETIME finish,
   unsigned int *installations = NULL,
   char16_t **registeredName = NULL
);

Parameters

startthe time the licence period starts, this is UTC time so the local GetSystemTimeAsFileTime() works correctly.
finishthe time the licence period finishes, this is UTC time so the local GetSystemTimeAsFileTime() works correctly.
installationsa number showing how many installations are licensed.
registeredNamea '' terminating string showing the name of the licenesee.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use
  • C++
bool isRegistered(){
   FILETIME s, f, temp;
   CODBPP::GetLicenseInformation(&s,&f);
   GetSystemTimeAsFileTime(&temp);
   return CompareFileTime(&s,&temp) > 0 && CompareFileTime(&temp,&f) > 0;
}

Also See

RegisterODBPP
Listen All
Comments (0)
Characters left: 2500
 

Contact Ekky

Thanks for your interest.

Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript