Hy guys!
I'm using the following (piece of) code to retrive cache level 2 size of the processor.
This works just great on several AMD machines I've testit but, strangely, doesn't work on Intel...
The problem is that on some systems (Intel P4 2 GHz.) the reported value is 0. How come?
Any ideas?
Thanks!
I'm using the following (piece of) code to retrive cache level 2 size of the processor.
Code:
Dim cpuSet As SWbemObjectSet
Dim cpu As SWbemObject
Set cpuSet = GetObject("winmgmts:{impersonationLevel=impersonate}"). _
InstancesOf("Win32_Processor")
For Each cpu In cpuSet
txtCPULevel2Cache.Text = cpu.L2CacheSize
Next
The problem is that on some systems (Intel P4 2 GHz.) the reported value is 0. How come?
Any ideas?
Thanks!