I'm writing an application where a user can change the Application's (process's) Basepriority
How can I do this in .Net?
Its seems I 开发者_Go百科can only "get" the Basepriority value but I cant "set" it.
Found it
System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.RealTime;
i was looking at System.Diagnostics.Process.GetCurrentProcess ().BasePriority
which is readonly
(i know lame...)
精彩评论