• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Find network mounted DVD's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Find network mounted DVD's
      • From: Michael Dautermann <email@hidden>
  • Prev by Date: system services ?
  • Next by Date: CALayer: Animation using actions property
  • Previous by thread: Re: system services ?
  • Next by thread: Re: Find network mounted DVD's
  • Index(es):
    • Date
    • Thread