3

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.

Charley Rathkopf
  • 4,720
  • 7
  • 38
  • 57
  • 1
    @Anon: I don't know about rathkopf's reasons but my last company did a lot with using high-level programs to do as much work as possible then firing off low level programs to do more invasive work. We didn't need what he needs but if we did I'd have been asking the same question. – Dinah Jan 27 '10 at 22:34
  • Different HD renderers work better on different chipsets. I'm rendering HD Video – Charley Rathkopf Jan 27 '10 at 22:40

2 Answers2

1

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:

WMI Code Creator v1.0

(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.

Ryan Lundy
  • 204,559
  • 37
  • 180
  • 211
  • Thanks for the link. Now if only someone would post the proper calls. I figured that WMI was going to be the way to go, but I couldn't find the proper queries when I googled with bing. – Charley Rathkopf Jan 28 '10 at 16:48
-1

You could the system's environment variable:

System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
Steve Danner
  • 21,818
  • 7
  • 41
  • 51