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
  1. Home
  2. General Programming
  3. C#
  4. Get Process UserName

Get Process UserName

Scheduled Pinned Locked Moved C#
question
4 Posts 3 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.
  • P Offline
    P Offline
    Patricio Tapia
    wrote on last edited by
    #1

    How i can get an UserName from a Process? (like TaskBar)

    S M 2 Replies Last reply
    0
    • P Patricio Tapia

      How i can get an UserName from a Process? (like TaskBar)

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      u can use System.Diagnostics.Process namespace eg: to get the current process System.Diagnostics.Process p= System.Diagnostics.Process.GetCurrentProcess(); now p.ProcessName will give the name of the process...

      Koushik

      P 1 Reply Last reply
      0
      • S Spunky Coder

        u can use System.Diagnostics.Process namespace eg: to get the current process System.Diagnostics.Process p= System.Diagnostics.Process.GetCurrentProcess(); now p.ProcessName will give the name of the process...

        Koushik

        P Offline
        P Offline
        Patricio Tapia
        wrote on last edited by
        #3

        i know that but... how do you get the UserName?? http://xs220.xs.to/xs220/07415/ersdf1.JPG

        1 Reply Last reply
        0
        • P Patricio Tapia

          How i can get an UserName from a Process? (like TaskBar)

          M Offline
          M Offline
          martin_hughes
          wrote on last edited by
          #4

          This might help: http://www.codeproject.com/useritems/processownersid.asp[^]

          Me: Can you see the "up" arrow? User:Errr...ummm....no. Me: Can you see an arrow that points upwards? User: Oh yes, I see it now! -Excerpt from a support call taken by me, 08/31/2007

          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