On Apr 6, 2012, at 5:49 PM, Brian S wrote: > On Apr 6, 2012, at 8:31 AM, Deep wrote: > >>> btw: I’ve put together a Cocoa replacement for the now "legacy" calls in Util_ComputerNames.incl ( i.e. fn CSCopyMachineName and fn CSCopyUserName ). If there is any interest I will post. >> >> >> There is always interest in replacement code, please post! > Two more notes: (1) The demo is self-contained and presents no issue. However, if using that code in a project, don’t forget the C prototype declares: BeginCDeclaration CFStringRef GetShortUserName( void ); CFStringRef GetLongUserName( void ); EndC (2) SCDynamicStoreCopyComputerName() needs the "include library". NSUserName and NSFullUserName don’t need it. Brian S.