EDN Admin
Well-known member
Hi,
I am writing a small utility to print cpu and os info using vc++. For cpu info, I am using code snippet posted here:
http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.80%29.aspx
For OS related info, I am using rootCIMV2Win32_OperatingSystem.
One thing I have noticed is the value of cpu Model & family type flag is inconsistent or I am not able to understand it properly.
My processor is AMD Athlon(tm) 64 Processor 3200+.
Values when using code (link above)
Model = 15<br/>
Family = 15
Values of different properties when using rootCMIV2Win32_Processor
Caption = "x86 Family 15 Model 31 Stepping 0".
Family = 2
I would appreciate if some one clear this confusion.
I am still on my XP box and heard lot about Windows 7 UAC and more restrictive privileges. I would want to know that under which circumstances root/CMIV2/ wont be able to access the various properties. This is targeted to environment where users have limited
or customized rights. I tried creating a limited user on XP and tested my code and its working fine. I googled but so far what I have come to know is that accessing processor and os related info using rooCMIV2 is not going to problematic but accessing baseboard
info might be restricted.
I would be accessing three categories using rootCMIV2
1. Win32_OperatingSystem
2. Win32_Processor
3. Win32_BaseBoard
Best Regards
Prashant
View the full article
I am writing a small utility to print cpu and os info using vc++. For cpu info, I am using code snippet posted here:
http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.80%29.aspx
For OS related info, I am using rootCIMV2Win32_OperatingSystem.
One thing I have noticed is the value of cpu Model & family type flag is inconsistent or I am not able to understand it properly.
My processor is AMD Athlon(tm) 64 Processor 3200+.
Values when using code (link above)
Model = 15<br/>
Family = 15
Values of different properties when using rootCMIV2Win32_Processor
Caption = "x86 Family 15 Model 31 Stepping 0".
Family = 2
I would appreciate if some one clear this confusion.
I am still on my XP box and heard lot about Windows 7 UAC and more restrictive privileges. I would want to know that under which circumstances root/CMIV2/ wont be able to access the various properties. This is targeted to environment where users have limited
or customized rights. I tried creating a limited user on XP and tested my code and its working fine. I googled but so far what I have come to know is that accessing processor and os related info using rooCMIV2 is not going to problematic but accessing baseboard
info might be restricted.
I would be accessing three categories using rootCMIV2
1. Win32_OperatingSystem
2. Win32_Processor
3. Win32_BaseBoard
Best Regards
Prashant
View the full article