开发者

How can I change a process's BasePriority using .NET?

开发者 https://www.devze.com 2022-12-17 01:39 出处:网络
I\'m writing an application where a user can change the Application\'s (process\'s) Basepriority How can I do this in .Net?

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...)

0

精彩评论

暂无评论...
验证码 换一张
取 消