Tape Drive access
-
Is it possible to read, write, and perform drive maintenance(cleaning, inventory, etc.) on a tape drive from C#? Thanks alot
-
Is it possible to read, write, and perform drive maintenance(cleaning, inventory, etc.) on a tape drive from C#? Thanks alot
Is it possible? Sure. Would anyone sane want to do it? Absolutely not. Tape drive access is a very low-level, huge set of operations. You'll need to P/Invoke so many functions and declare so many structs and consts/enums that you'll probably never get to the meat of the development, unless you can find some COM control to interop or a wrapper DLL that you can P/Invoke, but you probably won't since this is not something that consumers typically "play with". The software you use with your drive (Veritas Backup, et. al.) may have some undocumented APIs you could P/Invoke, but as they're most likely undocumented for a reason you'll have a REALLY tough time. See the Windows DDK (driver development kit) for details. It's huge and it's ugly.
Microsoft MVP, Visual C# My Articles