Hi,
I've made a small program which listens on the parallel port for incoming data. The program works fine but uses alot of cpu time since it has an infinite do...while loop which listens.
Is there a windows api method which can set a process' priority. I've heard there's one called SetProcessClass() (it think thats the name) but i wasnt sure what the parameters were.
If anyone knows id be very grateful for any and all suggestions.
Thanks very much,
jOe
we are all of us living in the gutter.
But some of us are looking at the stars.
I've made a small program which listens on the parallel port for incoming data. The program works fine but uses alot of cpu time since it has an infinite do...while loop which listens.
Is there a windows api method which can set a process' priority. I've heard there's one called SetProcessClass() (it think thats the name) but i wasnt sure what the parameters were.
If anyone knows id be very grateful for any and all suggestions.
Thanks very much,
jOe
we are all of us living in the gutter.
But some of us are looking at the stars.