dwmkerr / consolecontrol

ConsoleControl is a C# class library that lets you embed a console in a WinForms or WPF application.
MIT License
715 stars 167 forks source link

Set process priority #11

Open michaelswells opened 9 years ago

michaelswells commented 9 years ago

Is it possible to add a priority enum to set the executing command from within consolecontrol?

Example: // Use the values that the OS provides for setting priority values enum Priority { BelowNormal, Normal, AboveNormal, High, RealTime } this.consoleControl.StartProcess ( consoleApp, Priority.High, parameterString );

michaelswells commented 9 years ago

Added image for Priorities priority

dwmkerr commented 9 years ago

It sounds indeed like it would be useful, there should be some way to get a handle to the process and update the priority, I'll look into this and update the issue when I've got a plan.

michaelswells commented 9 years ago

Thanks On Sep 29, 2014 2:50 AM, "Dave Kerr" notifications@github.com wrote:

It sounds indeed like it would be useful, there should be some way to get a handle to the process and update the priority, I'll look into this and update the issue when I've got a plan.

— Reply to this email directly or view it on GitHub https://github.com/dwmkerr/consolecontrol/issues/11#issuecomment-57127207 .