Is there any API to detect User already Activated by Online Mode (function Activate()) or Offline Mode (function ActivateFromFile())
Nope, just use TA_IsActivated
and TA_IsGenuineEx
. Neither will tell you whether the activation happened online or offline.