Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!olivea!apple!claris!outpost.UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: Re: SysEnviron and 32bit clean Message-ID: <0B010004.66t1pk@outpost.UUCP> Date: 15 Feb 91 20:34:29 GMT Reply-To: peirce@outpost.UUCP Organization: Peirce Software Lines: 24 X-Mailer: uAccess - Mac Release: 1.0.3 In article <1991Feb15.152919.2886@murdoch.acc.Virginia.EDU>, heddle@clas01.cebaf.gov (David Heddle) writes: > > Some simple questions: > > 2) How do I detect how much RAM is present (not how much is available, > but how much is installed) It's not part of the info in the SysEnv > record, and I can't find any help in Inside Mac 1-5. There is a function called MFTopMem that returns the top of memory to you. It's declared (in Memory.p) as: FUNCTION MFTopMem: Ptr; This can be cast into a longint or whatever is makes sense for you. -- michael -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE -- Ask me about AppSizer (and ask Claris about Public Folder :-)