CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Wisconsin, USA
    Posts
    953

    Changing Process Priority without CreateProcess()



    Is it possible to change the priority of a process to either:

    HIGH_PRIORITY_CLASS, IDLE_PRIORITY_CLASS,

    NORMAL_PRIORITY_CLASS or REALTIME_PRIORITY_CLASS

    when you are not using CreateProcess()?


    I have SDI and Dialog based applications created by the Class

    Wizard.


    Is there anyway to dynamically change the priority of my process?



  2. #2
    Join Date
    May 1999
    Location
    Canada
    Posts
    176

    Re: Changing Process Priority without CreateProcess()

    You can change the priority of the current process with:

    SetPriorityClass(AfxGetApp(), XXX_PRIORITY_CLASS);


    Where there is a WISH, there is a WILL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured