[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: user name from the mac
- To: keunen@nrb.be
- Subject: Re: user name from the mac
- From: bill@cambridge.apple.com (Bill St. Clair)
- Date: Fri, 4 Dec 1992 11:12:09 -0600
- Cc: info-mcl
>Before 7.0, (machine-instance) returned the name of the user in the
>chooser. Now it returns the sys 7 name of the machine. Therefore, what
>is the way to get to the sys 7 user name?
(defun machine-owner ()
"returns chooser name, else \"unspecified\""
(let ((h (#_GetString -16096)))
(if (or (%null-ptr-p h) (%null-ptr-p (%get-ptr h))
(eql 0 (%get-byte (%get-ptr h))))
"unspecified"
(%get-string h))))