|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Checking Sys Specs
Anybody know how to check system specs like CPU speed, RAM, who the comp is licensed to, crap like that. Be great if it works in DOS and windows based programs.
|
|
#2
|
||||
|
||||
|
Hope this link helps:
http://msdn.microsoft.com/library/e...information.asp It should contain most of what you're looking for. |
|
#3
|
||||
|
||||
|
I was looking at some of the functions on that page, and i came across SetSysColors(). so i decided to use a snippet of the code found @ the site to change the colors of my app. what happened next was pretty funny... as soon as it starts up my program starts spazzing out flickering in and out, spawning multiple instances of itself, then my musicmatch player starts spazzing as well, along with the start menu bar and a folder i had open. all i could do was sit back and laugh!! I open up task manager, and guess what? yes it starts spazzing as well, so i manage to tab over to the resource tab and the CPU usage is just sitting at 100%. so i say **** it and restart my computer the easy way. anyone know why this code made that happen?
Code:
/*
// Window elements to change.
int aiElements[3] = {COLOR_ACTIVEBORDER,
COLOR_ACTIVECAPTION,
COLOR_WINDOW};
// Array of RGB values.
DWORD aColors[3];
// Define the new colors.
aColors[0] = RGB(0x80, 0x00, 0x80); // dark purple
aColors[1] = RGB(0x00, 0x80, 0x80); // dark cyan
aColors[2] = RGB(0xC0, 0xC0, 0xC0); // light gray
// Set the window elements in aiElements to the colors
// specified in aColors.
SetSysColors(3, aiElements, aColors);
*/
|
|
#4
|
|||
|
|||
|
dont know. But one thing that would be funny would be to give it to a friend and watch them freek out when they think its a virus.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Checking Sys Specs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|