Search code examples
windowscygwinscsi

How to read bytes from a device using c/c++ in windows


So here's the background:

I've got this SCSI device with media that has raw data on it (for simplicity let's say it contains abc123). This device is on a Windows machine. I'd like to use C/C++ to initalize the device, open it, send the SCSI read command to the device, and ultimately "read" the bytes.

I've searched for similar topics, but I keep getting Linux/Unix guides, or Visual C++ (which I do not have access to).

Does anyone know a good way to start this? Maybe some sample code or maybe someone has a tutorial laying around ;-)

Thank you in advance!

EDIT: I am using Cygwin.


Solution

  • UPDATE: After banging my head into a wall for quite some time, and some pleading and begging, I managed to get my superviser to allow me to get Visual Studio 2003 installed!

    To anyone looking for more information on this topic, I highly agree with the comments provided above-it's near impossible to accomplish this on a Windows machine and not use Visual C++.

    My only other suggestion is to make the wonderful switch to *nix world (if you can)!