Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List of active processes with user
Message
De
29/06/2021 05:53:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01681614
Message ID:
01681624
Vues:
47
>>>Someone can suggest me a way to retreive the list of current processes for the current user ? And not all ?
>>>I found code for the list, but i have problems while retreiving the owner...
>>>
>>
>>Michele,
>>
>>You may adjust to your needs / context:
>>
>> [...]
>
>The code works....but after some time...i have error 2 while trying to use getowner function... and so i can't get the owner and i can't understand my processes because i have the same error on all processes.....

Michele,

Are you using the code verbatim? Or did you adapt it? And, if that is so, can you post the exact code that is raising errors?

By the way, can you share the reason why do you need the list of process of the current user?

Also, note that if VFP is not running "as administrator", then the GetOwner() call is redundant: all the process retrieved are the ones owned by the logged user.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform