MCPcopy Create free account
hub / github.com/MediaArea/MediaInfo / GetSparsePackage

Function GetSparsePackage

Source/WindowsPackageHelper/Installer.cpp:27–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27static 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
49static HRESULT RegisterSparsePackage()
50{

Callers 2

RegisterSparsePackageFunction · 0.85
UnregisterSparsePackageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected