General information
Category:
Windows API functions
>>>>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.
The problem is that i don0t see all my processes.... My app (an exe file) continue to be not accessible... i can' read the owner.... for other open processes i can see it without problems..... I noted that even in task manager i can see the process, but in the user column some processes has the column empty.... I am not an administrator,, But this is indipendent from my problem.... because now after i restarted the server i can see my name in task manager, but with my code i can't see all my processes' owner....
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only