Priority
-
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me ;P
-
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me ;P
By setting thread priority, you cannot stop mouse or keyboard. For mouse or keyboard, you have to disable interrupts:) ARSALAN MALIK
-
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me ;P
Please tell us all the name of your program so we know never to use it.:wtf: Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
-
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me ;P
You cannot do this in a normal windows program. You might be able to do this by running all your code in a device driver (Ring 0). Note that I said might. There are non maskable interupts on PCs, and windows wasn't designed for drivers to mask interupts for very long. Odds are very good that you will see many unwanted side effects no matter how you work things. You need a real time OS, on hardware designed for this. Windows XP/NT is not. Windows CE is, maybe. Learn something about real time operating systems, and the problems they face. Decide which is for you. Until you understand this subject (which is very large) you cannot ask the right questions.
-
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me ;P
Why in the name of God do you want to stop the user from interaction with the computer? That would be the worst thing a developer can do... The way you get most CPU cicles is to set the priority to REALTIME. (more that a system process). Even that is not a wise thing to do. And the best and fastest way to get access to information on api's is to take a peek in MSDN[^]. Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.