Ignore:
Timestamp:
6/19/2010 10:14:24 AM (2 years ago)
Author:
lowjoel
Message:
  • Don't define a shortcut function for DeviceIoControl? since that's a rather low-level API and we don't want to confuse things further.
  • Properly implement the querying of the Physical drive a volume belongs to using the IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS Control Code
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser.Util/PhysicalDriveInfo.cs

    r2196 r2206  
    138138                    uint returned = 0; 
    139139                    if (NativeMethods.DeviceIoControl(handle, NativeMethods.IOCTL_DISK_GET_LENGTH_INFO, 
    140                         IntPtr.Zero, 0, out result, out returned, IntPtr.Zero)) 
     140                        IntPtr.Zero, 0, out result, sizeof(long), out returned, IntPtr.Zero)) 
    141141                    { 
    142142                        return result; 
Note: See TracChangeset for help on using the changeset viewer.