| | |
| | | #include "LicenseReader.h" |
| | | |
| | | using namespace std; |
| | | DllExport void print_error(char out_buffer[256], LicenseInfo* licenseInfo) { |
| | | void print_error(char out_buffer[256], LicenseInfo* licenseInfo) { |
| | | |
| | | } |
| | | |
| | | DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, |
| | | char chbuffer[PC_IDENTIFIER_SIZE + 1]) { |
| | | void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, char chbuffer[PC_IDENTIFIER_SIZE + 1]) { |
| | | |
| | | } |
| | | |
| | |
| | | if (!it->has_expiry) { |
| | | it->toLicenseInfo(license); |
| | | break; |
| | | } else if (curLicense_exp < it->to_date) { |
| | | curLicense_exp = it->to_date; |
| | | } else if (curLicense_exp < it->expires_on()) { |
| | | curLicense_exp = it->expires_on(); |
| | | it->toLicenseInfo(license); |
| | | } |
| | | } |
| | |
| | | return result; |
| | | } |
| | | |
| | | DllExport enum EVENT_TYPE confirm_license(char * product, |
| | | EVENT_TYPE confirm_license(char * product, |
| | | LicenseLocation licenseLocation) { |
| | | return LICENSE_OK; |
| | | } |
| | | |
| | | DllExport enum EVENT_TYPE release_license(char * product, |
| | | EVENT_TYPE release_license(char * product, |
| | | LicenseLocation licenseLocation) { |
| | | return LICENSE_OK; |
| | | } |