NetFileGetInfo() Returns "Error File Not Found" When Expected to Return "Error Invalid Level"

This article was previously published under Q289173
This article has been archived. It is offered "as is" and will no longer be updated.
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.
This behavior occurs because the NetFileGetInfo function incorrectly returns ERROR_FILE_NOT_FOUND when the number of files read is zero.
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 theMicrosoft Knowledge Base:
260910 How to Obtain the Latest Windows 2000 Service Pack
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.
The NetFileGetInfo function retrieves information about a particular opening of a server resource.

Article ID: 289173 - Last Review: 10/23/2013 16:26:33 - Revision: 3.2

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

  • kbnosurvey kbarchive kbbug kbfix kbprogramming KB289173