Ignore:
Timestamp:
3/1/2010 2:57:41 AM (2 years ago)
Author:
lowjoel
Message:

For NTFS MFT Record lengths we need volume (data) read access so instead catch unauthorized access exceptions (i.e. when running under a split user token in 7) and return using the heuristic of one of volume cluster size and 1024 bytes, whichever is smaller

File:
1 edited

Legend:

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

    r1841 r1859  
    383383        } 
    384384 
    385         [DllImport("Kernel32.dll", CharSet = CharSet.Unicode)] 
     385        [DllImport("Kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 
    386386        [return: MarshalAs(UnmanagedType.Bool)] 
    387387        public static extern bool DeviceIoControl(SafeFileHandle hDevice, 
Note: See TracChangeset for help on using the changeset viewer.