summaryrefslogtreecommitdiff
path: root/src/binder/inc/variables.hpp
blob: 3a681edc97bfa5b283c7cdb0dd709bb86e9194b6 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
// ============================================================
//
// Variables.hpp
//


//
// Defines the Variables class
//
// ============================================================

#ifndef __BINDER__VARIABLES_HPP__
#define __BINDER__VARIABLES_HPP__

#include "bindertypes.hpp"

namespace BINDER_SPACE
{
    class Variables
    {
    public:
        Variables();
        ~Variables();

        HRESULT Init();

        // ApplicationContext string constants
        SString AppBaseURL;
        SString DynamicDirectory;
        SString DynamicBaseDirectory;
        SString AppName;
        SString AppConfigFile;
        SString AppDomainId;

        // AssemblyBinder string constants
        SString httpURLPrefix;

        // AssemblyName string constants
        SString architectureMSIL;
        SString architectureX86;
        SString architectureAMD64;
        SString architectureARM;
        SString architectureARM64;
        SString cultureNeutral;
        SString emptyString;
        SString mscorlib;

#ifdef FEATURE_VERSIONING_LOG
        BOOL fLoggingNeeded;
        SString logPath;
#endif // FEATURE_VERSIONING_LOG
#ifndef DACCESS_COMPILE
#ifdef BINDER_DEBUG_LOG
        CRITSEC_COOKIE m_logCS;
        HandleHolder m_hDebugLogFile;
#endif // BINDER_DEBUG_LOG
#endif
    };

    extern Variables *g_BinderVariables;
};

#endif