• 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: Get the UUID of the current user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get the UUID of the current user


  • Subject: Re: Get the UUID of the current user
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 25 Jun 2008 11:46:34 +0200


#include <membership.h>

uuid_t uuid;
mbr_uid_to_uuid(getuid(), uuid);

See "man mbr_uid_to_uuid" for details.

Or if you target 10.5 only, that maybe possible using the new Identity API ( http://developer.apple.com/documentation/Networking/Reference/IdentityServices_RefCollection/index.html )


Le 25 juin 08 à 11:22, Yoann GINI a écrit :

Hi all,

I look for get the UUID of the current user, the only way actually found is to run a NSTask with this command : "dsmemberutil getuuid - U `whoami`"... But it's not really a good solution for me.
Have you a idea for get the UUID without NSTask ?


Thanks in advance,
Yoann
_______________________________________________

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Get the UUID of the current user
      • From: Yoann GINI <email@hidden>
References: 
 >Get the UUID of the current user (From: Yoann GINI <email@hidden>)

  • Prev by Date: Get the UUID of the current user
  • Next by Date: Re: Get the UUID of the current user
  • Previous by thread: Get the UUID of the current user
  • Next by thread: Re: Get the UUID of the current user
  • Index(es):
    • Date
    • Thread