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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top