Results 1 to 5 of 5

Thread: Retreiving running processes list...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    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.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    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
  •  



Click Here to Expand Forum to Full Width