Change Process priority does not work

前端 未结 3 1866
谎友^
谎友^ 2021-02-07 08:37

I run an Audio Repeater application which allows me to play sound through my headset & Speakers at the same time. The Application itself has an ability to set itself to \"Re

3条回答
  •  情歌与酒
    2021-02-07 09:18

    Try this :

    using (Process p = Process.GetCurrentProcess())
        p.PriorityClass = ProcessPriorityClass.High;  
    

提交回复
热议问题