Does anyone know the mechanism of how a trial version works? In other words, How do you write your code in order for your program to refuse being launched after say 30 days?

By the way, I know some developer write date information in the registry, but it is not perfect. Any other way?

Thanks.