title: CreateFile failing with errorcode 2, while file exists
body: <p>I try to open existing file via CreateFile, but it is always failing with <code>errorcode 2</code> - like file doesn't exist, but it exists - it's in folder with executable.</p>
  
  <pre><code>hFile = CreateFile( argv[ 1 ], GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL );
  if ( hFile == INVALID_HANDLE_VALUE )
  {
      printf( "\nError: Unable to open file (%d)\n", GetLastError( ) );
      return -1;
  }
  </code></pre>
  
  <p>it fails even if I replace <code>argv[1]</code> with hardcoded filename string.
  app is running as an admin.</p>