How process hierarchy is maintained in Windows?
<p>There are multiple ways of launching an exe from a process. </p>

<pre><code>CreateProcess
ShellExecute
Process.Start("notepad.exe");
</code></pre>

<p>if you see in ProcessExplorer hierarchy is perfectly maintained. </p>

<p><a href="https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx" rel="nofollow">https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx</a></p>

<p>How does this parent-child relationship(among process) in Windows is handled ? 
Is there any way to set an exe to a different exe as a parent ?</p>