@JvS yep of course this is possible..
A small example:

//DllGetCpuSpeed needs a bit time for calculating (1/4 second)
if(DllGetCpuSpeed() < 1000) { /*error panel */ return; }

TripleX