Solved

Reading raw data from a SCSI disk or CDROM

Posted on 1998-08-29
2
300 Views
Last Modified: 2010-04-15
I'm looking for help on reading/writing SCSI devices (CDROMs, in particular) using C.  Are there any good libraries, documentations, etc. out there for this sort of programming?

I have an Adaptec SCSI controller (built into the MB -- an Asus P2B-S -- AIC-7890?) and MSVC++ 5.0 running on Win95B.

Specifically, I'm interesting in the ability to read raw data from my SCSI CDROM (whether data or audio) with the ability to set it to read from a certain location every time (so the same CD with the same start-read location should give the same bit/byte sequence read every time).

Any help would be appreciated.  Thanks!


AP9
0
Comment
Question by:ap9
2 Comments
 
LVL 3

Accepted Solution

by:
brosenb0 earned 100 total points
Comment Utility
Your jumping into the deep end from a fairly steep height, as SCSI programming is almost a science in its own right.  You would probably find it exceedingly difficult to obtain details regarding the registers, memory & I/O ports for your adapter and you would typically have to embed x86 assembler into your VC source code to manipulate them.  In order to isolate the developer from having to physically manipulate the hardware for each SCSI controller they may want to work with, Adaptec came up with the ASPI layer (Advanced SCSI Programming Interface).  The appropriate ASPI driver for the controller is installed and a common software interface is presented to the application.  Other vendors have also adopted ASPI as the SCSI API standard.  Adaptec will sell you a ASPI SDK for $150 US.  Details can be found at www.adaptec.com/adaptec/developers/aspi1.html

Good Luck.
0
 

Author Comment

by:ap9
Comment Utility
Hmm, ok.  That's not viable for me at the moment.  Is there some sort of generic API I can use, or one that I can get for free?
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now