diff options
Diffstat (limited to 'src/vm/appxutil.h')
-rw-r--r-- | src/vm/appxutil.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/vm/appxutil.h b/src/vm/appxutil.h new file mode 100644 index 0000000000..1e18fcce04 --- /dev/null +++ b/src/vm/appxutil.h @@ -0,0 +1,31 @@ +// 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. +// + +// +// Provides VM-specific AppX utility code. + +#ifndef vm_AppXUtil_h +#define vm_AppXUtil_h + +#include "../inc/appxutil.h" + +namespace AppX +{ +#if defined(FEATURE_APPX) && !defined(CROSSGEN_COMPILE) + //----------------------------------------------------------------------------------- + // Returns true if running in an AppX process with Designer Mode enabled. + bool IsAppXDesignMode(); + + // Return Application.Id + HRESULT GetApplicationId(LPCWSTR& rString); +#else // FEATURE_APPX + inline bool IsAppXDesignMode() + { + return false; + } +#endif // FEATURE_APPX && !CROSSGEN_COMPILE +} + +#endif // vm_AppXUtil_h |