Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Finding the Process ID of an Active App

  • 24-11-2019 07: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