title: Getting time of last focus on a process from the ROT
body: <p>Not sure if this is possible so just wanted to double check here. I am getting the ROT like this.</p>
  <pre><code>[DllImport(&quot;ole32.dll&quot;)]
      public static extern int GetRunningObjectTable(int reserved,
                             out IRunningObjectTable prot);
  </code></pre>
  <p>From this information I want to fetch when the process was last in focus if possible. I then tried
  <code>System.Runtime.InteropServices.ComTypes.FILETIME ft; monikers[0].GetTimeOfLastChange(ctx, null, out ft);</code></p>
  <p>which is just when the file was last changed on disc. I then looked at GetProcessTimes function which does not seem to give me what I want.</p>
  <p>The reason I want this is that I have a software where I want to open up the last used Visual Studio Application or any other application, it might be that I am missing something here the ROT does not to me seem sorted so I need a way of sorting the same applications if possible.</p>
  <p>Any suggestions on what I might use would be of great help.</p>
  <p>Thanks.</p>