New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

getting the Hard Drives in Mac Intel from qt

Post Reply New Thread Subscribe

Thread Tools

Member Since: Dec 13, 2006
Posts: 13
vishal.chauhan is on a distinguished road

vishal.chauhan is offline
Hi All,

I m using Mac Intel having Mac OS 10.4.7.
I m using the following code to find the all the media drives present in the System.

kern_return_t FindAllDrives( io_iterator_t *mediaIterator )
CFMutableDictionaryRef classesToMatch;
kern_return_t kernResult = KERN_FAILURE;

classesToMatch = IOServiceMatching( kIOMediaClass );
if ( classesToMatch == NULL ) goto Bail;
CFDictionarySetValue( classesToMatch, CFSTR(kIOMediaWholeKey), kCFBooleanTrue );

kernResult = IOServiceGetMatchingServices( kIOMasterPortDefault, classesToMatch, mediaIterator );
if ( KERN_SUCCESS != kernResult )
qDebug("IOServiceGetMatchingServices returned 0x%08x\n", kernResult );

return( kernResult );

I m running this code correctly in power pc but when I m using this code on my Mac intel Is giving the foolwing error.

Xcode could not locate source file:qatomic_macosx.h

If any one knows then plz plz help me.

thanks in advance
QUOTE Thanks

Post Reply New Thread Subscribe

« invoking an application with in another application | New Programs for Darwin: VE Text Editor, Keytest, Datasizes »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Digital/Analog audio output on Intel Mac Mini? firas Apple Desktops 5 04-18-2009 08:16 PM
Switcher Article in Today's Times studio34 Switcher Hangout 9 08-11-2006 03:10 PM
Converting pc internal hard drives to Imac extneral hard drives kforum Other Hardware and Peripherals 2 08-03-2006 10:43 PM
Issue using times function in Intel MAC sjain OS X - Development and Darwin 7 07-31-2006 09:30 AM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 10:57 AM

All times are GMT -4. The time now is 02:06 PM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?