Dear LimeLM support,
we've integrated a custom license field today.
When now creating a new license key and using it for activation, I can activate it successfully and get the right message (e.g. with the wizard on windows). When the application now calls IsGenuineEx(TA_GUID, &opts), it returns 13 (TA_E_INVALID_ARGS). After letting my application run through the trial check which comes subsequently like in your cod example, the activation wizard returns, that the activation period has expired.
On other machine, where the activations have been done earlier, everything works fine as before.
The code used until the invalid_args are returned:
HRESULT hr;GENUINE_OPTIONS opts;opts.nLength = sizeof(GENUINE_OPTIONS);opts.nDaysBetweenChecks = 90;opts.nGraceDaysOnInetErr = 14;opts.flags = TA_SKIP_OFFLINE;hr = IsGenuineEx(TA_GUID, &opts);
The added field is an integer, which I try to read like this (can't prove that it's working yet):
TCHAR * featureValue;hr = GetFeatureValue(_T("LimitImageSize"), 0, 0);featureValue = (TCHAR *)malloc(hr * sizeof(TCHAR));hr = GetFeatureValue(_T("LimitImageSize"), featureValue, hr);
if (hr == TA_OK){ int limit_resolution = 0;#ifdef _WIN32 limit_resolution = (int) _wtof ( featureValue );#else limit_resolution = (int) atof ( featureValue );#endif(...)
Do you have an idea what the problem could be?