Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Finding the Process ID of an Active App

  • 24-11-2019 08:08PM
    #1
    Moderators, Computer Games Moderators, Technology & Internet Moderators Posts: 19,242 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