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.