Re: netinfo header files on Panther
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OIQCVKBDPq5gdEuB6KDJzbuM9SPI+GxGUXm0Ic2HPviZbkbEsSnXRs21kqRq36h6i/4MnoLGzCO1kUxBu1pGrjjP5rsdtzP3pL7UylEl5K/LtcuGK/Gyn3ZMxAn8k+k3eKMqMJAJuv4zTNiILn2ZdlgwZ4eoh9InvRxv9p3SB90= On 7/15/05, Chris Vitale <cvitale@trustednetworktech.com> wrote:
Hello,
I need to find all users and UIDs on a local system from a daemon. I'd like to use the netinfo API (rather than command line tools) but I can't locate netinfo/ni.h on my local machine or in an SDK on the apple site. What am I missing?
The NetInfo API is deprecated and not supported. Don't use it. The recommended replacement is the Open Directory (né Directory Services) API. If all you need is to get a list of the users and UIDs, then you can probably get away with just using getpwent(). -- Finlay _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Finlay Dobbie