Author Topic: RAM Information in C/C++, help please!  (Read 5604 times)

vvalentine

  • *
  • Posts: 633
    • View Profile
RAM Information in C/C++, help please!
« 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).

J*** H*******

  • Guest
RAM Information in C/C++, help please!
« Reply #1 on: 2003-12-28 22:47:48 »
Message

Cyberman

  • *
  • Posts: 1572
    • View Profile
Re: RAM Information in C/C++, help please!
« Reply #2 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

vvalentine

  • *
  • Posts: 633
    • View Profile
RAM Information in C/C++, help please!
« Reply #3 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.

The Skillster

  • *
  • Posts: 2284
  • Loving every Final Fantasy
    • View Profile
RAM Information in C/C++, help please!
« Reply #4 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.

vvalentine

  • *
  • Posts: 633
    • View Profile
RAM Information in C/C++, help please!
« Reply #5 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.

The Skillster

  • *
  • Posts: 2284
  • Loving every Final Fantasy
    • View Profile
RAM Information in C/C++, help please!
« Reply #6 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 :)

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
RAM Information in C/C++, help please!
« Reply #7 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

The Skillster

  • *
  • Posts: 2284
  • Loving every Final Fantasy
    • View Profile
RAM Information in C/C++, help please!
« Reply #8 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.

Sephiroth2000

  • Guest
RAM Information in C/C++, help please!
« Reply #9 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.

J*** H*******

  • Guest
RAM Information in C/C++, help please!
« Reply #10 on: 2004-01-01 23:39:41 »
Message

Alhexx

  • *
  • Posts: 1894
    • View Profile
    • http://www.alhexx.com
RAM Information in C/C++, help please!
« Reply #11 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