Get Parent Process
-
Hi, I want to know which process had called my application built using C# .NET. Example: Their is an application named "Example1.exe" build using C# .NET. When you open the file manully by double clicking or by any other way then, "Explorer.exe" is the parent process of my application. In this case I want to find that "Explorer.exe" is my parent process. Please help me with the code which has to be placed inside the Main() method of my application (Example1.exe) to find this. Normaly when it is double clicked this is not important but in case if my application is called by any other application then i had to work accordingly.
ashok
-
Hi, I want to know which process had called my application built using C# .NET. Example: Their is an application named "Example1.exe" build using C# .NET. When you open the file manully by double clicking or by any other way then, "Explorer.exe" is the parent process of my application. In this case I want to find that "Explorer.exe" is my parent process. Please help me with the code which has to be placed inside the Main() method of my application (Example1.exe) to find this. Normaly when it is double clicked this is not important but in case if my application is called by any other application then i had to work accordingly.
ashok