Article ID: 219327 - View products that this article applies to.
This article was previously published under Q219327
When you use functions to open files, you may encounter the following situation:
When you use NTCreatFile() with the file open by file ID attribute specified on a 64-bit NTFS file, the ID opens the file but, when you attempt to delete the file from a command prompt while the file is open, the following error message occurs:
The same file, when started normally, will delete fine.
Corrupt and unreadable file. Please use chkdsk.
To resolve this problem, obtain the latest service pack for Windows NT 4.0 or the individual software update. For information on obtaining the latest service pack, please go to:
NOTE: New functionality was added for NtQueryInformationFile(..., FileNameInformation) to obtain the pathname of the file associated to the handle.
Microsoft has confirmed that this is a problem in Windows NT 4.0. This problem was first corrected in Windows NT version 4.0 Service Pack 5.