Messing with the date/time isn't the correct way to test things. Just set the nDaysBetweenChecks to a low number (like 1) and nGracePeriodDays to 0. Then, the next day you can test things without triggering our fraud detection algorithms.
This is the test flow:1. Activate with product key.2. Quit app. Unplug network cable.3. Change date time to pass poll+grace period.4. Launch app. Call TA_IsGenuineEx which returns TA_E_INET. Call TA_IsGenuineEx again then it returns with TA_FAIL (Assuming TA_FAIL is past grace and no inet).5. Quit app. Plug in network cable.6. Launch app. Call TA_IsGenuineEx TA_FAIL. Call TA_IsGenuine (Forcing network connect) returns TA_E_INET (Expecting it to return TA_OK at this point).
Also for step 4, we are calling TA_IsGenuineEx twice if it returns TA_E_INET, so we know that the user has pass grace period.
We will try testing this without changing the date/time also. Is there something that we're doing wrong here?
Thanks.
Messing with the date/time isn't the correct way to test things. Just set the nDaysBetweenChecks to a low number (like 1) and nGracePeriodDays to 0. Then, the next day you can test things without triggering our fraud detection algorithms.