-1

In a UWP application, developed in C#, how can I get information about the computer's specifications (CPU, GPU, RAM and HDD / SSD)?

For example:

  • CPU: Intel Core i7 xxxx
  • RAM: 8GB
  • GPU: Nvidia GeForce xxx
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Luís
  • 157
  • 2
  • 10
  • Possible duplicate of [Get pc (system) information on windows machine - C# script](https://stackoverflow.com/questions/4742389/get-pc-system-information-on-windows-machine-c-sharp-script) – Wayne Phipps Jan 20 '19 at 14:58
  • 1
    @WaynePhipps but does this also work for UWP applications? – Luís Jan 20 '19 at 15:02
  • This does: https://stackoverflow.com/questions/54195953/how-to-get-system-information-in-a-uwp-aplication also referenced here: https://learn.microsoft.com/en-us/windows/communitytoolkit/helpers/systeminformation – Wayne Phipps Jan 20 '19 at 15:06
  • @WaynePhipps I already use this in my application, but it does not give me the information I want (CPU, GPU, storage, etc.) – Luís Jan 20 '19 at 15:08
  • 1
    Possible duplicate of [How to get system information in a uwp aplication?](https://stackoverflow.com/questions/54195953/how-to-get-system-information-in-a-uwp-aplication) – Ian Kemp Jan 20 '19 at 19:52

1 Answers1

0

Unfortunately, there is currently no public API allowing you to gather the hardware information of the device.

For CPU you can get it usage using SystemCpuUsage class.

For information about memory usage try MemoryManager.

Finally, you might be able to get some GPU info via DirectX.

Martin Zikmund
  • 38,440
  • 7
  • 70
  • 91