Get custom status of process
<p>I want to allow multiple processes of my application on one machine. 
Projects (come from local database) can be loaded in each process and I want to ensure that a Project can only be open in one process of my application.</p>

<p>Therefore before opening a Project I want to check if the Project I want to open is already open in another process.</p>

<p>I know that this isn't best programming practice, but I it's just a temporary solution until we implement a more sophisticated locking mechanism on data Level.</p>

<p>I can detect another running process, but can I somehow access or cast it to something more appropriate to get the Information I want ?</p>

<p>Someting like that:</p>

<pre><code>  Process[] allProcesses = Process.GetProcessesByName("MyApp");

  foreach (Process process in allProcesses)
  {
    var projects = process.OpenedProjects;
</code></pre>

<p>Have come across .net remoting, WCF, IPC but found that to be very heavyweight for this rather "simple" Task.</p>
