How do I start a .NET process with idle priority?

前端 未结 2 845
执念已碎
执念已碎 2020-12-21 05:09

I\'m using System.Diagnostics.ProcessStartInfo to set up the parameters for launching a process from a .NET program. Once the the process is started, I can use



        
2条回答
  •  礼貌的吻别
    2020-12-21 06:07

    Start the process suspended, then change the priority, and then resume the process. You do this with the CreateProcess Win32 function using the CREATE_SUSPENDED flag but unfortunately I am not sure if there's support in .NET for this and you might need to resort to P/Invoke.

提交回复
热议问题