trying to get the path of a process

This is a discussion on trying to get the path of a process within the Windows Programming forums, part of the Platform Specific Boards category; PROCESSENTRY32 and MODULEENTRY32 dont have members that will show the exe path to which dir is executed from , so ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    319

    trying to get the path of a process

    PROCESSENTRY32
    and
    MODULEENTRY32
    dont have members that will show the exe path to which dir is executed from ,
    so ive tried something like
    GetFullPathName(p.szExeFile ,MAX_PATH, szOut, &lpPart);
    but this just says the file is on the desktop to any file
    does anyone know

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    GetModuleFileName()

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. init adopts zombie process?
    By password636 in forum Linux Programming
    Replies: 4
    Last Post: 07-01-2009, 11:05 AM
  2. create a child process that creates a child process
    By cus in forum Linux Programming
    Replies: 9
    Last Post: 01-13-2009, 02:14 PM
  3. Replies: 3
    Last Post: 10-15-2008, 10:24 AM
  4. Problem with forking a process
    By Unitedroad in forum C Programming
    Replies: 10
    Last Post: 10-04-2007, 02:43 AM
  5. process programming
    By St0rM-MaN in forum Linux Programming
    Replies: 2
    Last Post: 09-15-2007, 08:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21