title: Why does CreateFile return invalid handle?
body: <p>I have <code>CreateFile()</code> to create a hidden file type but the problem that it keeps returning invalid handle.  </p>
  
  <pre><code>file = CreateFileW(_T("hey.txt"),
                     GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
                     0, 0);
  error = GetLastError();
  WriteFile(file, buff, sizeof(buff),
            &amp;dwRet, NULL);
  </code></pre>
  
  <p>Any idea?</p>