| | |
| | | * application_data = xxxxxxxxx (optional string 16) |
| | | */ |
| | | const char *license_signature = ini.GetValue(productNamePtr, LICENSE_SIGNATURE, nullptr); |
| | | long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1); |
| | | if (license_signature != nullptr && license_version == 200) { |
| | | //没有用这个license_version了 不需要读 |
| | | // long license_version = ini.GetLongValue(productNamePtr, LICENSE_VERSION, -1); |
| | | if (license_signature != nullptr /*&& license_version == 200*/) { |
| | | CSimpleIniA::TNamesDepend keys; |
| | | ini.GetAllKeys(productNamePtr, keys); |
| | | FullLicenseInfo licInfo(*it, product, license_signature); |
| | |
| | | #if _WIN32 |
| | | #include <wtypes.h> |
| | | #endif |
| | | #include <cstdint> |
| | | |
| | | namespace license { |
| | | |
| | |
| | | |
| | | #ifndef SRC_LIBRARY_OS_CPU_INFO_H_ |
| | | #define SRC_LIBRARY_OS_CPU_INFO_H_ |
| | | #include <cstdint> |
| | | #include <string> |
| | | namespace license { |
| | | namespace os { |
| | |
| | | #include <mntent.h> |
| | | #include <dirent.h> |
| | | #include <sys/utsname.h> |
| | | #ifndef NDEBUG |
| | | #include <valgrind/memcheck.h> |
| | | #endif |
| | | // #ifndef NDEBUG |
| | | // #include <valgrind/memcheck.h> |
| | | // #endif |
| | | |
| | | //#ifdef USE_DISK_MODEL |
| | | ///#define PARSE_ID_FUNC parse_disk_id |