IOCTL_DISK_FORMAT_TRACKS control code

Formats the specified set of contiguous tracks on the disk.

Input Parameters

The buffer at Irp->AssociatedIrp.SystemBuffer contains the FORMAT_PARAMETERS data. Parameters.DeviceIoControl.InputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer.

Output Parameters

The device driver returns an array of BAD_TRACK_NUMBER values to the buffer at Irp->AssociatedIrp.SystemBuffer.

I/O Status Block

The Information field is set to the size of the returned bad-track array when the Status field is set to STATUS_SUCCESS. Otherwise, the Information field is zero and the Status field possibly can be set to STATUS_INVALID_PARAMETER or STATUS_MEDIA_WRITE_PROTECTED if the media is removable.

Requirements

Header

Ntdddisk.h (include Ntdddisk.h)

See also

FORMAT_PARAMETERS

 

 

Send comments about this topic to Microsoft

Show: