What is IL (Integrity level) of WindowsAppSDK apps? #3633
-
I see there are different types of apps can use WindowsAppSDK. In samples folder, I see following: What is the IL (integrity level) for these different types of apps? I am specifically interested in
Is cpp-winui-packaged app any different from UWP apps (which were using Windows.UI.XAML) other than new XAML controls? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You can do a test for each app by calling OpenProcessToken/GetTokenInformation with TokenIntegrityLevel |
Beta Was this translation helpful? Give feedback.
-
To start off, any unpackaged application, including unpackaged WinUI 3, is always going to run outside of an app container. Of course, the mandatory integrity level can always be set, but any unpackaged application will have the default of medium. |
Beta Was this translation helpful? Give feedback.
To start off, any unpackaged application, including unpackaged WinUI 3, is always going to run outside of an app container. Of course, the mandatory integrity level can always be set, but any unpackaged application will have the default of medium.
For packaged applications, whether the application runs in an app container depends completely on the package settings. If you look at the AppX manifest documentation entry for Application. It states the following under uap10:TrustLevel:
""appContainer" - the app runs in a lightweight app container; its process runs with an integrity level of low."
So, you can tell the package to run in an app container, the integrity also depends on this settin…