The information in this article applies to:
SYMPTOMS
Windows NT allows access to partitions by opening a volume using the
"\\.\x:" nomenclature. When an application reads beyond the end of a volume
formatted with the FAT file system, Windows NT causes the read operation to
fail and GetLastError to return ERROR_INVALID_PARAMETER. This behavior is
incorrect.
RESOLUTIONTo work around the behavior of ReadFile on volumes formatted with the FAT file system, do not perform read operations that extend beyond the length of the volume. The length of the volume is determined by examining the results of the DeviceIoControl function when called with the IOCTL_DISK_GET_PARTITION_INFO control code. The PartitionLength member of the PARTITION_INFORMATION structure filled out by the IOCTL contains a pair of DWORDS that indicate the size of the volume in bytes. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Windows NT, version 4.0. Additional query words:
Keywords : kbAPI kbFileIO kbKernBase kbDSupport kbGrpKernBase |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |