Click to See Complete Forum and Search --> : Force Thread Priority Change
VictorB212
Mar 31st, 2002, 03:52 PM
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!
CornedBee
Apr 3rd, 2002, 07:26 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.