Changeset 1841 for trunk/eraser6
- Timestamp:
- 2/12/2010 12:56:35 PM (3 years ago)
- Location:
- trunk/eraser6/Eraser.Util
- Files:
-
- 3 edited
-
NativeMethods/Kernel.cs (modified) (1 diff)
-
NtfsApi.cs (modified) (1 diff)
-
VolumeInfo.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.Util/NativeMethods/Kernel.cs
r1802 r1841 298 298 uint dwFlagsAndAttributes, IntPtr hTemplateFile); 299 299 300 public const uint FILE_READ_ATTRIBUTES = 0x0080; 300 301 public const uint GENERIC_READ = 0x80000000; 301 302 public const uint GENERIC_WRITE = 0x40000000; -
trunk/eraser6/Eraser.Util/NtfsApi.cs
r1802 r1841 61 61 using (SafeFileHandle volumeHandle = NativeMethods.CreateFile( 62 62 volume.VolumeId.Remove(volume.VolumeId.Length - 1), 63 NativeMethods. GENERIC_READ, NativeMethods.FILE_SHARE_READ |63 NativeMethods.FILE_READ_ATTRIBUTES, NativeMethods.FILE_SHARE_READ | 64 64 NativeMethods.FILE_SHARE_WRITE, IntPtr.Zero, NativeMethods.OPEN_EXISTING, 65 65 0, IntPtr.Zero)) -
trunk/eraser6/Eraser.Util/VolumeInfo.cs
r1838 r1841 679 679 get 680 680 { 681 using (SafeFileHandle handle = OpenHandle( 0x80u, FileShare.ReadWrite,682 File Options.None))681 using (SafeFileHandle handle = OpenHandle(NativeMethods.FILE_READ_ATTRIBUTES, 682 FileShare.ReadWrite, FileOptions.None)) 683 683 { 684 684 //This only works if the user has turned on the disk performance
Note: See TracChangeset
for help on using the changeset viewer.
