forked from ClearFoundry/ClearScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindowsScriptEngineFlags.cs
More file actions
76 lines (66 loc) · 3.13 KB
/
WindowsScriptEngineFlags.cs
File metadata and controls
76 lines (66 loc) · 3.13 KB
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
68
69
70
71
72
73
74
75
76
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System;
namespace Microsoft.ClearScript.Windows
{
/// <summary>
/// Defines options for initializing a new Windows Script engine instance.
/// </summary>
[Flags]
public enum WindowsScriptEngineFlags
{
/// <summary>
/// Specifies that no options are selected.
/// </summary>
None = 0,
/// <summary>
/// Specifies that script debugging features are to be enabled.
/// </summary>
EnableDebugging = 0x00000001,
/// <summary>
/// Specifies that Just-In-Time script debugging is to be enabled. This option is ignored
/// if <see cref="EnableDebugging"/> is not specified.
/// </summary>
EnableJITDebugging = 0x00000002,
/// <summary>
/// Specifies that smart source document management is to be disabled. This option is
/// ignored if <see cref="EnableDebugging"/> is not specified.
/// </summary>
DisableSourceManagement = 0x00000004,
/// <summary>
/// Specifies that script language features that enhance standards compliance are to be
/// enabled. This option only affects <see cref="JScriptEngine"/>.
/// </summary>
EnableStandardsMode = 0x00000008,
/// <summary>
/// Specifies that <c>null</c> is to be marshaled as a variant of type <c>VT_DISPATCH</c>.
/// This option does not affect field, property, or method return values declared as
/// <see cref="object"/>, <see cref="string"/>, nullable <see cref="bool"/>, or nullable
/// numeric types.
/// </summary>
MarshalNullAsDispatch = 0x00000010,
/// <summary>
/// Specifies that <see cref="decimal"/> values are to be marshaled as variants of type
/// <c>VT_CY</c>.
/// </summary>
MarshalDecimalAsCurrency = 0x00000020,
/// <summary>
/// Specifies that managed arrays that are passed or returned to script code are to be
/// converted to script arrays and marshaled as variants of type <c>VT_ARRAY</c>. In
/// VBScript these objects are the native array type. JScript code can use the
/// <see href="http://msdn.microsoft.com/en-us/library/y39d47w8(v=vs.84).aspx">VBArray</see>
/// object to to access them.
/// </summary>
MarshalArraysByValue = 0x00000040,
/// <summary>
/// When <see cref="EnableStandardsMode"/> is specified, the ClearScript library uses
/// virtual method table patching to support JScript-specific
/// <see href="https://msdn.microsoft.com/en-us/library/sky96ah7(VS.94).aspx">IDispatchEx</see>
/// extensions that otherwise interfere with some host object functionality. Virtual method
/// table patching is a very low-level mechanism with global effect. This option specifies
/// that virtual method table patching is not to be enabled on behalf of the current
/// <see cref="JScriptEngine"/> instance.
/// </summary>
DoNotEnableVTablePatching = 0x00000080,
}
}