title: Determine when running in a virtual machine
body: <p>Is there an <em>official</em> way for an application to determine if it is running in VMWare or Virtual PC (or whatever Microsoft is calling it now)?  The code I have seen is usually a hack that took advantage of some odd behavioral side effect in a specific version of VMWare or Virtual PC.  </p>
  
  <p>Ideally Delphi code, but if you can link to an official explanation then I am sure I can convert it.</p>