Home > Archive > VC Language > May 2006 > priority
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| mike7411@gmail.com 2006-05-25, 7:08 pm |
| Is there any way to programmatically set the priority of a process in
the task manager?
I want to make my program assign itself Realtime priority.
| |
| Igor Tandetnik 2006-05-25, 7:08 pm |
| mike7411@gmail.com wrote:
> Is there any way to programmatically set the priority of a process in
> the task manager?
SetPriorityClass
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
| |
| mike7411@gmail.com 2006-05-25, 7:08 pm |
| This works:
SetPriorityClass(GetCurrentProcess(), REALTIME_PRIORITY_CLASS);
Thanks, Igor.
|
|
|
|
|