Re: [GD-Windows] How to determine total physical memory available ?
Brought to you by:
vexxed72
From: Colin F. <cp...@ea...> - 2004-01-26 20:31:15
|
>>> However, when I use the System Information tool in >>> the system tools of Windows, it correctly reports 1024 MB. >>> >>> So anyone knows how I can get the exact information ? Prompt the user to launch the System Information tool and enter the number they see in to a text edit box ! (Or take the user out of the loop and automate the process with window messages.) Or...reverse-engineer the System Information tool ! (dumpbin or whatever to get the API calls). Figure out how it gets the proper answer ! Or...just round the result of GlobalMemoryStatus() to the nearest plausible memory size value! (e.g., 757 MB becomes 768 MB, and 1022 MB becomes 1024 MB) Okay, I'm bad ! Sorry for the humor ! --- Colin cp...@ea... http://www.colinfahey.com |