Set process priority

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How can I change the priority of the current process in managed C++. I think
it sould look like :

System::Diagnostics::Process::PriorityClass =
System::Diagnostics::ProcessPriorityClass::High;

Thanks,

Hugo
 
Hi H.!
How can I change the priority of the current process in managed C++. I think
it sould look like :

System::Diagnostics::Process::PriorityClass =
System::Diagnostics::ProcessPriorityClass::High;

System::Diagnostics::Process ^p =
System::Diagnostics::Process::GetCurrentProcess();
p->PriorityClass = System::Diagnostics::ProcessPriorityClass::High;


--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Back
Top