title: Could not find system file when it actually exists
body: <p>System can't find <code>alg.exe</code> but it does exist - "<code>c:\windows\system32\alg.exe</code>".</p>
  
  <p>I've moved from Win 7 x86 to x64 recently and when I was on x86 I had no problem with this, tried Delphi 7 &amp; XE2.</p>
  
  <p>Code I'm using:</p>
  
  <pre><code>if FileExists('c:\windows\system32\alg.exe') then
    ShowMessage('fe') else ShowMessage('fne');
  </code></pre>
  
  <p>Tried to take ownership of a file + my app with admin privilegies - same issue.</p>
  
  <p>Guys, to check if x64..</p>
  
  <pre><code>function IsWow64Process(Handle:THandle; var IsWow64 : BOOL) : BOOL; stdcall; external 'kernel32.dll';
  
  function IS64 : Boolean;
  var
   xIS64 : Bool;
  begin
   if IsWow64Process(GetCurrentProcess, xIS64) then
    Result := xIS64 else RaiseLastOSError;
  end;
  </code></pre>