If you get TA_E_ACTIVATE then it's because you're not activated. It's really that simply. Which means you'll never get a TA_E_REVOKED response. Why? Because you're not activated.
Note: using TA 3.x, don't disable network adapters to "test no internet connectivity". This shuts off power to the device, thus changing the fingerprint.
In TA 4.0 (out soon) we fix this user-behavior by working around it.
If you want to test "no internet connectivity" then:
1. On Wireless card: disconnect from the network. There's a button for it in the Wifi list in Windows.2. On Wired connection: unplug the cable.
>> "Next, it sets a trial period to 30 days, regardless of how I initialize trialDays before the call hr = TrialDaysRemaining(TA_GUID, &trialDays);"
Did you call UseTrial() first? My guess is not. Or you didn't read the error code from UseTrial().