Thank you, but do I understand you correct that this should prevent the usage of Olly Debug on a program?
It seems that you create an endless amount of timers using SetTimer_() API function. As each of those functions will be called in intervall of 300 milliseconds, this will float the system with endless timers bringing the system to overload. Or am I wrong?
It may be enough to call the SetTimer_() API function once on program startup.
What, if the 'cracker' starts the program using OllyDebug and prevents the call of SetTimer_() on startup? I think this is not really a working trick against debugging using Olly-Debug...