DISK_IOCTL_SETINFO

Block device drivers respond to this I/O control code to service FAT file system requests to set disk information.

Parameters

hDevice
Block device handle.
dwIoControlCode
DISK_IOCTL_SETINFO.
lpInBuffer
Address of a DISK_INFO structure.
nInBufferSize
Size of the DISK_INFO structure.
lpOutBuffer
Not used.
nOutBufferSize
Not used.
lpBytesReturned
Address of a DWORD to receive total bytes returned.
lpOverlapped
Not used.

Remarks

In addition, the DISK_INFO structure is filled in by the FAT file system in the same way that it expects the block driver to fill the structure for the DISK_IOCTL_GETINFO control code. The purpose of the DISK_IOCTL_SETINFO code is to inform the block driver of discrepancies in the disk information that was provided to the FAT file system, according to information found on the device media itself, such as in the master boot record of a FAT volume. It may not always be possible for a driver to accurately determine the sector size or total number of sectors on a volume, in which case it is up to the file system driver to identify and attempt to correct the discrepancy.