Skip to content

Latest commit

 

History

History
94 lines (75 loc) · 2.95 KB

ni-winioctl-ioctl_disk_delete_drive_layout.md

File metadata and controls

94 lines (75 loc) · 2.95 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist f1_keywords dev_langs topic_type api_type api_location api_name
NI:winioctl.IOCTL_DISK_DELETE_DRIVE_LAYOUT
IOCTL_DISK_DELETE_DRIVE_LAYOUT
Removes the boot signature from the master boot record, so that the disk will be formatted from sector zero to the end of the disk.
IOCTL_DISK_DELETE_DRIVE_LAYOUT
IOCTL_DISK_DELETE_DRIVE_LAYOUT control
IOCTL_DISK_DELETE_DRIVE_LAYOUT control code [Files]
base.ioctl_disk_delete_drive_layout
fs.ioctl_disk_delete_drive_layout
winioctl/IOCTL_DISK_DELETE_DRIVE_LAYOUT
fs\ioctl_disk_delete_drive_layout.htm
fs
b790e1f8-9371-4ff9-a820-3ea1af29cc6b
12/05/2018
IOCTL_DISK_DELETE_DRIVE_LAYOUT, IOCTL_DISK_DELETE_DRIVE_LAYOUT control, IOCTL_DISK_DELETE_DRIVE_LAYOUT control code [Files], base.ioctl_disk_delete_drive_layout, fs.ioctl_disk_delete_drive_layout, winioctl/IOCTL_DISK_DELETE_DRIVE_LAYOUT
winioctl.h
Windows.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
IOCTL_DISK_DELETE_DRIVE_LAYOUT
winioctl/IOCTL_DISK_DELETE_DRIVE_LAYOUT
c++
APIRef
kbSyntax
HeaderDef
WinIoCtl.h
IOCTL_DISK_DELETE_DRIVE_LAYOUT

IOCTL_DISK_DELETE_DRIVE_LAYOUT IOCTL

-description

Removes the boot signature from the master boot record, so that the disk will be formatted from sector zero to the end of the disk. Partition information is no longer stored in sector zero.

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL DeviceIoControl(
  (HANDLE) hDevice,                 // handle to device
  IOCTL_DISK_DELETE_DRIVE_LAYOUT,   // dwIoControlCode
  NULL,                             // lpInBuffer
  0,                                // nInBufferSize
  NULL,                             // lpOutBuffer
  0,                                // nOutBufferSize
  (LPDWORD) lpBytesReturned,        // number of bytes returned
  (LPOVERLAPPED) lpOverlapped       // OVERLAPPED structure
);

-ioctlparameters

-input-buffer

-input-buffer-length

-output-buffer

-output-buffer-length

-in-out-buffer

-inout-buffer-length

-status-block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.

Otherwise, Status to the appropriate error condition as a NTSTATUS code.

For more information, see NTSTATUS Values.

-see-also