Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Finding the Process ID of an Active App

Options
  • 24-11-2019 8:08pm
    #1
    Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,240 Mod ✭✭✭✭


    I tried to create this topic earlier, but I had an issue starting the thread. I've been trying to create a small app to return the Process ID and Name of an application that is currently in use by a user. The language I'm using is C#.

    For example, right now I'm using Opera to browse boards. The app should return the Process ID and Name of Opera, printing it to the console.

    I've been using the following: https://social.msdn.microsoft.com/Forums/vstudio/en-US/3f41c91e-b0f6-4a21-b421-961a9f2dca5e/getting-process-id-of-a-my-running-process?forum=csharpgeneral

    The problem I'm having is, it only returns the PID and name of the app used to get the PID and name of the active application.

    I'll try and share the code soon.


Comments

Advertisement