4

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.

Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43

2 Answers2

1

Desktop-only apps can use GetPackageFamilyName

Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43
1

You can use C++ language projection for WinRT, more details here. Then you can use Package::Current().Id().FamilyName() to get package family name.

Raymond Chen
  • 44,448
  • 11
  • 96
  • 135
Soumya Mahunt
  • 2,148
  • 12
  • 30