Re: API to get installed RAM
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