Activation passes even that the key is disactivated

I had first activated the soft. Then I went to the website,disabled the key.Also put -0 in opts.nDaysBetweenChecks = 0 , removed TRIAL flag. I was expecting the activation to fail. But it doesn't .I am using the code exactly as it appears in C example. What am I doing wrong?

No enough information: https://wyday.com/limelm/help/faq/#useful-reports

1. Versions.

2. What error? Exact error code is needed. Also, note TurboActivate.h has a full list of error codes with descriptions explaining what they mean.

3. What function?

4. What parameters to those functions?

etc.

My guess is that TA_IsGenuineEx() is returning TA_E_INET_DELAYED. But I don't know. Hence the request for more information.

Nope,there is no error at all.Here is the block of code:

uint32_t taHandle; uint32_t trialFlags = TA_VERIFIED_TRIAL|TA_SYSTEM;

/* Used to store TurboActivate responses. */ HRESULT hr; GENUINE_OPTIONS opts = {0}; opts.nLength = sizeof(GENUINE_OPTIONS); opts.flags = TA_SKIP_OFFLINE;

opts.nDaysBetweenChecks = 0; opts.nGraceDaysOnInetErr = 0; //let hide the guid in Setup static taHandle = TA_GetHandle(Setup::license_GUID);

if (taHandle == 0) { exit(1); } hr = TA_IsGenuineEx(taHandle, &opts);

if (hr == TA_OK || hr == TA_E_FEATURES_CHANGED || hr == TA_E_INET || hr == TA_E_INET_DELAYED) { if (hr == TA_E_INET || hr == TA_E_INET_DELAYED) { // TODO: show a warning to your customers that this time (or the last time) // the IsGenuineEx() failed to connect to the LimeLM servers. printf("Last activation attempt failed.You must make sure your internet connection works and try again\n"); } return 0; }

hr returns with 0 . No errors. And I disabled the key via the website.

Hmm,but now I understand the problem more. When I have deactivated in the website,when I am launching the prog,it has that key hardcoded and after the activation check failed it tries to activate anew (last block in your example)so it re-activates it again. But I set the max deactivation count = 1. But it still allows to deactivate more than once,and re-activate again.Is it because I am deactivating via the website and I am actually the owner of that license?

Yes, the deactivation limit if for the customer deactivating your app (via the TA_Deactivate() function). You have the ability to override that at any time in the LimeLM interface.