Cobra91151
Cobra91151

Reputation: 650

Get system information UWP

I want to develop the Universal Windows Application which will display the system information such as RAM capacity, GPU information, Drives and so on. I used the WMI for Win32 (Desktop) app. From the official UWP documentation I can't use the WMI. So how to get such information? Thanks.

Upvotes: 1

Views: 1205

Answers (1)

Sunteen Wu
Sunteen Wu

Reputation: 10627

which will display the system information such as RAM capacity, GPU information, Drives and so on.

For RAM, UWP can only access to information on current app's memory usage by using the MemoryManager Class.

For GPU information, currently there is no API can access GPU directly in UWP app. You may need to create a UWP app with DirectX and access the information by DirectX. You may find some relative samples here.

For access any one local drive, you need to use FileOpenPicker since UWP app need File access permissions . And you can find the sample here.

As you can already access the information you want in a Win32 app, you could also try to use Desktop Bridge to convert the Win32 desktop app to UWP.

Upvotes: 1

Related Questions