🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.nativeapi.win32
2 messages
2 total messages Started by Veikko Mäkinen Fri, 04 Jul 2008 20:31
Current user's processes
#101
Author: Veikko Mäkinen
Date: Fri, 04 Jul 2008 20:31
19 lines
1422 bytes
Hey,

I've been trying to get a list of processes ran by the current user but 
so far without any luck. I have found several ways to list all running 
processes but haven't been able to get any user info. I use WMISet 
components from www.online-admin.com (the site seems to be down at the 
moment) and it's TWmiProcess class has GetOwnerSid and GetProcessOwner 
methods but I get "User does not have access to the requested 
information" when I use them. I run the software as local+domain admin.

Any help is greatly appreciated.


-veikko

-- 
            @
veikko
                veikko.fi
Re: Current user's processes
#102
Author: Christian Wimmer
Date: Fri, 04 Jul 2008 21:28
32 lines
1866 bytes
hi

There is an implementation TJwTerminalServer which can enumerate 
processes with additional information (like username).

Help about: 
http://jwscldoc.delphi-jedi.net/JwsclTerminalServer.TJwTerminalServer.html

The source can be downloaded from http://blog.delphi-jedi.net

Regards
Christian Wimmer
http://blog.delphi-jedi.net



Veikko M�kinen schrieb:
> Hey,
> 
> I've been trying to get a list of processes ran by the current user but 
> so far without any luck. I have found several ways to list all running 
> processes but haven't been able to get any user info. I use WMISet 
> components from www.online-admin.com (the site seems to be down at the 
> moment) and it's TWmiProcess class has GetOwnerSid and GetProcessOwner 
> methods but I get "User does not have access to the requested 
> information" when I use them. I run the software as local+domain admin.
> 
> Any help is greatly appreciated.
> 
> 
> -veikko
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads