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. process exe full path

process exe full path

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 2 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.
  • C Offline
    C Offline
    cubiq
    wrote on last edited by
    #1

    I have to do this for Windows 95/98/Me/200/NT/XP: I have the ID of a process(obtained with Process32First/Next) and I want to get the full path of the executable hwo started that process. In PROCESSENTRY32 the member szExeFile gives me only the name of the file but not the full path... Thank you! Best regards, radu.

    V 1 Reply Last reply
    0
    • C cubiq

      I have to do this for Windows 95/98/Me/200/NT/XP: I have the ID of a process(obtained with Process32First/Next) and I want to get the full path of the executable hwo started that process. In PROCESSENTRY32 the member szExeFile gives me only the name of the file but not the full path... Thank you! Best regards, radu.

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      One solution is EnumProcessModules(). OpenProcess() EnumProcessModules() GetModuleFileNameEx() Kuphryn

      C 1 Reply Last reply
      0
      • V valikac

        One solution is EnumProcessModules(). OpenProcess() EnumProcessModules() GetModuleFileNameEx() Kuphryn

        C Offline
        C Offline
        cubiq
        wrote on last edited by
        #3

        That's what MSDN says: Windows NT/2000/XP: Included in Windows NT 4.0 and later. Windows 95/98/Me: Unsupported. So it's not a solution for 95/98/Me...

        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