C++ did not open some existing file
<p>I tried to write some code in C++ that traverses all system files. The problem was that there are some files which returns an error (2) which mean no such file found. Although the path had been found, but cannot been opened or get the pointer on that file or folder!</p>

<pre><code>dirp-&gt;search_handle = FindFirstFileA (dirp-&gt;patt, &amp;dirp-&gt;find_data);
if (dirp-&gt;search_handle == INVALID_HANDLE_VALUE) 
{ 
    cout &lt;&lt; "Error(" &lt;&lt; errno &lt;&lt; ") opening " &lt;&lt; dir&lt;&lt;" erroeno:"&lt;&lt;strerror(errno)&lt;&lt; endl&lt;&lt;endl;
}
</code></pre>

<p>The problem is not caused by a lack of administrator permissions because I am an admin on my computer. So what might cause this problem?</p>
