Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Identifying which user is running a process?

Identifying which user is running a process?

Scheduled Pinned Locked Moved C#
tutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bbranded
    wrote on last edited by
    #1

    I can successfully build a list of processes and threads; but I'd like to be able to identify which user is running a process. Does anyone have any insight into how to do this? Thanks, Matt Brown

    A 1 Reply Last reply
    0
    • B bbranded

      I can successfully build a list of processes and threads; but I'd like to be able to identify which user is running a process. Does anyone have any insight into how to do this? Thanks, Matt Brown

      A Offline
      A Offline
      Anthony Mushrow
      wrote on last edited by
      #2

      This link seems promising: http://benreichelt.net/blog/2006/01/31/get-process-user-name/[^] There's even an article on it at here: http://www.codeproject.com/KB/cs/processownersid.aspx[^] Google has most of the insight, its always quicker to do a quick search than to post a topic.

      My current favourite word is: Delicious!

      -SK Genius

      Game Programming articles start -here[^]-

      B 1 Reply Last reply
      0
      • A Anthony Mushrow

        This link seems promising: http://benreichelt.net/blog/2006/01/31/get-process-user-name/[^] There's even an article on it at here: http://www.codeproject.com/KB/cs/processownersid.aspx[^] Google has most of the insight, its always quicker to do a quick search than to post a topic.

        My current favourite word is: Delicious!

        -SK Genius

        Game Programming articles start -here[^]-

        B Offline
        B Offline
        bbranded
        wrote on last edited by
        #3

        Thanks for the info. I had come across other example using win32_process, but I felt like it should be easier than this = there should be a method in a .NET class in system.diagnostic that I should be able to use to query for the username of a process. But, I guess, I could be wrong :laugh: Thanks! Matt Brown

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups