I read the following post on another site:
My library here has a class that describes the command which can be used to flip the RMB.
Note that it only works if the flash drive supports it.
The post references this code base.
I've grabbed the source ... compiled it ... and fumbled my way to the following ...
private static void TestRMB()
using (var file = new Win32FileStream(@"\\.\CdRom0", FileAccess.ReadWrite, FileShare.ReadWrite, FileMode.Open, FileOptions.None))
using (var spti = new Win32Spti(file.SafeFileHandle, true, true))
using (var cd = new ScsiDevice(spti, true))
I would appreciate any help I could get.
First I don't know how to change \.\CdRom0 to reference my usb drive.
Second I don't know if more code is required then what I've cobbled together.