Re: Get the UUID of the current user
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