Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Process priority

Process priority

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    locoone
    wrote on last edited by
    #1

    i am stuck like chuck..... i can change from low to normal and high but how do i get priority belownormal and abovenormal?

    M 1 Reply Last reply
    0
    • L locoone

      i am stuck like chuck..... i can change from low to normal and high but how do i get priority belownormal and abovenormal?

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      locoone wrote:

      i can change from low to normal and high

      How are you doing that, chuck? :)

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      L 1 Reply Last reply
      0
      • M Mark Salsbery

        locoone wrote:

        i can change from low to normal and high

        How are you doing that, chuck? :)

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        L Offline
        L Offline
        locoone
        wrote on last edited by
        #3

        SetPriorityClass(hHandle, HIGH_PRIORITY_CLASS); //high SetPriorityClass(hHandle, NORMAL_PRIORITY_CLASS); //normal SetPriorityClass(hHandle, IDLE_PRIORITY_CLASS); //low its the belownormal and abovenormal i cant figure out

        T 1 Reply Last reply
        0
        • L locoone

          SetPriorityClass(hHandle, HIGH_PRIORITY_CLASS); //high SetPriorityClass(hHandle, NORMAL_PRIORITY_CLASS); //normal SetPriorityClass(hHandle, IDLE_PRIORITY_CLASS); //low its the belownormal and abovenormal i cant figure out

          T Offline
          T Offline
          tataxin
          wrote on last edited by
          #4

          ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
          BELOW_NORMAL_PRIORITY_CLASS 0x00004000
          HIGH_PRIORITY_CLASS 0x00000080
          IDLE_PRIORITY_CLASS 0x00000040
          NORMAL_PRIORITY_CLASS 0x00000020
          REALTIME_PRIORITY_CLASS 0x00000100

          There're some values for priority like above, you can try it!

          L 1 Reply Last reply
          0
          • T tataxin

            ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
            BELOW_NORMAL_PRIORITY_CLASS 0x00004000
            HIGH_PRIORITY_CLASS 0x00000080
            IDLE_PRIORITY_CLASS 0x00000040
            NORMAL_PRIORITY_CLASS 0x00000020
            REALTIME_PRIORITY_CLASS 0x00000100

            There're some values for priority like above, you can try it!

            L Offline
            L Offline
            locoone
            wrote on last edited by
            #5

            that worked thanks :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups