• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: API to get installed RAM
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: API to get installed RAM


  • Subject: Re: API to get installed RAM
  • From: "Andy Cave" <email@hidden>
  • Date: Mon, 25 Apr 2005 11:36:45 +0100
  • Organization: Hamillroad Software

Hi Quinn.

That's not documented on your web site (gestaltPhysicalRAMSizeInMegabytes) - what's the selector for it?

You know it would also be really useful to have a gestalt for 'free physical memory available' for Carbon...

Thanks,

Andy.

----- Original Message ----- From: "Quinn" <email@hidden>
To: <email@hidden>
Sent: Monday, April 25, 2005 10:48 AM
Subject: Re: API to get installed RAM



At 2:31 -0700 25/4/05, Tom Bayley wrote:
Sorry if this is off-topic, does anyone know of such an API?

There are numerous, depending on which level of the system you're programming to, and what you system requirements are.


o For Carbon programmers, Gestalt is traditional. Use gestaltPhysicalRAMSizeInMegabytes and, if that fails, gestaltPhysicalRAMSize. See the comments in "Gestalt.h" for details.

o BSD-level programmers probably want to use sysctlbyname with "hw.physmem".

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: API to get installed RAM
      • From: Quinn <email@hidden>
References: 
 >API to get installed RAM (From: Tom Bayley <email@hidden>)
 >Re: API to get installed RAM (From: Quinn <email@hidden>)

  • Prev by Date: Re: API to get installed RAM
  • Next by Date: Re: API to get installed RAM
  • Previous by thread: Re: API to get installed RAM
  • Next by thread: Re: API to get installed RAM
  • Index(es):
    • Date
    • Thread