There are 2 separate error codes with the 0xD (13):
/* MessageId: TA_E_TRIAL_EEXP
MessageText:
The trial extension has expired.*/#define TA_E_TRIAL_EEXP ((HRESULT)0x0000000DL)
/* MessageId: TA_E_EXPIRED
MessageText:
The activation has expired or the system time has been tampered with. Check your time and date settings are correct.*/#define TA_E_EXPIRED ((HRESULT)0x0000000DL)
IsGenuine, IsGenuineEx, Activate, etc. all return TA_E_EXPIRED not TA_E_TRIAL_EEXP. In other words, this has nothing to do with trials. The trial and activation systems are completely separate.
So, what should you do? Well, the error message gives you a good place to start:
The activation has expired or the system time has been tampered with. Check your time and date settings are correct.