The FAT file system issues the DISK_IOCTL_FORMAT_MEDIA control code when a device drivers reports that the disk needs a low-level format. Block device drivers indicate this by setting the di_flags parameter of the DISK_INFO structure to the value DISK_INFO_FLAG_UNFORMATTED. The FAT file system will then query the end-user to determine whether or not the device should be formatted before issuing the DISK_IOCTL_FORMAT_MEDIA control code.
Note that Windows CE version 2.0 and earlier did not issue this request when the driver reported the need to perform a low-level format.