| 25 | } |
| 26 | |
| 27 | static Package GetSparsePackage() |
| 28 | { |
| 29 | PackageManager packageManager; |
| 30 | IIterable<Package> packages; |
| 31 | |
| 32 | try { |
| 33 | packages = packageManager.FindPackages(); |
| 34 | } |
| 35 | catch (winrt::hresult_error) { |
| 36 | return NULL; |
| 37 | } |
| 38 | |
| 39 | for (const Package& package : packages) { |
| 40 | if (package.Id().Name() != SparsePackageName) |
| 41 | continue; |
| 42 | |
| 43 | return package; |
| 44 | } |
| 45 | |
| 46 | return NULL; |
| 47 | } |
| 48 | |
| 49 | static HRESULT RegisterSparsePackage() |
| 50 | { |
no outgoing calls
no test coverage detected