Post some code so we can help at least with the timer part
edit: I would also believe that you cannot simply do that. Except by installing some driver-like software or changing some core functions or in general changing the way the OS registers the processes.