I need my code to behave differently dependent on the chipset of the computer it is running on. How can I determine this using C#.
Specifically Intel 945 vs 965.
I need my code to behave differently dependent on the chipset of the computer it is running on. How can I determine this using C#.
Specifically Intel 945 vs 965.
You could the system's environment variable:
System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
If you can get that information, you can surely get it through WMI. Here's a tool that'll autogenerate the C# code for you to do any WMI query:
(By default it generates VBScript; change the Code Language setting to get C# or VB .NET. You can select multiple properties in the "Select the properties you want values for:" window.)
Unfortunately, I have no idea which of the gazillions of possible WMI queries you'd execute to find out the chipset, and searching only came up with pages asserting that it can't be done for motherboard chipset specifically.
But maybe you'll find the WMI Code Creator useful for other things at any rate.