IsGenuine return always TA_OK

Hi,

I'm using this code:

// LimeLMHRESULT hr; GENUINE_OPTIONS opts;opts.nLength = sizeof(GENUINE_OPTIONS);opts.nDaysBetweenChecks = 1;opts.nGraceDaysOnInetErr = 1; opts.flags = TA_SKIP_OFFLINE;hr = IsGenuineEx(TA_GUID, &opts);errs() << "HR = " << hr << "\n"; if (hr == TA_OK || hr == TA_E_FEATURES_CHANGED || hr == TA_E_INET || hr == TA_E_INET_DELAYED){ if (hr == TA_E_INET) { errs() << "GRACE TIME: " << opts.nGraceDaysOnInetErr << "\n"; NULL; } }else // not activated or genuine{ hr = CheckAndSavePKey(_T("SOME_KEY"), TA_USER); if(hr != TA_OK) { errs() << "Product key failed to save\n"; exit(1); } if (hr == TA_OK) { // try to activate hr = Activate(); switch(hr) { case TA_OK: errs() << "ACTIVATION OK\n"; break; case TA_E_REVOKED: errs() << "REVOKED\n"; exit(1); default: exit(1); } } }

But isGenuine() is always returning TA_OK (0) even if SOME_KEY was never activated... Am I missing something ?

Thanks

Some key was activated for your product version on that machine. You can see exactly which product key by using the GetPKey() function.

Wyatt wrote:> Some key was activated for your product version on that machine. You can> see exactly which product key by using the GetPKey() function.

Thanks for your answer... That was the problem!

Cheers