Re: IOKit device help
Re: IOKit device help
- Subject: Re: IOKit device help
- From: Ken Thomases <email@hidden>
- Date: Wed, 06 Mar 2013 09:42:56 -0600
On Mar 6, 2013, at 9:00 AM, Ben Gollmer wrote:
> On Mar 3, 2013, at 8:58 PM, Jason T. Slack-Moehrle <email@hidden> wrote:
>
>> I am using: IOServiceGetMatchingServices
>>
>> kr = IOServiceGetMatchingServices(kIOMasterPortDefault,
>>
>> IOServiceNameMatching("AppleUSBEHCI"), &io_objects);
>>
>> I am looking for how I find out information about the internal HD as the
>> above will prob USB device.
>>
>> I cannot seem to find a list or anything that would tell me this.
>>
>> Essentially I am looking for a way to get a unique ID from the system. On
>> Windows the other developer uses the hard disk id.
>
> On OS X, it is typical to use the system serial number, MAC address of the primary network interface, or the hardware UUID to uniquely identify a system. Of course, each of those can change for different reasons.
>
> Technote 1103 includes sample code & some discussion of the various caveats:
>
> http://developer.apple.com/library/mac/#technotes/tn1103/_index.html
And if you decide you still want to get a disk ID, the proper API would probably be DiskArbitration.
https://developer.apple.com/library/mac/#documentation/Darwin/Reference/DiscArbitrationFramework/_index.html
Cheers,
Ken
_______________________________________________
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