Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HProcess?
Message
From
06/05/2000 20:40:03
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00366864
Message ID:
00367036
Views:
31
>>How do you search the set of running processes?
>>
>
>It's OS-dependent - at least two distinct methods exist, one works with Win9x and Win2K, the other with NT. Someone posted a file to do the first in the Files Section.
>
>>This has definitely been a research project. We found about GetCurrentProcess, but I originaly was trying to set the thread priority instead of the PriorityClass which was not working. I also assumed that getting a -1 for a process handle meant that I had an invalid handle. Later when trying to set and reset the priority I didn't have problems.
>>
>>>>I need the program to reset its own priority.
>>>>
>>>
>>>If you do not understand the consequences and mechanisms of adjusting the priority of a process you are exceedingly likely to hurt yourself. I'll lay very heavy odds that since you don't know about GetCurrentProcess() you are odds on to mangle Windows a few times.
>>
>>I am curious, as to how Windows would get mangled when changing the Process priority.
>>
>Read "Advanced Windows" by Jeffrey Richter.

I will check that out. Thank you.
Previous
Reply
Map
View

Click here to load this message in the networking platform