Safety doesn't exist. The only thing you can do is make it as hard as possible to crack. This will always a be a cat and mouse game. If there where some simple functions you could call or block to completely protect your application, then why has MS such a hard time of protecting their OS against hackers