• 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
Re: IOKit device help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IOKit device help
      • From: Ken Thomases <email@hidden>
References: 
 >IOKit device help (From: "Jason T. Slack-Moehrle" <email@hidden>)

  • Prev by Date: Re: Turning off screen shot ability
  • Next by Date: Re: IOKit device help
  • Previous by thread: IOKit device help
  • Next by thread: Re: IOKit device help
  • Index(es):
    • Date
    • Thread