#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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org This email sent to [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
