Identify if license key is trial extension of if it is a normal product key

I am going to build my own UI for activating license keys and would like to use a single textbox for entering a license key whether it is a normal product key or simply a trial extension.

Since the API calls for activating a normal product key is different than the API call for activating a trial extension, I was wondering if there is some trick to tell what type of key it is by looking at the string. I could always try to do two API calls (for ex. TA_Activate() and if that fails then try TA_ExtendTrial()) but it would be simpler if there was a way of knowing in advance what type of key it is(like always having the first two letters of a trial extension key as "TE" or something similar). Likewise, is there a way to identify if an offline activation file is for a normal product key vs a trial extension?

Well, first of all, I'd say don't do that. From a usability standpoint it's confusing. We've done it with wyBuild and the next version of wyBuild we're completely separating the entries to reduce the confusion (and support load it causes).

However, if you still want to do it you can call TA_CheckAndSavePKey() to verify that it's a valid product key. And you can call TA_ExtendTrial() to verify that it's a valid trial extension.