Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: vvalentine on 2003-12-28 22:15:02

Title: RAM Information in C/C++, help please!
Post by: vvalentine on 2003-12-28 22:15:02
Well, I'm doing this tool to create an excel file with hardware information on Windows 2000 machines.

So far it's been easy by accessing the registry, however, I am having problems getting memory information.

The main things I want to find are:

RAM speed
Memory slots taken
Amount of RAM per memory module


I've tried looking in the registry for some information about this, but no luck.  I also tried to access the CMOS, but I don't have enough knowlege of Assembly.  A little help will be greatly appreciated.

An example would be great, but I only need to know which header files to include and what functions to call.

Thanks (cya guys later, busy busy busy).
Title: RAM Information in C/C++, help please!
Post by: J*** H******* on 2003-12-28 22:47:48
Message
Title: Re: RAM Information in C/C++, help please!
Post by: Cyberman on 2003-12-28 23:48:40
Quote from: vvalentine
Well, I'm doing this tool to create an excel file with hardware information on Windows 2000 machines.

So far it's been easy by accessing the registry, however, I am having problems getting memory information.

The main things I want to find are:

RAM speed
Memory slots taken
Amount of RAM per memory module


I've tried looking in the registry for some information about this, but no luck.  I also tried to access the CMOS, but I don't have enough knowlege of Assembly.  A little help will be greatly appreciated.

An example would be great, but I only need to know which header files to include and what functions to call.

Thanks (cya guys later, busy busy busy).


Firstly you do not need to know assembly
second if you can get the right access rights from Windows (otherwise it will throw an exception) to use IO you can use a PORT object to read the contents of the CMOS ram.  What the CMOS ram contains is another challenge all together.  Namely because it's changed over the years :)

Cyb
Title: RAM Information in C/C++, help please!
Post by: vvalentine on 2003-12-29 07:53:26
Quote from: Jari Huttunen
The info you are looking for is in class Win32_PhysicalMemory (surprise!).



Thank you so much Jari.  I'm glad we have you back.
Title: RAM Information in C/C++, help please!
Post by: Skillster/RedSarg99 on 2003-12-29 09:45:43
Any chance you can let us know how u get on there vvalentine
sounds like a very usefull spec dumping tool your onto.
Title: RAM Information in C/C++, help please!
Post by: vvalentine on 2003-12-30 06:35:33
Quote from: The Skillster
Any chance you can let us know how u get on there vvalentine
sounds like a very usefull spec dumping tool your onto.


Yeah, it is, I need it for work, and right now is very very sloppy, but ehh, as long as it does the work.  I need it by Tuesday since at work we are running an inventory on the computer hardware in the computer labs, and damn, it's too many for me to do alone (500+).  I'll clean the source code and make comments on it, and I'll post it.   It's not that much of source code, and it will not be once I organize it.
Title: RAM Information in C/C++, help please!
Post by: Skillster/RedSarg99 on 2003-12-30 16:07:54
cool, nice one
I might look at it too,
was it coded in c++ or in visual C++?
anyway i might see if i can play with it, but i am at very n00b coder :)
Title: RAM Information in C/C++, help please!
Post by: Alhexx on 2003-12-30 17:14:44
There's just one thing I really want to point out:

Quote from: vvalentine
(...) I'm glad we have you back.


 - Alhexx
Title: RAM Information in C/C++, help please!
Post by: Skillster/RedSarg99 on 2004-01-01 10:49:03
ah true, but id seen him in the saddam wars on the unrelated forum and took it for granted.
Title: RAM Information in C/C++, help please!
Post by: Sephiroth2000 on 2004-01-01 22:43:47
I thought Jari said that he would not post on this forums again, at least not as a registered user...
Still who cares, good of you to come back.
Title: RAM Information in C/C++, help please!
Post by: J*** H******* on 2004-01-01 23:39:41
Message
Title: RAM Information in C/C++, help please!
Post by: Alhexx on 2004-01-02 16:50:40
Quote from: Jari Huttunen
True. You'll have to thank certain politics-related thread for annoying me enough to post.


Let's hope there'll be more of that "annoying" topics!  8)

 - Alhexx