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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -