IOCTL_DISK_DELETE_DRIVE_LAYOUT control code

Removes partition information from the disk. If the partition style of the disk is Master Boot Record (MBR), sector 0 of the disk is wiped clean except for the bootstrap code. All signatures, such as the AA55 boot signature and the NTFT disk signature, will be removed. If the partition style of the disk is GUID Partition Table (GPT), the primary partition table header in sector 1 and the backup partition table in the last sector of the disk are wiped clean. This operation can be used to generate so-called "superfloppies" that contain a file system starting at the first sector of the disk rather than in a partition on the disk.

Input Parameters

None

Output Parameters

None

I/O Status Block

The Status field is set to STATUS_SUCCESS, or possibly to STATUS_INSUFFICIENT_RESOURCES.

Requirements

Header

Ntdddisk.h (include Ntdddisk.h)

 

 

Send comments about this topic to Microsoft

Show: