• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

System settings

Hello,
I was wondering how i can read out system settings, This includes: network settings(ip,open ports, porxy server,dns, etc)installed software, power options etc.
The opperatings systems i want to use this for are windows server 2003 and windows xp.
Could someone help me on my way with an example?
Thanx greats Carlas Smith
0
krydea
Asked:
krydea
  • 4
  • 4
1 Solution
 
jkrCommented:
>>This includes: network settings(ip,open ports, porxy server,dns, etc)installed software, power options etc.

Um, that's a lot of information. Well, let's start with the beginning then - the network related infos can be obtained using the code from the following two articles:

http://www.codeproject.com/internet/netcfg.asp ("The "New ipconfig" and the IP Helper API")
http://www.codeproject.com/internet/enetstatasp.asp ("Enhance netstat")

You can get a list of the installed software from the registry under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Power Managemetn is a bit tricky, what do you want to know?
0
 
_corey_Commented:
Carlas,

  There are several Win32 API functions that will give you information on the system.  Here are a few that should have some of what you're looking for:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsysteminfo.asp ["GetSystemInfo"]  This retrieves basic information about the system (processors/etc).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp ["SystemParametersInfo"]  This allows you to get and set a lot of specific runtime information on the system and OS including a few power saving settings.

For software, the Windows Installer section of the PlatformSDK is your friend.    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/msienumproducts.asp ["MsiEnumProducts"]

corey
0
 
_corey_Commented:
You know, any reason you couldn't simply invoke the power management control panel item:  'powercfg.cpl' ?  As I doubt you're doing any MMC snap-in development, this might be easiest to display to the user.

corey
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
krydeaAuthor Commented:
corey, i want to compare 2 systems/networks with athoter so i can't just envoke it.
i'm sorry with the network settings i need the user rights, blocked ports(firewall),websites,work group overvieuw aswel is that possible in c++?
0
 
jkrCommented:
Thank you, I am glad to see that the links to the network settings could help you. Looking foward to your next questions. Also, keep up your grading scheme, this is encouraging everyone who spend their time helping you here to continue that in the future.
0
 
_corey_Commented:
I'm sorry, I don't know the answer to your other power configuration question.  Perhaps if you repost that specific one, someone like JKR could help more.

corey
0
 
jkrCommented:
>>someone like JKR could help more

Thanks, I think I had enough "collaboration".
0
 
_corey_Commented:
Maybe I should start posting "Don't give me the points." footers again.  

corey
0
 
jkrCommented:
Make that 'Don't grade that as a C'
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now