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 / C++ / MFC
  4. How to get current running applications...

How to get current running applications...

Scheduled Pinned Locked Moved C / C++ / MFC
helpjsontutorial
5 Posts 4 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.
  • V Offline
    V Offline
    vikasvds
    wrote on last edited by
    #1

    Hello, I have been trying to get currently running user application same as task manager in which first tab "Application" shows all currently running user applications. I have used EnumWindows() API to find current open windows so i thought i could be able to find all the application running. But problem with EnumWindows() is it gets all windows such as task bar, any services running as well as user application windows such as my computer or outlook. Finally problem is i want to find all windows explorer windows opened by user. EnumWindows() can get exe path of the window as well as title of the window. But for any explorer window exe name is always C:\Windows\explorer.exe and it is same for any explorer window whether it is opened by user or by operating system as a service. So how to find whether the window that is opened is a explorer window that is opened by user. How to differentiate between explorer windows opened by user or windows service windows whereas the exe path is same C:\Windows\explorer.exe. I need urgent help in problem. :doh: If any body have any clue please share. Any body has clu

    vicky

    _ M J 3 Replies Last reply
    0
    • V vikasvds

      Hello, I have been trying to get currently running user application same as task manager in which first tab "Application" shows all currently running user applications. I have used EnumWindows() API to find current open windows so i thought i could be able to find all the application running. But problem with EnumWindows() is it gets all windows such as task bar, any services running as well as user application windows such as my computer or outlook. Finally problem is i want to find all windows explorer windows opened by user. EnumWindows() can get exe path of the window as well as title of the window. But for any explorer window exe name is always C:\Windows\explorer.exe and it is same for any explorer window whether it is opened by user or by operating system as a service. So how to find whether the window that is opened is a explorer window that is opened by user. How to differentiate between explorer windows opened by user or windows service windows whereas the exe path is same C:\Windows\explorer.exe. I need urgent help in problem. :doh: If any body have any clue please share. Any body has clu

      vicky

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      You can use IsWindow and IsWindowVisible to check if it is a visible window. To get the title bar text call GetWindowText on the window handle.

      «_Superman_»

      1 Reply Last reply
      0
      • V vikasvds

        Hello, I have been trying to get currently running user application same as task manager in which first tab "Application" shows all currently running user applications. I have used EnumWindows() API to find current open windows so i thought i could be able to find all the application running. But problem with EnumWindows() is it gets all windows such as task bar, any services running as well as user application windows such as my computer or outlook. Finally problem is i want to find all windows explorer windows opened by user. EnumWindows() can get exe path of the window as well as title of the window. But for any explorer window exe name is always C:\Windows\explorer.exe and it is same for any explorer window whether it is opened by user or by operating system as a service. So how to find whether the window that is opened is a explorer window that is opened by user. How to differentiate between explorer windows opened by user or windows service windows whereas the exe path is same C:\Windows\explorer.exe. I need urgent help in problem. :doh: If any body have any clue please share. Any body has clu

        vicky

        M Offline
        M Offline
        Madhu Nair 0
        wrote on last edited by
        #3

        Sure, use these APIs; You will get the user name for each process (EXPLORER) OpenProcessToken GetTokenInformation LookupAccountSid

        1 Reply Last reply
        0
        • V vikasvds

          Hello, I have been trying to get currently running user application same as task manager in which first tab "Application" shows all currently running user applications. I have used EnumWindows() API to find current open windows so i thought i could be able to find all the application running. But problem with EnumWindows() is it gets all windows such as task bar, any services running as well as user application windows such as my computer or outlook. Finally problem is i want to find all windows explorer windows opened by user. EnumWindows() can get exe path of the window as well as title of the window. But for any explorer window exe name is always C:\Windows\explorer.exe and it is same for any explorer window whether it is opened by user or by operating system as a service. So how to find whether the window that is opened is a explorer window that is opened by user. How to differentiate between explorer windows opened by user or windows service windows whereas the exe path is same C:\Windows\explorer.exe. I need urgent help in problem. :doh: If any body have any clue please share. Any body has clu

          vicky

          J Offline
          J Offline
          JyotiranjanR
          wrote on last edited by
          #4

          There is an API called "GetInstalledPath".Search on net and use it.Its working fine for my application.It will get the installed path.

          V 1 Reply Last reply
          0
          • J JyotiranjanR

            There is an API called "GetInstalledPath".Search on net and use it.Its working fine for my application.It will get the installed path.

            V Offline
            V Offline
            vikasvds
            wrote on last edited by
            #5

            Thanks It worked!! :-D

            vicky

            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