04-08-2016, 10:23 AM
(This post was last modified: 04-08-2016, 12:36 PM by Deak Phreak.)
When I run it under debug it says this
\\.\PhysicalDrive0 - ID: WDC WD5
\\.\PhysicalDrive1
\\.\PhysicalDrive1 ERROR: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Helper.IO.Win32FileStream.UnsafeNativeMethods.CreateFile(String fileName, Int32 access, FileShare shareMode, FileMode mode, FileOptions options)
at Helper.IO.Win32FileStream..ctor(String path, FileAccess access, FileShare share, FileMode mode, FileOptions options)
at LFConnect.dftp.findDevice()
\\.\PhysicalDrive2
\\.\PhysicalDrive2 ERROR: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Helper.IO.Win32FileStream.UnsafeNativeMethods.CreateFile(String fileName, Int32 access, FileShare shareMode, FileMode mode, FileOptions options)
at Helper.IO.Win32FileStream..ctor(String path, FileAccess access, FileShare share, FileMode mode, FileOptions options)
at LFConnect.dftp.findDevice()
Edit: Trimmed post.
\\.\PhysicalDrive0 - ID: WDC WD5
\\.\PhysicalDrive1
\\.\PhysicalDrive1 ERROR: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Helper.IO.Win32FileStream.UnsafeNativeMethods.CreateFile(String fileName, Int32 access, FileShare shareMode, FileMode mode, FileOptions options)
at Helper.IO.Win32FileStream..ctor(String path, FileAccess access, FileShare share, FileMode mode, FileOptions options)
at LFConnect.dftp.findDevice()
\\.\PhysicalDrive2
\\.\PhysicalDrive2 ERROR: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode)
at Helper.IO.Win32FileStream.UnsafeNativeMethods.CreateFile(String fileName, Int32 access, FileShare shareMode, FileMode mode, FileOptions options)
at Helper.IO.Win32FileStream..ctor(String path, FileAccess access, FileShare share, FileMode mode, FileOptions options)
at LFConnect.dftp.findDevice()
Edit: Trimmed post.