Results 1 to 2 of 2

Thread: Force Thread Priority Change

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2001
    Posts
    521

    Force Thread Priority Change

    I've tried demoting a thread priority from realtime to something lower in VB and C++. Neither worked. Thus, I am curious as to if it is possible to force a thread of another program to go to a lower priority using assembly, if the ThreadID is known. Any help would be appreciated!

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I think there is a EnumProcessThreads function that you can use to get all thread handles of a process, but I couldn't find it in the reference.

    But to be honest, I don't think a realtime thread will allow you to execute any code anyway...


    There is nothing concerning inner windows you can do in assembly what you couldn't do in C, since it all relies on the API. If there is no API function that gives you thread handles of another process' threads, you can't do what you want.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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