Re: IOKit device help
Re: IOKit device help
- Subject: Re: IOKit device help
- From: Ben Gollmer <email@hidden>
- Date: Wed, 06 Mar 2013 10:00:01 -0500
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
--
Ben
_______________________________________________
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