Microsoft KB Archive/289173

= NetFileGetInfo Returns &quot;Error File Not Found&quot; When Expected to Return &quot;Error Invalid Level&quot; =

Article ID: 289173

Article Last Modified on 1/31/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1

-



This article was previously published under Q289173



SYMPTOMS
When the NetFileGetInfo function for Windows 2000 calls the API with an invalid level number (a level number other than 2 or 3), the function returns ERROR_FILE_NOT_FOUND instead of ERROR_INVALID_LEVEL.



CAUSE
This behavior occurs because the NetFileGetInfo function incorrectly returns ERROR_FILE_NOT_FOUND when the number of files read is zero.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Windows 2000 Service Pack 2.



MORE INFORMATION
The NetFileGetInfo function retrieves information about a particular opening of a server resource.

Keywords: kbbug kbfix kbprogramming KB289173

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.