I'm currently playing around with Windows IoT Core and I'm trying to develop a C++ based UWP app for Raspberry Pi 3b. I want to reboot/shutdown the Pi from inside the app but I'm not sure how I can do this.
The UWP api reference lists the C# Windows.System which corresponds to C++ Windows::System. But it seems that not all classes are available in C++. The UWP samples (C#) utilize the ShutdownManager class for reboot and shutdown but it is not existing in the C++ namespace. Now I'm not sure how I'm supposed to implement this functionality by utilizing the API. Are there any other possibilities to solve this for C++?
Solution: I was missing the Windows IoT Extensions for the UWP. These have to manually added in Visual Studio by right clicking the Project, then Add -> Reference -> Universal Windows -> Extensions. Now I have access to the namespace and was able to reboot and shutdown my device.