1 | /*
|
---|
2 | * Copyright 2004 Kevin Koltzau
|
---|
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 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef DO_NO_IMPORTS
|
---|
29 | import "ocidl.idl";
|
---|
30 | import "oleidl.idl";
|
---|
31 | import "oaidl.idl";
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | cpp_quote("#ifndef _NO_SCRIPT_GUIDS")
|
---|
35 |
|
---|
36 | cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
|
---|
37 | cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
|
---|
38 | cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
|
---|
39 |
|
---|
40 | cpp_quote("#endif")
|
---|
41 |
|
---|
42 | cpp_quote("#define SCRIPTPROP_NAME 0x00000000")
|
---|
43 | cpp_quote("#define SCRIPTPROP_MAJORVERSION 0x00000001")
|
---|
44 | cpp_quote("#define SCRIPTPROP_MINORVERSION 0x00000002")
|
---|
45 | cpp_quote("#define SCRIPTPROP_BUILDNUMBER 0x00000003")
|
---|
46 | cpp_quote("#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000")
|
---|
47 | cpp_quote("#define SCRIPTPROP_CATCHEXCEPTION 0x00001001")
|
---|
48 | cpp_quote("#define SCRIPTPROP_CONVERSIONLCID 0x00001002")
|
---|
49 | cpp_quote("#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003")
|
---|
50 | cpp_quote("#define SCRIPTPROP_DEBUGGER 0x00001100")
|
---|
51 | cpp_quote("#define SCRIPTPROP_JITDEBUG 0x00001101")
|
---|
52 | cpp_quote("#define SCRIPTPROP_INVOKEVERSIONING 0x00004000")
|
---|
53 |
|
---|
54 | cpp_quote("#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000")
|
---|
55 | cpp_quote("#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001")
|
---|
56 | cpp_quote("#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002")
|
---|
57 |
|
---|
58 | typedef enum tagSCRIPTSTATE {
|
---|
59 | SCRIPTSTATE_UNINITIALIZED = 0,
|
---|
60 | SCRIPTSTATE_STARTED = 1,
|
---|
61 | SCRIPTSTATE_CONNECTED = 2,
|
---|
62 | SCRIPTSTATE_DISCONNECTED = 3,
|
---|
63 | SCRIPTSTATE_CLOSED = 4,
|
---|
64 | SCRIPTSTATE_INITIALIZED = 5
|
---|
65 | } SCRIPTSTATE;
|
---|
66 |
|
---|
67 | typedef enum tagSCRIPTTHREADSTATE {
|
---|
68 | SCRIPTTHREADSTATE_NOTINSCRIPT = 0,
|
---|
69 | SCRIPTTHREADSTATE_RUNNING = 1
|
---|
70 | } SCRIPTTHREADSTATE;
|
---|
71 |
|
---|
72 | typedef DWORD SCRIPTTHREADID;
|
---|
73 | cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)")
|
---|
74 | cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)")
|
---|
75 | cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)")
|
---|
76 |
|
---|
77 | cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002")
|
---|
78 | cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004")
|
---|
79 | cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008")
|
---|
80 | cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040")
|
---|
81 | cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200")
|
---|
82 | cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400")
|
---|
83 | cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\")
|
---|
84 | cpp_quote(" SCRIPTITEM_ISVISIBLE | \\")
|
---|
85 | cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\")
|
---|
86 | cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\")
|
---|
87 | cpp_quote(" SCRIPTITEM_NOCODE | \\")
|
---|
88 | cpp_quote(" SCRIPTITEM_CODEONLY)")
|
---|
89 | cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010")
|
---|
90 | cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040")
|
---|
91 | cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)")
|
---|
92 | cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001")
|
---|
93 | cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002")
|
---|
94 | cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020")
|
---|
95 | cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040")
|
---|
96 | cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080")
|
---|
97 | cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\")
|
---|
98 | cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\")
|
---|
99 | cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\")
|
---|
100 | cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\")
|
---|
101 | cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE)")
|
---|
102 | cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080")
|
---|
103 | cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100")
|
---|
104 | cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200")
|
---|
105 | cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\")
|
---|
106 | cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\")
|
---|
107 | cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS)")
|
---|
108 | cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001")
|
---|
109 | cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002")
|
---|
110 | cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO)")
|
---|
111 | cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001")
|
---|
112 | cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002")
|
---|
113 | cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION)")
|
---|
114 | cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1")
|
---|
115 | cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2")
|
---|
116 | cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3")
|
---|
117 | cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4")
|
---|
118 |
|
---|
119 | [
|
---|
120 | object,
|
---|
121 | uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
|
---|
122 | pointer_default(unique)
|
---|
123 | ]
|
---|
124 | interface IActiveScriptError : IUnknown
|
---|
125 | {
|
---|
126 | HRESULT GetExceptionInfo(
|
---|
127 | [out] EXCEPINFO *pexcepinfo
|
---|
128 | );
|
---|
129 |
|
---|
130 | HRESULT GetSourcePosition(
|
---|
131 | [out] DWORD *pdwSourceContext,
|
---|
132 | [out] ULONG *pulLineNumber,
|
---|
133 | [out] LONG *plCharacterPosition
|
---|
134 | );
|
---|
135 |
|
---|
136 | HRESULT GetSourceLineText(
|
---|
137 | [out] BSTR *pbstrSourceLine
|
---|
138 | );
|
---|
139 | }
|
---|
140 |
|
---|
141 | [
|
---|
142 | object,
|
---|
143 | uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
|
---|
144 | pointer_default(unique)
|
---|
145 | ]
|
---|
146 | interface IActiveScriptSite : IUnknown
|
---|
147 | {
|
---|
148 | HRESULT GetLCID(
|
---|
149 | [out] LCID *plcid);
|
---|
150 |
|
---|
151 | HRESULT GetItemInfo(
|
---|
152 | [in] LPCOLESTR pstrName,
|
---|
153 | [in] DWORD dwReturnMask,
|
---|
154 | [out] IUnknown **ppiunkItem,
|
---|
155 | [out] ITypeInfo **ppti
|
---|
156 | );
|
---|
157 |
|
---|
158 | HRESULT GetDocVersionString(
|
---|
159 | [out] BSTR *pbstrVersion
|
---|
160 | );
|
---|
161 |
|
---|
162 | HRESULT OnScriptTerminate(
|
---|
163 | [in] const VARIANT *pvarResult,
|
---|
164 | [in] const EXCEPINFO *pexcepinfo
|
---|
165 | );
|
---|
166 |
|
---|
167 | HRESULT OnStateChange(
|
---|
168 | [in] SCRIPTSTATE ssScriptState
|
---|
169 | );
|
---|
170 |
|
---|
171 | HRESULT OnScriptError(
|
---|
172 | [in] IActiveScriptError *pscripterror
|
---|
173 | );
|
---|
174 |
|
---|
175 | HRESULT OnEnterScript(void);
|
---|
176 |
|
---|
177 | HRESULT OnLeaveScript(void);
|
---|
178 | }
|
---|
179 |
|
---|
180 | cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
|
---|
181 |
|
---|
182 | [
|
---|
183 | object,
|
---|
184 | uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
|
---|
185 | pointer_default(unique)
|
---|
186 | ]
|
---|
187 | interface IActiveScriptSiteWindow : IUnknown
|
---|
188 | {
|
---|
189 | HRESULT GetWindow(
|
---|
190 | [out] HWND *phwnd
|
---|
191 | );
|
---|
192 |
|
---|
193 | HRESULT EnableModeless(
|
---|
194 | [in] BOOL fEnable
|
---|
195 | );
|
---|
196 | }
|
---|
197 |
|
---|
198 | [
|
---|
199 | object,
|
---|
200 | uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
|
---|
201 | pointer_default(unique)
|
---|
202 | ]
|
---|
203 | interface IActiveScriptSiteInterruptPoll : IUnknown
|
---|
204 | {
|
---|
205 | HRESULT QueryContinue();
|
---|
206 | }
|
---|
207 |
|
---|
208 | [
|
---|
209 | object,
|
---|
210 | uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
|
---|
211 | pointer_default(unique)
|
---|
212 | ]
|
---|
213 | interface IActiveScript : IUnknown
|
---|
214 | {
|
---|
215 | HRESULT SetScriptSite(
|
---|
216 | [in] IActiveScriptSite *pass
|
---|
217 | );
|
---|
218 |
|
---|
219 | HRESULT GetScriptSite(
|
---|
220 | [in] REFIID riid,
|
---|
221 | [out, iid_is(riid)] void **ppvObject
|
---|
222 | );
|
---|
223 |
|
---|
224 | HRESULT SetScriptState(
|
---|
225 | [in] SCRIPTSTATE ss
|
---|
226 | );
|
---|
227 |
|
---|
228 | HRESULT GetScriptState(
|
---|
229 | [out] SCRIPTSTATE *pssState
|
---|
230 | );
|
---|
231 |
|
---|
232 | HRESULT Close(void);
|
---|
233 |
|
---|
234 | HRESULT AddNamedItem(
|
---|
235 | [in] LPCOLESTR pstrName,
|
---|
236 | [in] DWORD dwFlags
|
---|
237 | );
|
---|
238 |
|
---|
239 | HRESULT AddTypeLib(
|
---|
240 | [in] REFGUID rguidTypeLib,
|
---|
241 | [in] DWORD dwMajor,
|
---|
242 | [in] DWORD dwMinor,
|
---|
243 | [in] DWORD dwFlags
|
---|
244 | );
|
---|
245 |
|
---|
246 | HRESULT GetScriptDispatch(
|
---|
247 | [in] LPCOLESTR pstrItemName,
|
---|
248 | [out] IDispatch **ppdisp
|
---|
249 | );
|
---|
250 |
|
---|
251 | HRESULT GetCurrentScriptThreadID(
|
---|
252 | [out] SCRIPTTHREADID *pstidThread
|
---|
253 | );
|
---|
254 |
|
---|
255 | HRESULT GetScriptThreadID(
|
---|
256 | [in] DWORD dwWin32ThreadId,
|
---|
257 | [out] SCRIPTTHREADID *pstidThread
|
---|
258 | );
|
---|
259 |
|
---|
260 | HRESULT GetScriptThreadState(
|
---|
261 | [in] SCRIPTTHREADID stidThread,
|
---|
262 | [out] SCRIPTTHREADSTATE *pstsState
|
---|
263 | );
|
---|
264 |
|
---|
265 | HRESULT InterruptScriptThread(
|
---|
266 | [in] SCRIPTTHREADID stidThread,
|
---|
267 | [in] const EXCEPINFO *pexcepinfo,
|
---|
268 | [in] DWORD dwFlags
|
---|
269 | );
|
---|
270 |
|
---|
271 | HRESULT Clone(
|
---|
272 | [out] IActiveScript **ppscript
|
---|
273 | );
|
---|
274 | }
|
---|
275 |
|
---|
276 | cpp_quote("typedef IActiveScript *PIActiveScript;")
|
---|
277 |
|
---|
278 | [
|
---|
279 | object,
|
---|
280 | uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
|
---|
281 | pointer_default(unique)
|
---|
282 | ]
|
---|
283 | interface IActiveScriptParse32 : IUnknown
|
---|
284 | {
|
---|
285 | HRESULT InitNew(void);
|
---|
286 |
|
---|
287 | HRESULT AddScriptlet(
|
---|
288 | [in] LPCOLESTR pstrDefaultName,
|
---|
289 | [in] LPCOLESTR pstrCode,
|
---|
290 | [in] LPCOLESTR pstrItemName,
|
---|
291 | [in] LPCOLESTR pstrSubItemName,
|
---|
292 | [in] LPCOLESTR pstrEventName,
|
---|
293 | [in] LPCOLESTR pstrDelimiter,
|
---|
294 | [in] DWORD dwSourceContextCookie,
|
---|
295 | [in] ULONG ulStartingLineNumber,
|
---|
296 | [in] DWORD dwFlags,
|
---|
297 | [out] BSTR *pbstrName,
|
---|
298 | [out] EXCEPINFO *pexcepinfo
|
---|
299 | );
|
---|
300 |
|
---|
301 | HRESULT ParseScriptText(
|
---|
302 | [in] LPCOLESTR pstrCode,
|
---|
303 | [in] LPCOLESTR pstrItemName,
|
---|
304 | [in] IUnknown *punkContext,
|
---|
305 | [in] LPCOLESTR pstrDelimiter,
|
---|
306 | [in] DWORD dwSourceContextCookie,
|
---|
307 | [in] ULONG ulStartingLineNumber,
|
---|
308 | [in] DWORD dwFlags,
|
---|
309 | [out] VARIANT *pvarResult,
|
---|
310 | [out] EXCEPINFO *pexcepinfo
|
---|
311 | );
|
---|
312 | }
|
---|
313 |
|
---|
314 | [
|
---|
315 | object,
|
---|
316 | uuid(c7ef7658-e1ee-480e-97ea-d52cb4d76d17),
|
---|
317 | pointer_default(unique)
|
---|
318 | ]
|
---|
319 | interface IActiveScriptParse64 : IUnknown
|
---|
320 | {
|
---|
321 | HRESULT InitNew(void);
|
---|
322 |
|
---|
323 | HRESULT AddScriptlet(
|
---|
324 | [in] LPCOLESTR pstrDefaultName,
|
---|
325 | [in] LPCOLESTR pstrCode,
|
---|
326 | [in] LPCOLESTR pstrItemName,
|
---|
327 | [in] LPCOLESTR pstrSubItemName,
|
---|
328 | [in] LPCOLESTR pstrEventName,
|
---|
329 | [in] LPCOLESTR pstrDelimiter,
|
---|
330 | [in] DWORDLONG dwSourceContextCookie,
|
---|
331 | [in] ULONG ulStartingLineNumber,
|
---|
332 | [in] DWORD dwFlags,
|
---|
333 | [out] BSTR *pbstrName,
|
---|
334 | [out] EXCEPINFO *pexcepinfo
|
---|
335 | );
|
---|
336 |
|
---|
337 | HRESULT ParseScriptText(
|
---|
338 | [in] LPCOLESTR pstrCode,
|
---|
339 | [in] LPCOLESTR pstrItemName,
|
---|
340 | [in] IUnknown *punkContext,
|
---|
341 | [in] LPCOLESTR pstrDelimiter,
|
---|
342 | [in] DWORDLONG dwSourceContextCookie,
|
---|
343 | [in] ULONG ulStartingLineNumber,
|
---|
344 | [in] DWORD dwFlags,
|
---|
345 | [out] VARIANT *pvarResult,
|
---|
346 | [out] EXCEPINFO *pexcepinfo
|
---|
347 | );
|
---|
348 | }
|
---|
349 |
|
---|
350 | cpp_quote("#ifdef _WIN64")
|
---|
351 | cpp_quote("#define IActiveScriptParse IActiveScriptParse64")
|
---|
352 | cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64")
|
---|
353 | cpp_quote("#else")
|
---|
354 | cpp_quote("#define IActiveScriptParse IActiveScriptParse32")
|
---|
355 | cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32")
|
---|
356 | cpp_quote("#endif")
|
---|
357 |
|
---|
358 | cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
|
---|
359 |
|
---|
360 | [
|
---|
361 | object,
|
---|
362 | uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
|
---|
363 | pointer_default(unique)
|
---|
364 | ]
|
---|
365 | interface IActiveScriptParseProcedureOld32 : IUnknown
|
---|
366 | {
|
---|
367 | HRESULT ParseProcedureText(
|
---|
368 | [in] LPCOLESTR pstrCode,
|
---|
369 | [in] LPCOLESTR pstrFormalParams,
|
---|
370 | [in] LPCOLESTR pstrItemName,
|
---|
371 | [in] IUnknown *punkContext,
|
---|
372 | [in] LPCOLESTR pstrDelimiter,
|
---|
373 | [in] DWORD dwSourceContextCookie,
|
---|
374 | [in] ULONG ulStartingLineNumber,
|
---|
375 | [in] DWORD dwFlags,
|
---|
376 | [out] IDispatch **ppdisp
|
---|
377 | );
|
---|
378 | }
|
---|
379 |
|
---|
380 | [
|
---|
381 | object,
|
---|
382 | uuid(21f57128-08c9-4638-ba12-22d15d88dc5c),
|
---|
383 | pointer_default(unique)
|
---|
384 | ]
|
---|
385 | interface IActiveScriptParseProcedureOld64 : IUnknown
|
---|
386 | {
|
---|
387 | HRESULT ParseProcedureText(
|
---|
388 | [in] LPCOLESTR pstrCode,
|
---|
389 | [in] LPCOLESTR pstrFormalParams,
|
---|
390 | [in] LPCOLESTR pstrItemName,
|
---|
391 | [in] IUnknown *punkContext,
|
---|
392 | [in] LPCOLESTR pstrDelimiter,
|
---|
393 | [in] DWORDLONG dwSourceContextCookie,
|
---|
394 | [in] ULONG ulStartingLineNumber,
|
---|
395 | [in] DWORD dwFlags,
|
---|
396 | [out] IDispatch **ppdisp
|
---|
397 | );
|
---|
398 | }
|
---|
399 |
|
---|
400 | cpp_quote("#ifdef _WIN64")
|
---|
401 | cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64")
|
---|
402 | cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64")
|
---|
403 | cpp_quote("#else")
|
---|
404 | cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32")
|
---|
405 | cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32")
|
---|
406 | cpp_quote("#endif")
|
---|
407 |
|
---|
408 | [
|
---|
409 | object,
|
---|
410 | uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
|
---|
411 | pointer_default(unique)
|
---|
412 | ]
|
---|
413 | interface IActiveScriptParseProcedure32 : IUnknown
|
---|
414 | {
|
---|
415 | HRESULT ParseProcedureText(
|
---|
416 | [in] LPCOLESTR pstrCode,
|
---|
417 | [in] LPCOLESTR pstrFormalParams,
|
---|
418 | [in] LPCOLESTR pstrProcedureName,
|
---|
419 | [in] LPCOLESTR pstrItemName,
|
---|
420 | [in] IUnknown *punkContext,
|
---|
421 | [in] LPCOLESTR pstrDelimiter,
|
---|
422 | [in] DWORD dwSourceContextCookie,
|
---|
423 | [in] ULONG ulStartingLineNumber,
|
---|
424 | [in] DWORD dwFlags,
|
---|
425 | [out] IDispatch **ppdisp
|
---|
426 | );
|
---|
427 | }
|
---|
428 |
|
---|
429 | [
|
---|
430 | object,
|
---|
431 | uuid(c64713b6-e029-4cc5-9200-438b72890b6a),
|
---|
432 | pointer_default(unique)
|
---|
433 | ]
|
---|
434 | interface IActiveScriptParseProcedure64 : IUnknown
|
---|
435 | {
|
---|
436 | HRESULT ParseProcedureText(
|
---|
437 | [in] LPCOLESTR pstrCode,
|
---|
438 | [in] LPCOLESTR pstrFormalParams,
|
---|
439 | [in] LPCOLESTR pstrProcedureName,
|
---|
440 | [in] LPCOLESTR pstrItemName,
|
---|
441 | [in] IUnknown *punkContext,
|
---|
442 | [in] LPCOLESTR pstrDelimiter,
|
---|
443 | [in] DWORDLONG dwSourceContextCookie,
|
---|
444 | [in] ULONG ulStartingLineNumber,
|
---|
445 | [in] DWORD dwFlags,
|
---|
446 | [out] IDispatch **ppdisp
|
---|
447 | );
|
---|
448 | }
|
---|
449 |
|
---|
450 | cpp_quote("#ifdef _WIN64")
|
---|
451 | cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64")
|
---|
452 | cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64")
|
---|
453 | cpp_quote("#else")
|
---|
454 | cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32")
|
---|
455 | cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32")
|
---|
456 | cpp_quote("#endif")
|
---|
457 |
|
---|
458 | [
|
---|
459 | object,
|
---|
460 | uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2),
|
---|
461 | pointer_default(unique)
|
---|
462 | ]
|
---|
463 | interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32
|
---|
464 | {
|
---|
465 | }
|
---|
466 |
|
---|
467 | [
|
---|
468 | object,
|
---|
469 | uuid(fe7c4271-210c-448d-9f54-76dab7047b28),
|
---|
470 | pointer_default(unique)
|
---|
471 | ]
|
---|
472 | interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64
|
---|
473 | {
|
---|
474 | }
|
---|
475 |
|
---|
476 | cpp_quote("#ifdef _WIN64")
|
---|
477 | cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64")
|
---|
478 | cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64")
|
---|
479 | cpp_quote("#else")
|
---|
480 | cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32")
|
---|
481 | cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32")
|
---|
482 | cpp_quote("#endif")
|
---|
483 |
|
---|
484 | [
|
---|
485 | object,
|
---|
486 | uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
|
---|
487 | pointer_default(unique)
|
---|
488 | ]
|
---|
489 | interface IBindEventHandler : IUnknown
|
---|
490 | {
|
---|
491 | HRESULT BindHandler(
|
---|
492 | [in] LPCOLESTR pstrEvent,
|
---|
493 | [in] IDispatch *pdisp
|
---|
494 | );
|
---|
495 | }
|
---|
496 |
|
---|
497 | [
|
---|
498 | object,
|
---|
499 | uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
|
---|
500 | pointer_default(unique)
|
---|
501 | ]
|
---|
502 | interface IActiveScriptStats : IUnknown
|
---|
503 | {
|
---|
504 | HRESULT GetStat(
|
---|
505 | [in] DWORD stid,
|
---|
506 | [out] ULONG *pluHi,
|
---|
507 | [out] ULONG *pluLo
|
---|
508 | );
|
---|
509 |
|
---|
510 | HRESULT GetStatEx(
|
---|
511 | [in] REFGUID guid,
|
---|
512 | [out] ULONG *pluHi,
|
---|
513 | [out] ULONG *pluLo
|
---|
514 | );
|
---|
515 |
|
---|
516 | HRESULT ResetStats(void);
|
---|
517 | }
|
---|
518 |
|
---|
519 | [
|
---|
520 | object,
|
---|
521 | uuid(4954e0d0-fbc7-11d1-8410-006008c3fbfc),
|
---|
522 | pointer_default(unique)
|
---|
523 | ]
|
---|
524 | interface IActiveScriptProperty : IUnknown
|
---|
525 | {
|
---|
526 | HRESULT GetProperty(
|
---|
527 | [in] DWORD dwProperty,
|
---|
528 | [in] VARIANT *pvarIndex,
|
---|
529 | [out] VARIANT *pvarValue);
|
---|
530 |
|
---|
531 | HRESULT SetProperty(
|
---|
532 | [in] DWORD dwProperty,
|
---|
533 | [in] VARIANT *pvarIndex,
|
---|
534 | [in] VARIANT *pvarValue);
|
---|
535 | }
|
---|