Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HProcess?
Message
De
06/05/2000 17:43:19
 
 
À
06/05/2000 15:29:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00366864
Message ID:
00367009
Vues:
32
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform