c# - USB drive programming with .NET -
i working on project need access specific addresses of usb drive (e.g. sector 0), , change bytes. have done parts c# includes user interface, detection of usb drives etc. can me providing links can access specific addresses of usb drives .net?
the framework doesn't support this. if attempt create filestream on device throw exception. have use windows api methods directly (p/invoke createfile, deviceiocontrol, etc). make sure read section on physical disks , volumes here: http://msdn.microsoft.com/en-us/library/aa363858.aspx
Comments
Post a Comment