开发者

How can I change a process's BasePriority using .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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜