CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Getting the path of a running process.

  1. #1
    Join Date
    Nov 2008
    Location
    Maryland, USA
    Posts
    22

    Getting the path of a running process.

    Resolved.
    Last edited by Circadian; December 9th, 2008 at 12:51 AM.

  2. #2
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656

    Re: Getting the path of a running process.

    Quote Originally Posted by Circadian View Post
    Any ideas are greatly appreciated.
    I would try GetModuleFileNameEx()
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  3. #3
    Join Date
    Dec 2003
    Location
    Syracuse, NY
    Posts
    400

    Re: Getting the path of a running process.

    Are you including Psapi.h and linking to Psapi.lib?

    Vlad's suggestion is probably easier though.
    "Windows programming is like going to the dentist: You know it's good for you, but no one likes doing it."
    - Andre LaMothe

    DLL For Beginners(UPDATED)
    Please use CODE tags
    Rate me if I've helped.

  4. #4
    Join Date
    Nov 2008
    Location
    Maryland, USA
    Posts
    22

    Re: Getting the path of a running process.

    Haha, well, I got it all figured out myself. Thanks for your attempts to help!
    Please close.
    Last edited by Circadian; December 8th, 2008 at 11:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)