• 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: machine with null serial number?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: machine with null serial number?


  • Subject: Re: machine with null serial number?
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 28 Mar 2008 21:00:47 -0700

Apple recommends using the primary MAC (Media Access Layer) address instead of the machine serial number to uniquely identify a computer for this purpose. Read:

http://developer.apple.com/technotes/tn/tn1103.html

You can find some code on developer.apple.com named "GetPrimaryMACAddress.c" for getting this.

Another possible cause of no serial number is that the machine is a so- called "Hackintosh"; non-Apple hardware modified to run Mac OS X.

I modified GetPrimaryMACAddress.c, adding a Cocoa wrapper and the ability to handle null MAC addresses by substituting the user's primary email if the primary MAC address comes up NULL. (It was been reported to me that Hackintoshes don't report MAC addresses either.) It's straightforward. The implementation is too long to paste in here but if anyone wants it I can post it somewhere. Here's the .h:

#import <Cocoa/Cocoa.h>

@interface SSIOKit : NSObject

+ (NSData*)primaryMACAddressData ;
//+ (NSData*)machineSerialNumberData ; // not recommended

@end

_______________________________________________

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: machine with null serial number?
      • From: Matt Burnett <email@hidden>
References: 
 >Re: machine with null serial number? (From: Scott Ribe <email@hidden>)
 >Re: machine with null serial number? (From: Matt Burnett <email@hidden>)
 >Re: machine with null serial number? (From: David Rogers <email@hidden>)

  • Prev by Date: What's a good way to tell contextual menu apart from main menu?
  • Next by Date: Re: machine with null serial number?
  • Previous by thread: Re: machine with null serial number?
  • Next by thread: Re: machine with null serial number?
  • Index(es):
    • Date
    • Thread