ReactOS 0.4.15-dev-8339-g4028de8
vbscript_defs.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 Jacek Caban for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#define DISPID_GLOBAL_VBUSESYSTEM 0
20#define DISPID_GLOBAL_USESYSTEMDAYOFWEEK 1
21#define DISPID_GLOBAL_VBSUNDAY 2
22#define DISPID_GLOBAL_VBMONDAY 3
23#define DISPID_GLOBAL_VBTUESDAY 4
24#define DISPID_GLOBAL_VBWEDNESDAY 5
25#define DISPID_GLOBAL_VBTHURSDAY 6
26#define DISPID_GLOBAL_VBFRIDAY 7
27#define DISPID_GLOBAL_VBSATURDAY 8
28#define DISPID_GLOBAL_VBFIRSTJAN1 9
29#define DISPID_GLOBAL_VBFIRSTFOURDAYS 10
30#define DISPID_GLOBAL_VBFIRSTFULLWEEK 11
31#define DISPID_GLOBAL_VBOKONLY 12
32#define DISPID_GLOBAL_VBOKCANCEL 13
33#define DISPID_GLOBAL_VBABORTRETRYIGNORE 14
34#define DISPID_GLOBAL_VBYESNOCANCEL 15
35#define DISPID_GLOBAL_VBYESNO 16
36#define DISPID_GLOBAL_VBRETRYCANCEL 17
37#define DISPID_GLOBAL_VBCRITICAL 18
38#define DISPID_GLOBAL_VBQUESTION 19
39#define DISPID_GLOBAL_VBEXCLAMATION 20
40#define DISPID_GLOBAL_VBINFORMATION 21
41#define DISPID_GLOBAL_VBDEFAULTBUTTON1 22
42#define DISPID_GLOBAL_VBDEFAULTBUTTON2 23
43#define DISPID_GLOBAL_VBDEFAULTBUTTON3 24
44#define DISPID_GLOBAL_VBDEFAULTBUTTON4 25
45#define DISPID_GLOBAL_VBAPPLICATIONMODAL 26
46#define DISPID_GLOBAL_VBSYSTEMMODAL 27
47#define DISPID_GLOBAL_VBOK 28
48#define DISPID_GLOBAL_VBCANCEL 29
49#define DISPID_GLOBAL_VBABORT 30
50#define DISPID_GLOBAL_VBRETRY 31
51#define DISPID_GLOBAL_VBIGNORE 32
52#define DISPID_GLOBAL_VBYES 33
53#define DISPID_GLOBAL_VBNO 34
54#define DISPID_GLOBAL_VBEMPTY 35
55#define DISPID_GLOBAL_VBNULL 36
56#define DISPID_GLOBAL_VBINTEGER 37
57#define DISPID_GLOBAL_VBLONG 38
58#define DISPID_GLOBAL_VBSINGLE 39
59#define DISPID_GLOBAL_VBDOUBLE 40
60#define DISPID_GLOBAL_VBCURRENCY 41
61#define DISPID_GLOBAL_VBDATE 42
62#define DISPID_GLOBAL_VBSTRING 43
63#define DISPID_GLOBAL_VBOBJECT 44
64#define DISPID_GLOBAL_VBERROR 45
65#define DISPID_GLOBAL_VBBOOLEAN 46
66#define DISPID_GLOBAL_VBVARIANT 47
67#define DISPID_GLOBAL_VBDATAOBJECT 48
68#define DISPID_GLOBAL_VBDECIMAL 49
69#define DISPID_GLOBAL_VBBYTE 50
70#define DISPID_GLOBAL_VBARRAY 51
71#define DISPID_GLOBAL_VBTRUE 52
72#define DISPID_GLOBAL_VBFALSE 53
73#define DISPID_GLOBAL_VBUSEDEFAULT 54
74#define DISPID_GLOBAL_VBBINARYCOMPARE 55
75#define DISPID_GLOBAL_VBTEXTCOMPARE 56
76#define DISPID_GLOBAL_VBDATABASECOMPARE 57
77#define DISPID_GLOBAL_VBGENERALDATE 58
78#define DISPID_GLOBAL_VBLONGDATE 59
79#define DISPID_GLOBAL_VBSHORTDATE 60
80#define DISPID_GLOBAL_VBLONGTIME 61
81#define DISPID_GLOBAL_VBSHORTTIME 62
82#define DISPID_GLOBAL_VBOBJECTERROR 63
83#define DISPID_GLOBAL_VBBLACK 64
84#define DISPID_GLOBAL_VBBLUE 65
85#define DISPID_GLOBAL_VBCYAN 66
86#define DISPID_GLOBAL_VBGREEN 67
87#define DISPID_GLOBAL_VBMAGENTA 68
88#define DISPID_GLOBAL_VBRED 69
89#define DISPID_GLOBAL_VBWHITE 70
90#define DISPID_GLOBAL_VBYELLOW 71
91#define DISPID_GLOBAL_VBCR 72
92#define DISPID_GLOBAL_VBCRLF 73
93#define DISPID_GLOBAL_VBNEWLINE 74
94#define DISPID_GLOBAL_VBFORMFEED 75
95#define DISPID_GLOBAL_VBLF 76
96#define DISPID_GLOBAL_VBNULLCHAR 77
97#define DISPID_GLOBAL_VBNULLSTRING 78
98#define DISPID_GLOBAL_VBTAB 79
99#define DISPID_GLOBAL_VBVERTICALTAB 80
100
101#define DISPID_GLOBAL_VBMSGBOXHELPBUTTON 207
102#define DISPID_GLOBAL_VBMSGBOXSETFOREGROUND 208
103#define DISPID_GLOBAL_VBMSGBOXRIGHT 209
104#define DISPID_GLOBAL_VBMSGBOXRTLREADING 210
105
106#define DISPID_GLOBAL_CCUR 100
107#define DISPID_GLOBAL_CINT 101
108#define DISPID_GLOBAL_CLNG 102
109#define DISPID_GLOBAL_CBOOL 103
110#define DISPID_GLOBAL_CBYTE 104
111#define DISPID_GLOBAL_CDATE 105
112#define DISPID_GLOBAL_CDBL 106
113#define DISPID_GLOBAL_CSNG 107
114#define DISPID_GLOBAL_CSTR 108
115#define DISPID_GLOBAL_HEX 109
116#define DISPID_GLOBAL_OCT 110
117#define DISPID_GLOBAL_VARTYPE 111
118#define DISPID_GLOBAL_ISDATE 112
119#define DISPID_GLOBAL_ISEMPTY 113
120#define DISPID_GLOBAL_ISNULL 114
121#define DISPID_GLOBAL_ISNUMERIC 115
122#define DISPID_GLOBAL_ISARRAY 116
123#define DISPID_GLOBAL_ISOBJECT 117
124#define DISPID_GLOBAL_ATN 118
125#define DISPID_GLOBAL_COS 119
126#define DISPID_GLOBAL_SIN 120
127#define DISPID_GLOBAL_TAN 121
128#define DISPID_GLOBAL_EXP 122
129#define DISPID_GLOBAL_LOG 123
130#define DISPID_GLOBAL_SQR 124
131#define DISPID_GLOBAL_RANDOMIZE 125
132#define DISPID_GLOBAL_RND 126
133#define DISPID_GLOBAL_TIMER 127
134#define DISPID_GLOBAL_LBOUND 128
135#define DISPID_GLOBAL_UBOUND 129
136#define DISPID_GLOBAL_RGB 130
137#define DISPID_GLOBAL_LEN 131
138#define DISPID_GLOBAL_LENB 132
139#define DISPID_GLOBAL_LEFT 133
140#define DISPID_GLOBAL_LEFTB 134
141#define DISPID_GLOBAL_RIGHT 135
142#define DISPID_GLOBAL_RIGHTB 136
143#define DISPID_GLOBAL_MID 137
144#define DISPID_GLOBAL_MIDB 138
145#define DISPID_GLOBAL_STRCOMP 139
146#define DISPID_GLOBAL_LCASE 140
147#define DISPID_GLOBAL_UCASE 141
148#define DISPID_GLOBAL_LTRIM 142
149#define DISPID_GLOBAL_RTRIM 143
150#define DISPID_GLOBAL_TRIM 144
151#define DISPID_GLOBAL_SPACE 145
152#define DISPID_GLOBAL_STRING 146
153#define DISPID_GLOBAL_INSTR 147
154#define DISPID_GLOBAL_INSTRB 148
155#define DISPID_GLOBAL_ASCB 149
156#define DISPID_GLOBAL_CHRB 150
157#define DISPID_GLOBAL_ASC 151
158#define DISPID_GLOBAL_CHR 152
159#define DISPID_GLOBAL_ASCW 153
160#define DISPID_GLOBAL_CHRW 154
161#define DISPID_GLOBAL_ABS 155
162#define DISPID_GLOBAL_FIX 156
163#define DISPID_GLOBAL_INT 157
164#define DISPID_GLOBAL_SGN 158
165#define DISPID_GLOBAL_NOW 159
166#define DISPID_GLOBAL_DATE 160
167#define DISPID_GLOBAL_TIME 161
168#define DISPID_GLOBAL_DAY 162
169#define DISPID_GLOBAL_MONTH 163
170#define DISPID_GLOBAL_WEEKDAY 164
171#define DISPID_GLOBAL_YEAR 165
172#define DISPID_GLOBAL_HOUR 166
173#define DISPID_GLOBAL_MINUTE 167
174#define DISPID_GLOBAL_SECOND 168
175#define DISPID_GLOBAL_DATEVALUE 169
176#define DISPID_GLOBAL_TIMEVALUE 170
177#define DISPID_GLOBAL_DATESERIAL 171
178#define DISPID_GLOBAL_TIMESERIAL 172
179#define DISPID_GLOBAL_INPUTBOX 173
180#define DISPID_GLOBAL_MSGBOX 174
181#define DISPID_GLOBAL_CREATEOBJECT 175
182#define DISPID_GLOBAL_GETOBJECT 176
183#define DISPID_GLOBAL_DATEADD 177
184#define DISPID_GLOBAL_DATEDIFF 178
185#define DISPID_GLOBAL_DATEPART 179
186#define DISPID_GLOBAL_TYPENAME 180
187#define DISPID_GLOBAL_ARRAY 181
188#define DISPID_GLOBAL_ERASE 182
189#define DISPID_GLOBAL_FILTER 183
190#define DISPID_GLOBAL_JOIN 184
191#define DISPID_GLOBAL_SPLIT 185
192#define DISPID_GLOBAL_REPLACE 186
193#define DISPID_GLOBAL_STRREVERSE 187
194#define DISPID_GLOBAL_INSTRREV 188
195#define DISPID_GLOBAL_LOADPICTURE 189
196#define DISPID_GLOBAL_SCRIPTENGINE 190
197#define DISPID_GLOBAL_SCRIPTENGINEMAJORVERSION 191
198#define DISPID_GLOBAL_SCRIPTENGINEMINORVERSION 192
199#define DISPID_GLOBAL_SCRIPTENGINEBUILDVERSION 193
200#define DISPID_GLOBAL_FORMATNUMBER 194
201#define DISPID_GLOBAL_FORMATCURRENCY 195
202#define DISPID_GLOBAL_FORMATPERCENT 196
203#define DISPID_GLOBAL_FORMATDATETIME 197
204#define DISPID_GLOBAL_WEEKDAYNAME 198
205#define DISPID_GLOBAL_MONTHNAME 199
206#define DISPID_GLOBAL_ROUND 200
207#define DISPID_GLOBAL_ESCAPE 201
208#define DISPID_GLOBAL_UNESCAPE 202
209#define DISPID_GLOBAL_EVAL 203
210#define DISPID_GLOBAL_EXECUTE 204
211#define DISPID_GLOBAL_EXECUTEGLOBAL 205
212#define DISPID_GLOBAL_GETREF 206
213
214#define DISPID_ERR_DESCRIPTION 0
215#define DISPID_ERR_HELPCONTEXT 1
216#define DISPID_ERR_HELPFILE 2
217#define DISPID_ERR_NUMBER 3
218#define DISPID_ERR_SOURCE 4
219#define DISPID_ERR_CLEAR 100
220#define DISPID_ERR_RAISE 101
221
222#define DISPID_SUBMATCHES_COUNT 1
223
224#define DISPID_MATCHCOLLECTION_COUNT 1
225
226#define DISPID_MATCH_FIRSTINDEX 10001
227#define DISPID_MATCH_LENGTH 10002
228#define DISPID_MATCH_SUBMATCHES 10003
229
230#define DISPID_REGEXP_PATTERN 10001
231#define DISPID_REGEXP_IGNORECASE 10002
232#define DISPID_REGEXP_GLOBAL 10003
233#define DISPID_REGEXP_EXECUTE 10004
234#define DISPID_REGEXP_TEST 10005
235#define DISPID_REGEXP_REPLACE 10006
236#define DISPID_REGEXP_MULTILINE 10007
237
238/* error codes */
239#define VBSE_ILLEGAL_FUNC_CALL 5
240#define VBSE_OVERFLOW 6
241#define VBSE_OUT_OF_MEMORY 7
242#define VBSE_OUT_OF_BOUNDS 9
243#define VBSE_ARRAY_LOCKED 10
244#define VBSE_TYPE_MISMATCH 13
245#define VBSE_FILE_NOT_FOUND 53
246#define VBSE_IO_ERROR 57
247#define VBSE_FILE_ALREADY_EXISTS 58
248#define VBSE_DISK_FULL 61
249#define VBSE_TOO_MANY_FILES 67
250#define VBSE_PERMISSION_DENIED 70
251#define VBSE_PATH_FILE_ACCESS 75
252#define VBSE_PATH_NOT_FOUND 76
253#define VBSE_OBJECT_VARIABLE_NOT_SET 91
254#define VBSE_ILLEGAL_NULL_USE 94
255#define VBSE_CANT_CREATE_TMP_FILE 322
256#define VBSE_CANT_CREATE_OBJECT 429
257#define VBSE_OLE_NOT_SUPPORTED 430
258#define VBSE_OLE_FILE_NOT_FOUND 432
259#define VBSE_OLE_NO_PROP_OR_METHOD 438
260#define VBSE_ACTION_NOT_SUPPORTED 445
261#define VBSE_NAMED_ARGS_NOT_SUPPORTED 446
262#define VBSE_LOCALE_SETTING_NOT_SUPPORTED 447
263#define VBSE_NAMED_PARAM_NOT_FOUND 448
264#define VBSE_PARAMETER_NOT_OPTIONAL 449
265#define VBSE_FUNC_ARITY_MISMATCH 450
266#define VBSE_NOT_ENUM 451
267#define VBSE_INVALID_DLL_FUNCTION_NAME 453
268#define VBSE_INVALID_TYPELIB_VARIABLE 458
269#define VBSE_SERVER_NOT_FOUND 462
270
271#define VBS_COMPILE_ERROR 4096
272#define VBS_RUNTIME_ERROR 4097
273#define VBS_UNKNOWN_RUNTIME_ERROR 4098