Re: identifying optical media
Re: identifying optical media
- Subject: Re: identifying optical media
- From: Alexander von Below <email@hidden>
- Date: Sat, 04 Feb 2012 10:33:45 +0100
Well, yes :D
What you want to investigate is the IOKit Registry. I don't have the sample code on this machine, please have a look at this: https://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/IOKitFundamentals/Matching/Matching.html
If you encounter problems let me know. I have the sample code somewhere
Alex
Am 04.02.2012 um 10:25 schrieb Alex Reynolds:
> I'd like to discern read-only media from optical media, as well as get information about the optical media.
>
> Basically, I am looking for information about the programmatic equivalent of running "diskutil info /Volume/XYZ" and getting "Optical Drive" and/or "Optical Media" entries when a CD or DVD is inserted, which are not visible for other mounted media.
>
> Does this help clarify?
>
> Thanks,
> Alex
>
> On Feb 4, 2012, at 12:45 AM, Alexander von Below wrote:
>
>> Maybe ... what is really your question? Is the goal to display "Hey, this is an optical disc", or are you looking to achieve a different goal?
>>
>> Knowing what you want to do with this information helps to give you a better answer
>>
>> Alex
>> D
>> Am 04.02.2012 um 00:42 schrieb Alex Reynolds:
>>
>>> Is there a programmatic method by which one can determine if a mounted disk is optical, e.g., CD or DVD?
>>>
>>> Thanks,
>>> Alex
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Darwin-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden