title: Getting syswow64 directory using 32-bit application
body: <p>I'm trying to find a file inside the system directory.
  The problem is that when using</p>
  
  <pre><code>Environment.SystemDirectory
  </code></pre>
  
  <p>On a x64 machine, i'm still getting the System32 directory, instead of the Systemwow64 directory.</p>
  
  <p>I need to get the "System32" directory on x86 machines, and "SystemWow64" directory on x64</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT:</strong>
  To find the SysWow64 i'm using the "GetSystemWow64Directory". (more information here: <a href="http://www.pinvoke.net/default.aspx/kernel32.getsystemwow64directory" rel="noreferrer">pinvoke</a>
  Notice that on non-x64 machines - result is '0'.
  Hope this helps someone</p>