Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Get Parent Process

Get Parent Process

Scheduled Pinned Locked Moved C#
csharphelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashok_rgm
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • A ashok_rgm

      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

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #2

      you know i typed your subject in google and got lots of hits, people should try this first. Here is one http://msdn.microsoft.com/en-us/netframework/aa569609.aspx#Question3[^] Cant say if will work or not thou

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups