Ok, let me say this first, because people seem to want to give me other methods... I MUST get this from the registry because I want to get it remotely and I DO NOT want to use WMI because WMI is not always installed on a machine. The registry is ALWAYS there. I do NOT want to use API like GetMemory() or any such thing because it can't get total phys. memory remotely.
So let's get on with it. :)
I have VB code that was done by another coder on RAC that gets total physical memory from the registry (NT4/W2K/XP), but it seems to have problems with memory of 8GB or higher.
The following is an export from a machine with 8GB memory, but my code is reading it as 3,584MB.
Please don't bid on this unless you have experience in this area. It's very important that we get this right with minimal effort on my part.
Visual Basic 6 only
------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical Memory]
".Translated"=hex(8):01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,05,00,00,\
00,03,01,00,00,00,10,00,00,00,00,00,00,00,f0,01,00,03,01,00,00,00,10,02,00,\
00,00,00,00,00,e0,07,00,03,01,00,00,00,00,10,00,00,00,00,00,00,f0,ef,00,03,\
01,00,00,00,00,00,01,00,00,00,00,00,c0,ff,de,03,01,00,00,00,00,00,00,01,00,\
00,00,00,00,00,00
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
NT4/W2K/XP Pro
Visual Basic 6