| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
OSDictionary* services = IOService::serviceMatching(kIOMediaClass);_______________________________________________
if (!services)
return;
OSIterator* iterator = IOService::getMatchingServices(services);
if (!iterator)
return;
while (true)
{
IOService* service = OSDynamicCast(IOService,
iterator->getNextObject());
if (!service)
break;
printf("name: %s\n", service->getName());
// service->release(); NO! - see IORegistryIterator::getNextObject()
}
iterator->release();
services->release();
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.