Find network mounted DVD's
Find network mounted DVD's
- Subject: Find network mounted DVD's
- From: P Teeson <email@hidden>
- Date: Mon, 18 Apr 2011 22:35:06 -0400
In an app I am working on I have the below code to detect physical DVDs attached to the computer.
io_iterator_t dvdDeviceList;
CFMutableDictionaryRef classesToMatch;
kern_return_t result = KERN_FAILURE;
// Get an iterator for all DVD devices
classesToMatch = IOServiceMatching(kIODVDMediaClass);
CFDictionaryAddValue (classesToMatch, CFSTR(kIOMediaEjectableKey), kCFBooleanTrue);
result = IOServiceGetMatchingServices(kIOMasterPortDefault,classesToMatch, &dvdDeviceList);
assert(result == KERN_SUCCESS);
// Is there more than one device
io_object_t dvdDevice;
int i = 0;
while (dvdDevice = IOIteratorNext(dvdDeviceList)) { i++; }
// if (i>1) {do something}
......
But I have not had success in figuring out how to find LAN mounted DVD's
Can someone please point me to the correct documentation or suggest a direction for me to go in?
TIA
Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden