c# - Retrieve Windows Experience Rating -


I'm looking to recover the machine's windows experience rating in C #. If possible, I would like to retrieve numbers for each component (graphics, RAM, etc.).

Is this possible?

Whenever a user goes through the control panel to calculate the Windows experience rating, the system < Code>% Windows% \ Performance \ WinSAT \ DataStore \ / P>

You will need to find the most recent file (the most important date is named after them, so finding the latest file is trivial).

These files are XML files and are easy to parse with XmlReader or other XML parser

The section you are interested in is WinSAT \ WinSPR And all the numbers in the same section include eg.

  & lt; WinSAT & gt; & Lt; WinSPR & gt; & Lt; SystemScore & gt; 3.7 & lt; / SystemScore & gt; & Lt; MemoryScore & gt; 5.9 & lt; / MemoryScore & gt; & Lt; CpuScore & gt; 5.2 & lt; / CpuScore & gt; & Lt; CPUSubAggScore & gt; 5.1 & lt; / CPUSubAggScore & gt; & Lt; VideoEncodeScore & gt; 5.3 & lt; / VideoEncodeScore & gt; & Lt; GraphicsScore & gt; 3.9 & lt; / GraphicsScore & gt; & Lt; GamingScore & gt; 3.7 & lt; / GamingScore & gt; & Lt; DiskScore & gt; 5.2 & lt; / DiskScore & gt; & Lt; / WinSPR & gt; ...  

Comments