Getting information on system

This is a discussion on Getting information on system within the Windows Programming forums, part of the Platform Specific Boards category; I started a new thread on this since it is a very different question from the one about environment variables. ...

  1. #1
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913

    Getting information on system

    I started a new thread on this since it is a very different question from the one about environment variables. What I need is an array that stores as much information about what's going on with the computer as possible. I can design a different version for every Windows OS, but the information needs to be of the same format for every computer running that OS. What information can I get, and how can I get it? I've tried environment variables, and not only would their information be quite useless (as they might as well be constants), but there are some variables there when they aren't at other times, and I need the format to remain pretty constant.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Not sure what you're really after but GetVersionEx will give you the name,rank and serial number of each windows os which will enable you to make runtime decisions about os specific stuff, right down to version number/service packs.

    Other information gathering api's include:
    GetSystemMetrics
    GetSystemInfo.
    SystemParametersInfo.
    GetSysColor.

    You may want to take a look at registry functions, too.

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    I've been going over my algorithm, and I think I may have figured out a way that I can handle different variables every time. I'm not interested in finding out what OS the users running, because that might as well be a constant. I'd like to now things like the number of programs running, a list of programs running, how to CPU's running, thing's like that. I was told about using ::. Can I get the output of that read to my program instead of striaght to output?

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    I'm sorry, I should've figured this out in the original thread. :: won't work in C++, it's an operator for classes. They must've meant C. Any alternatives?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  2. Replies: 6
    Last Post: 07-07-2008, 07:48 AM
  3. School Mini-Project on C/C++ (Need Your Help)..
    By EazTerence in forum C++ Programming
    Replies: 4
    Last Post: 09-08-2005, 01:08 AM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 06:12 AM
  5. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21