On 12 May 2009, at 23:03, Citizen wrote:

On 12 May 2009, at 06:48, Chris Gardner wrote:

I do not know how to know CD Driver type, which can read CD or can read DVD.
I want to know the CD Driver whether can read CD disc or DVD disc.
Though I have used DRDevice, I can not get information about the CD Driver can read CD or DVD.

As I understand it DRDevice is only good for getting the optical drives writing capabilities. To find out read information about an optical drive before a disc is inserted you could try parsing the output from the terminal command "system_profiler". See the relevant system_profiler man page for more information.

Alternatively there is a low level C based Unix library "ioctl". This may give you what you want. There is some example code on your hard disk to get you started with this: /Developer/Examples/DiscRecording/C/ drioctl/

Regards,
Dave

------
David Kennedy (http://www.zenopolis.com)



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to