public SafeHandle CreateFileFromDevice(string pathName) { string result = GetResultOrThrow(m_CreateFileFromDevice, pathName); if (result == null) { return(null); } SafeTestHandle handle = new SafeTestHandle(new IntPtr(1)) { PathName = pathName }; return(handle); }
public DiskExtent[] GetDiskExtents(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_Extents, handle.PathName)); }
public PartitionInformation GetPartitionInfo(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_PartitionInfo, handle.PathName)); }
public bool IsReadOnly(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_ReadOnly, handle.PathName)); }
public BoolUnknown IncursSeekPenalty(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_SeekPenalty, handle.PathName)); }
public StorageAccessAlignment GetAlignment(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_Alignment, handle.PathName)); }
public DiskGeometry GetDiskGeometry(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_Geometry, handle.PathName)); }
public StorageDeviceNumber GetDeviceNumberEx(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_DeviceNumberEx, handle.PathName)); }
public bool GetMediaPresent(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_MediaPresent, handle.PathName)); }
public VolumeDeviceQuery GetStorageDeviceProperty(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_StorageProperties, handle.PathName)); }
public bool RefreshVolume(SafeHandle hDevice) { SafeTestHandle handle = CheckHandle(hDevice); return(GetResultOrThrow(m_DiskUpdateProperties, handle.PathName)); }