Programming to direct hardware
-
Saturday, August 25, 2012 12:44 PM
Hello All,
I have a question regarding to connect to direct hardware.
Is it possible to link to usb drive directly without using the system.io.
Thanks.
Planit Canada CRM Online
All Replies
-
Saturday, August 25, 2012 2:41 PM
What do you mean by "directly"? You want to open whole usb drive as a single file?
If so, you can try to open something like "\\.\PHYSICALDRIVE0" (though MSDN says, that it is not supported)
-
Sunday, August 26, 2012 12:57 PMI would like to connect to the usb drive by the physical address and not by using the System.IO
Planit Canada CRM Online
-
Sunday, August 26, 2012 4:18 PM
If you want to do it in F# it is easier to use .NET runtime to access it.
If you have to use WinAPI for lower level access you could use .NET interop library to invoke WinAPI functions.
Or you can create COM C++ component and use it from .NET using COM interop
Petr
- Marked As Answer by Martin Perron Sunday, August 26, 2012 6:04 PM

