title: What information is available to an application about its launch? Can it detect that it was launched from Java?
body: <p>When an application is launched in Windows what kind of information does it have available about it's launch? (working directory? parent process? Shortcut? icon click?)</p>
  
  <p>If I launch an application from java using:</p>
  
  <pre><code>Runtime.getRuntime().exec("app.exe");
  </code></pre>
  
  <p>Can the application determine that it was launched from a java process? </p>
  
  <p>Is there a way to make it look like a user had pressed a shortcut icon in the start menu to launch the app? (is this info even available to the application?)</p>
  
  <p>I'm talking about the standard .exe executable applications in Windows.</p>