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? -

visual studio - Deleting lines of code in a text editor -

What's the encoding type of Android 2.2 push message? -