GetDaysLeftToExpiration for no expiry keys

Hello,
I would like to know how can one know if a key expires or not?
How I can retrieve the value of “Expires On”, or How can I differentiate between a key that expires and one that does not expire?
The function GetDaysLeftToExpiration gets the number of remaining days, but it get 0 for “No Expiry” and 0 for a key with is expired!!

Thanks in advanced.

Hi,

When a key expires, the IsProductGenuine () function starts returning LA_EXPIRED instead of LA_OK