Forum Discussion
Sep 28, 2022
Shared Package Container and AppModel API
The PSF uses the AppModel API (appmodel.h and kernel.appcore.dll) to obtain information about the currently executing package it is in.
In a scenario with SPC, there are multiple packages, and ...
Aditi_Narvekar
Microsoft
Oct 10, 2022TIMOTHY_MANGAN So a couple of things:
- this code can be run outside of any package or container.
- it is non-UWP C++ code calling into the cppwinrt API. this code can be called in a "simple" win32 C++ program that consumes cppwinrt.
- this cppwinrt API surface is for querying and modifying the SPC definition, but, it does not provide "live" diagnostics of the container (e.g. it does not tell you which packages are actually currently in the SPC)
Oct 10, 2022
OK. Great! Guess I have some research to do on how I do this (I should have said non-managed C++ but hopefully not important).