summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/src/System/ApplicationModel.Windows.cs
blob: ea1e01742433a1bb858fa2055d02b67dfc2c80d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace System
{
    internal static class ApplicationModel
    {
#if FEATURE_APPX
        // Cache the value in readonly static that can be optimized out by the JIT
        internal readonly static bool IsUap = IsAppXProcess();

        [DllImport(JitHelpers.QCall, CharSet = CharSet.Unicode)]
        private static extern bool IsAppXProcess();
#endif
    }
}