Ignore:
Timestamp:
6/19/2010 1:29:09 AM (2 years ago)
Author:
lowjoel
Message:

Define the IOCTL_DISK_DELETE_DRIVE_LAYOUT which erases the MBR of the physical drive, allowing us to delete all partitions on the physical drive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/NativeMethods/Kernel.cs

    r2187 r2196  
    646646        public const uint FSCTL_LOCK_VOLUME = 0x90018; 
    647647        public const uint FSCTL_UNLOCK_VOLUME = 0x9001C; 
     648        public const uint IOCTL_DISK_DELETE_DRIVE_LAYOUT = 
     649            (0x00000007 << 16) | ((0x01 | 0x02) << 14) | (0x0040 << 2); 
    648650 
    649651        [DllImport("Kernel32.dll", SetLastError = true)] 
Note: See TracChangeset for help on using the changeset viewer.