Set a callback func with a parameter, even that it shouldn't take them, like signale atexit etc....
Get all sort of information on your cpu using cpuid instruction
Might be usefull