parent process ID

Discussion in 'C++' started by Peter Posselt Vestergaard, Jul 5, 2004.

  1. Hi
    I am trying to find the process ID and path of the 'grand-parent' of my
    application (that is: the application that launched the application that
    launched my program) on Windows. I have found the
    CreateToolhelp32Snapshot/Process32First way of doing it but am having some
    trouble with it and furthermore I want it to work on both Windows NT/2k/XP
    and this solution is not supported on WinNT.
    So do anyone know of other ways to look up process ID and path of parent
    applications based on e.g. the PID of the current application?
    Thanks!
    Best regards
    Peter Vestergaard
     
    Peter Posselt Vestergaard, Jul 5, 2004
    #1
    1. Advertising

  2. "Peter Posselt Vestergaard" <> skrev i en meddelelse
    news:ccbpsk$2c4l$...
    > Hi
    > I am trying to find the process ID and path of the 'grand-parent' of my
    > application (that is: the application that launched the application that
    > launched my program) on Windows. I have found the
    > CreateToolhelp32Snapshot/Process32First way of doing it but am having some
    > trouble with it and furthermore I want it to work on both Windows NT/2k/XP
    > and this solution is not supported on WinNT.
    > So do anyone know of other ways to look up process ID and path of parent
    > applications based on e.g. the PID of the current application?
    > Thanks!
    > Best regards
    > Peter Vestergaard
    >
    >

    You have no question about C++ - so you're in the wrong newsgroup here.

    Check some microsoft newsgroup instead. (microsoft.public.*)


    Kind regard
    Peter Koch larsen
     
    Peter Koch Larsen, Jul 5, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roy
    Replies:
    2
    Views:
    3,145
  2. mark
    Replies:
    1
    Views:
    579
  3. Replies:
    4
    Views:
    423
  4. Gauri
    Replies:
    3
    Views:
    187
  5. Gauri
    Replies:
    4
    Views:
    199
    -berlin.de
    Feb 28, 2007
Loading...

Share This Page