DISK_IOCTL_FORMAT_MEDIA

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.

Parameters

hDevice
Block device handle.
dwIoControlCode
DISK_IOCTL_FORMAT_MEDIA.
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

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.