|
-
Dec 17th, 2002, 07:08 PM
#1
Thread Starter
Hyperactive Member
Retreiving running processes list...
Ok... In WinXP .. ctrl+alt+del you can view all the process's, and the 2nd column shows the "User Name" for the process. How does one get the user name for the processes.
I'm enumerating the process's with Process32Next .... I just want to get the ones ran by the user, and not the SYSTEM, LOCAL SERVICE, and NETWORK SERVICE processes.
-
Dec 17th, 2002, 08:16 PM
#2
You need special access privileges for enumerating all processes. I actually don't quite know how to do it if you have these rights.
The task manager has these rights. Your app probably has not, unless executed by an admin.
Try EnumProcesses.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 17th, 2002, 08:55 PM
#3
Thread Starter
Hyperactive Member
The problem is, I am enumerating every running process. I want to only get the user ones... I don't want the SYSTEM, LOCAL SERVICE, or NETWORK SERVICE ones.
-
Dec 18th, 2002, 08:26 AM
#4
Ah, I thought you want all but don't get them.
As I said, I'm missing my reference and MSDN online is just too slow to work with so I can't look it up myself, but there should be some function in the Processes and Threads category that lets you find out the owner.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 19th, 2002, 08:19 PM
#5
Thread Starter
Hyperactive Member
I know of ones that let you get the parent process, and other info.. But not one that lets you get the 'owner'. I've looked and looked
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|