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. Physical path of running process?

Physical path of running process?

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • M Offline
    M Offline
    manojk_batra
    wrote on last edited by
    #1

    Dear All, Programmatically I want to find the actual physical path of running process. :cool: With Regards Manoj Kumar Batra

    A G 2 Replies Last reply
    0
    • M manojk_batra

      Dear All, Programmatically I want to find the actual physical path of running process. :cool: With Regards Manoj Kumar Batra

      A Offline
      A Offline
      Alex Orovetskiy
      wrote on last edited by
      #2

      Really easy. CreateToolhelp32Snapshot is your friend. Pass TH32CS_SNAPPROCESS, and use szExeFile of PROCESSENTRY32 structure.

      M 1 Reply Last reply
      0
      • M manojk_batra

        Dear All, Programmatically I want to find the actual physical path of running process. :cool: With Regards Manoj Kumar Batra

        G Offline
        G Offline
        gamitech
        wrote on last edited by
        #3

        or use EnumProcesses(); OpenProcess(); EnumProcessModules() GetModuleFileName() gabby

        1 Reply Last reply
        0
        • A Alex Orovetskiy

          Really easy. CreateToolhelp32Snapshot is your friend. Pass TH32CS_SNAPPROCESS, and use szExeFile of PROCESSENTRY32 structure.

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

          Thanks you a lot for the Help. can I find the running process is COM, DCOM? through CreateToolhelp32Snapshot?:) With Regards Manoj Kumar Batra

          T 1 Reply Last reply
          0
          • M manojk_batra

            Thanks you a lot for the Help. can I find the running process is COM, DCOM? through CreateToolhelp32Snapshot?:) With Regards Manoj Kumar Batra

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            manojk_batra wrote:

            can I find the running process is COM, DCOM? through CreateToolhelp32Snapshot?

            AFAIK, Nope that Not Possible...

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV

            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