struct DeviceInfo

 struct Activation

 struct License


struct DeviceInfo


Some fields of USB device descriptor.

 

int idVendor; 

int idProduct; 

int bcdDevice; 

std::string product; 

std::string manufacturer; 

std::string serial; 

}; 

 

Members: 

 

idVendor - Vendor ID (Assigned by USB Org) 

idProduct - Product ID (Assigned by Manufacturer) 

bcdDevice - Device Release Number in BCD format (Assigned by Manufacturer) product - contents of Product String Descriptor 

manufacturer - contents of Manufacturer String Descriptor 

serial - contents of Serial Number String Descriptor


struct Activation


Information from your license. 

 

std::string status; 

std::string key; 

std::string license; 

std::string registeredTo; 

int deviceLimit; 

int daysLeft; 

int activated; 

int expired; 

}; 

 

Members: 


status - activation status 

key - key used for activation 

license - license name 

registeredTo - the owner of the license 

deviceLimit - max number of USB ports that can be shared at a time daysLeft - number of days left until your trial or ‘grace period’ ends activated - 1 if activated, 0 if not 

expired - 1 if your trial or ‘grace period’ expired


struct License


Information from your license. 


int deviceLimit; 

std::string licenseType; 

std::string registeredTo; 

time_t creationTime; 

time_t trialExpires; 

}; 

 

Members: 


deviceLimit - max number of USB ports that can be shared at a time licenseType - "SDK", etc. 

registeredTo - the owner of the license 

creationTime - date of license purchase 

trialExpires - zero, if already registered (not a trial anymore)