How to get name of application that launched current process

  • Thread starter Thread starter chief tent
  • Start date Start date
C

chief tent

Basic question: Two C# programs A and B. Program A is launched by the
user, then program A launches program B. From program B, I want to get
the filename and path of program A (the process that launched B). I've
spent a while searching around for this and can't seem to find
anything. Is is even possible to do this?

A few more details - From program A I'm launching B using
System.Diagnostics.Process.Start()

Both developed in VS2001, .net framework 1.0

Thanks in advance for any help.
 
Back
Top