[RESOLVED] L3 Cache Size and other Information without WMI
Hi guys!
I've got a question about APIs this time. I have a little insight but not really enough to go on I'm afraid.
I'm trying to find out the L3 Cache Size for a processor without using WMI (see this thread for the reasoning) and I was wondering if anyone knows how that can be done.
I'm also looking for other processor information such as L2 cache, etc. so any information about those would be helpful too.
Thanks!
Edit: Oh and for those who are interested my primary language is C# but I can translate between languages.
Re: L3 Cache Size and other Information without WMI
Hi.
What am aware of is the GetSystemInfo in kernel32 .I don't know however if it gives out the L3 cache.Other that this...Since you use C# maybe you have some experience in c++ ?Maybe you can make something out.Here:
http://www.koders.com/cpp/fid3A92AAF...4D635EA3B.aspx
and
http://msdn.microsoft.com/en-us/libr...8VS.80%29.aspx
Hope you can make something out of this.
P.S. Also a .d language example.look for "/tags/oldcode/trunk-2009-11-09/user/tango/core/Cpuid.d"
http://www.dsource.org/projects/tang...=diff&new=5096
Re: L3 Cache Size and other Information without WMI
Thanks for the information. The ___cpuid could be just what I'm looking for - though I will need to work with a C++ DLL in order to use it.
That shouldn't be a problem however since I have worked with C++ before and am familiar with the syntax.
I will write this up as a C# linked library and hopefully release it at some point. Cheers!
Re: L3 Cache Size and other Information without WMI
No problem, glad i could help. :)
Re: L3 Cache Size and other Information without WMI
I actually managed to get the __cpuid and __cpuindex functions running via a C++ DLL and exports. There is an amazing amount of information stored in these two functions so it'll take me some time to pick through it and work out what I need.
It was a bit of a pain but it works!
Cheers :)