This patch adds support for Cygwin using libusb-win32 and the SCSI library in sg3_utils. I tested SCSI and bootloader mode dumping. That SCSI library also supports FreeBSD, Solaris and Tru64, but I have not tested on those.
It should be possible to compile dpflib for plain MinGW, but more changes would be needed to get everything to compile and work like in Cygwin.
You need to run as Administrator to send SCSI commands. There is no need to run as Administrator for bootloader mode, but you need to first install the libusb-win32 filter driver for that device.
Let me know here if any changes need to be made to this patch.
Thanks for the patch.
I will have a look as soon as time permits.
superelchi