title: How to get 64-bit "program files" directory in 32-bit Application
body: <p>I have an application compiled in x86 mode (in c#) from which I need to access a certain file that exists in the 64-bit program files folder (of a 64-bit Windows of course).
  I don't want to just hardcode <code>C:\Program Files</code> as a string in my application because a few target computers may have Windows installed in a different drive, or may be in another languages.</p>
  
  <p>The problem I'm encountering is that using <code>Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)</code> returns the x86 flavor instead of the desired directory, unless I compile my program in 64-bit mode. Out of curiosity, what can I do to avoid doing such?</p>