vc6 modify process priority

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Macinbomzh
    New Member
    • Nov 2009
    • 11

    vc6 modify process priority

    I've searched everywhere but couldn't find it.
    Is there a way to set the priority level of a process given it's ID?
  • RRick
    Recognized Expert Contributor
    • Feb 2007
    • 463

    #2
    Don't know if this will help or not. This changes the priority of the current process.

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      Try SetPriorityClas s it is not entirely to me clear how you obtained the Process ID as opposed to the handle, however if you can not obtain the Process handle directly to call SetPriorityClas s then use OpenProcess to get a handle to the process given its id.

      Comment

      Working...