title: CreateFile() Failed With GetLastError() = 5
body: <p>I have written a sample application to read the file from the other file. When I run this application form virtual machine I am getting Access denied.  Below is the code.</p>
  
  <pre><code>int _tmain(int argc, _TCHAR* argv[])
  {
      WCHAR *wcsPath = L"\\\\150.160.130.22\\share\\123.XML";
  
      HANDLE hFile = CreateFileW(wcsPath,
                                 GENERIC_READ,
                                 FILE_SHARE_READ,
                                 NULL,
                                 OPEN_EXISTING,
                                 0,
                                 0);
  
      if (NULL == hFile)
      {
          printf("failed - %d", GetLastError());
      }
  
      return 0;
  }
  </code></pre>
  
  <p>Please let me know any changes.</p>