c++windows-runtimewrl

WinRT c++: get package family name


On C# one can use the following code:

Package.Current.Id.FamilyName

I could not find anywhere information on how to do this using C++. It seems I need to use WRL for this.

I use Microsoft Visual C++ 2015.


Solution

  • Desktop-only apps can use GetPackageFamilyName