summaryrefslogtreecommitdiff
path: root/src/vm/appxutil.h
blob: 1e18fcce04b80ef4665ab352fcd505fc75dd859a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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