title: Error opening Chrome from Delphi app
body: <p>I have a web app. I launch it from a windows app created using Delphi.
  Inside my code I launch chrome using </p>
  
  <pre><code>ShellExecEx(ChromePath, AppStartCmd, '', SW_SHOWMAXIMIZED)
  </code></pre>
  
  <p>(<a href="https://github.com/project-jedi/jcl/blob/master/jcl/source/windows/JclShell.pas" rel="nofollow noreferrer">https://github.com/project-jedi/jcl/blob/master/jcl/source/windows/JclShell.pas</a>) </p>
  
  <p>If the first Chrome process is the first process that I launch on my pc, if I want open another Chrome windows (for example the user start pc, launch the app and then he wants search something on google..) I have this message</p>
  
  <p><a href="https://i.stack.imgur.com/2aGKF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2aGKF.png" alt="enter image description here"></a></p>
  
  <p>Otherwise, if I first open a Chrome page and then I want launch webapp it works fine.</p>
  
  <p>For a my test I made a desktop shortcut of chrome when I launch the app with same parameters </p>
  
  <pre><code>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=http://myapppath
  </code></pre>
  
  <p>In this mode chrome works fine.</p>
  
  <p>Using ProcessExplorer I have seen that launching webapp by desktop shotcut I have a recognizable process
  <a href="https://i.stack.imgur.com/XuYgp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XuYgp.png" alt="enter image description here"></a></p>
  
  <p>launching the app by ShellExecEx the process is anonymous...
  <a href="https://i.stack.imgur.com/WuMzL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WuMzL.png" alt="enter image description here"></a></p>