home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 20093 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  32 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!think.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!seib.cc.purdue.edu!user
  3. From: sage.cc.purdue.edu (Broc Seib)
  4. Subject: Re: Getting 'Sharing Setup' info from system? (Q)
  5. Message-ID: <sage.cc.purdue.edu-191292165015@seib.cc.purdue.edu>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@mentor.cc.purdue.edu (USENET News)
  8. Organization: Purdue University
  9. References: <1992Dec18.234452.13698@netcom.com>
  10. Date: Sat, 19 Dec 1992 21:57:49 GMT
  11. Lines: 19
  12.  
  13. In article <1992Dec18.234452.13698@netcom.com>, milligan@netcom.com
  14. (Michael Milligan) wrote:
  15. > I'm interested in getting the name the user has entered in the Sharing Setup
  16. > control panel for registration purposes in an application I'm writing.  Can
  17. > anybody tell me how this is done?
  18. > -M
  19.  
  20. Do this:
  21.     Open the system file with ResEdit. Look in the 'STR ' resource. Open ID's
  22.     -16096 and -16413 respectively. These are the Pascal Strings that have
  23. been
  24.     entered as the Owner and the Machine Name respectively. You must use
  25.     the Resource Manger Routines (naturally) to access these strings.
  26.  
  27. -broc
  28. -----
  29. tws.s
  30.