Merge pull request #14619 from briansull/emitter-cleanup
[platform/upstream/coreclr.git] / src / vm / appxutil.h
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 //
5
6 //
7 // Provides VM-specific AppX utility code.
8
9 #ifndef vm_AppXUtil_h
10 #define vm_AppXUtil_h
11
12 #include "../inc/appxutil.h"
13
14 namespace AppX
15 {
16 #if defined(FEATURE_APPX) && !defined(CROSSGEN_COMPILE)
17     //-----------------------------------------------------------------------------------
18     // Returns true if running in an AppX process with Designer Mode enabled.
19     bool IsAppXDesignMode();
20
21     // Return Application.Id
22     HRESULT GetApplicationId(LPCWSTR& rString);
23 #else // FEATURE_APPX
24     inline bool IsAppXDesignMode()
25     {
26         return false;
27     }
28 #endif // FEATURE_APPX && !CROSSGEN_COMPILE
29 }
30
31 #endif // vm_AppXUtil_h