kernel32: Added support for terminfo/termcap in console code.
[wine.git] / include / activscp.idl
blob9be7ec45617945ea660e3a222b2068ae16d72db5
1 /*
2 * Copyright 2004 Kevin Koltzau
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.
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.
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
19 #ifndef DO_NO_IMPORTS
20 import "ocidl.idl";
21 import "oleidl.idl";
22 import "oaidl.idl";
23 #endif
25 cpp_quote("#ifndef _NO_SCRIPT_GUIDS")
27 cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
28 cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
29 cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
31 cpp_quote("#endif")
33 cpp_quote("#define SCRIPTPROP_NAME 0x00000000")
34 cpp_quote("#define SCRIPTPROP_MAJORVERSION 0x00000001")
35 cpp_quote("#define SCRIPTPROP_MINORVERSION 0x00000002")
36 cpp_quote("#define SCRIPTPROP_BUILDNUMBER 0x00000003")
37 cpp_quote("#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000")
38 cpp_quote("#define SCRIPTPROP_CATCHEXCEPTION 0x00001001")
39 cpp_quote("#define SCRIPTPROP_CONVERSIONLCID 0x00001002")
40 cpp_quote("#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003")
41 cpp_quote("#define SCRIPTPROP_DEBUGGER 0x00001100")
42 cpp_quote("#define SCRIPTPROP_JITDEBUG 0x00001101")
43 cpp_quote("#define SCRIPTPROP_INVOKEVERSIONING 0x00004000")
45 cpp_quote("#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000")
46 cpp_quote("#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001")
47 cpp_quote("#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002")
49 typedef enum tagSCRIPTSTATE {
50 SCRIPTSTATE_UNINITIALIZED = 0,
51 SCRIPTSTATE_STARTED = 1,
52 SCRIPTSTATE_CONNECTED = 2,
53 SCRIPTSTATE_DISCONNECTED = 3,
54 SCRIPTSTATE_CLOSED = 4,
55 SCRIPTSTATE_INITIALIZED = 5
56 } SCRIPTSTATE;
58 typedef enum tagSCRIPTTHREADSTATE {
59 SCRIPTTHREADSTATE_NOTINSCRIPT = 0,
60 SCRIPTTHREADSTATE_RUNNING = 1
61 } SCRIPTTHREADSTATE;
63 typedef DWORD SCRIPTTHREADID;
64 cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)")
65 cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)")
66 cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)")
68 cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002")
69 cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004")
70 cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008")
71 cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040")
72 cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200")
73 cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400")
74 cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\")
75 cpp_quote(" SCRIPTITEM_ISVISIBLE | \\")
76 cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\")
77 cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\")
78 cpp_quote(" SCRIPTITEM_NOCODE | \\")
79 cpp_quote(" SCRIPTITEM_CODEONLY)")
80 cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010")
81 cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040")
82 cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)")
83 cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001")
84 cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002")
85 cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020")
86 cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040")
87 cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080")
88 cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\")
89 cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\")
90 cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\")
91 cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\")
92 cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE)")
93 cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080")
94 cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100")
95 cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200")
96 cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\")
97 cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\")
98 cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS)")
99 cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001")
100 cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002")
101 cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO)")
102 cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001")
103 cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002")
104 cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION)")
105 cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1")
106 cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2")
107 cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3")
108 cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4")
111 object,
112 uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
113 pointer_default(unique)
115 interface IActiveScriptError : IUnknown
117 HRESULT GetExceptionInfo(
118 [out] EXCEPINFO *pexcepinfo
121 HRESULT GetSourcePosition(
122 [out] DWORD *pdwSourceContext,
123 [out] ULONG *pulLineNumber,
124 [out] LONG *plCharacterPosition
127 HRESULT GetSourceLineText(
128 [out] BSTR *pbstrSourceLine
133 object,
134 uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
135 pointer_default(unique)
137 interface IActiveScriptSite : IUnknown
139 HRESULT GetLCID(
140 [out] LCID *plcid);
142 HRESULT GetItemInfo(
143 [in] LPCOLESTR pstrName,
144 [in] DWORD dwReturnMask,
145 [out] IUnknown **ppiunkItem,
146 [out] ITypeInfo **ppti
149 HRESULT GetDocVersionString(
150 [out] BSTR *pbstrVersion
153 HRESULT OnScriptTerminate(
154 [in] const VARIANT *pvarResult,
155 [in] const EXCEPINFO *pexcepinfo
158 HRESULT OnStateChange(
159 [in] SCRIPTSTATE ssScriptState
162 HRESULT OnScriptError(
163 [in] IActiveScriptError *pscripterror
166 HRESULT OnEnterScript(void);
168 HRESULT OnLeaveScript(void);
171 cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
174 object,
175 uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
176 pointer_default(unique)
178 interface IActiveScriptSiteWindow : IUnknown
180 HRESULT GetWindow(
181 [out] HWND *phwnd
184 HRESULT EnableModeless(
185 [in] BOOL fEnable
190 object,
191 uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
192 pointer_default(unique)
194 interface IActiveScriptSiteInterruptPoll : IUnknown
196 HRESULT QueryContinue();
200 object,
201 uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
202 pointer_default(unique)
204 interface IActiveScript : IUnknown
206 HRESULT SetScriptSite(
207 [in] IActiveScriptSite *pass
210 HRESULT GetScriptSite(
211 [in] REFIID riid,
212 [out, iid_is(riid)] void **ppvObject
215 HRESULT SetScriptState(
216 [in] SCRIPTSTATE ss
219 HRESULT GetScriptState(
220 [out] SCRIPTSTATE *pssState
223 HRESULT Close(void);
225 HRESULT AddNamedItem(
226 [in] LPCOLESTR pstrName,
227 [in] DWORD dwFlags
230 HRESULT AddTypeLib(
231 [in] REFGUID rguidTypeLib,
232 [in] DWORD dwMajor,
233 [in] DWORD dwMinor,
234 [in] DWORD dwFlags
237 HRESULT GetScriptDispatch(
238 [in] LPCOLESTR pstrItemName,
239 [out] IDispatch **ppdisp
242 HRESULT GetCurrentScriptThreadID(
243 [out] SCRIPTTHREADID *pstidThread
246 HRESULT GetScriptThreadID(
247 [in] DWORD dwWin32ThreadId,
248 [out] SCRIPTTHREADID *pstidThread
251 HRESULT GetScriptThreadState(
252 [in] SCRIPTTHREADID stidThread,
253 [out] SCRIPTTHREADSTATE *pstsState
256 HRESULT InterruptScriptThread(
257 [in] SCRIPTTHREADID stidThread,
258 [in] const EXCEPINFO *pexcepinfo,
259 [in] DWORD dwFlags
262 HRESULT Clone(
263 [out] IActiveScript **ppscript
267 cpp_quote("typedef IActiveScript *PIActiveScript;")
270 object,
271 uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
272 pointer_default(unique)
274 interface IActiveScriptParse32 : IUnknown
276 HRESULT InitNew(void);
278 HRESULT AddScriptlet(
279 [in] LPCOLESTR pstrDefaultName,
280 [in] LPCOLESTR pstrCode,
281 [in] LPCOLESTR pstrItemName,
282 [in] LPCOLESTR pstrSubItemName,
283 [in] LPCOLESTR pstrEventName,
284 [in] LPCOLESTR pstrDelimiter,
285 [in] DWORD dwSourceContextCookie,
286 [in] ULONG ulStartingLineNumber,
287 [in] DWORD dwFlags,
288 [out] BSTR *pbstrName,
289 [out] EXCEPINFO *pexcepinfo
292 HRESULT ParseScriptText(
293 [in] LPCOLESTR pstrCode,
294 [in] LPCOLESTR pstrItemName,
295 [in] IUnknown *punkContext,
296 [in] LPCOLESTR pstrDelimiter,
297 [in] DWORD dwSourceContextCookie,
298 [in] ULONG ulStartingLineNumber,
299 [in] DWORD dwFlags,
300 [out] VARIANT *pvarResult,
301 [out] EXCEPINFO *pexcepinfo
306 object,
307 uuid(c7ef7658-e1ee-480e-97ea-d52cb4d76d17),
308 pointer_default(unique)
310 interface IActiveScriptParse64 : IUnknown
312 HRESULT InitNew(void);
314 HRESULT AddScriptlet(
315 [in] LPCOLESTR pstrDefaultName,
316 [in] LPCOLESTR pstrCode,
317 [in] LPCOLESTR pstrItemName,
318 [in] LPCOLESTR pstrSubItemName,
319 [in] LPCOLESTR pstrEventName,
320 [in] LPCOLESTR pstrDelimiter,
321 [in] DWORDLONG dwSourceContextCookie,
322 [in] ULONG ulStartingLineNumber,
323 [in] DWORD dwFlags,
324 [out] BSTR *pbstrName,
325 [out] EXCEPINFO *pexcepinfo
328 HRESULT ParseScriptText(
329 [in] LPCOLESTR pstrCode,
330 [in] LPCOLESTR pstrItemName,
331 [in] IUnknown *punkContext,
332 [in] LPCOLESTR pstrDelimiter,
333 [in] DWORDLONG dwSourceContextCookie,
334 [in] ULONG ulStartingLineNumber,
335 [in] DWORD dwFlags,
336 [out] VARIANT *pvarResult,
337 [out] EXCEPINFO *pexcepinfo
341 cpp_quote("#ifdef _WIN64")
342 cpp_quote("#define IActiveScriptParse IActiveScriptParse64")
343 cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64")
344 cpp_quote("#else")
345 cpp_quote("#define IActiveScriptParse IActiveScriptParse32")
346 cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32")
347 cpp_quote("#endif")
349 cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
352 object,
353 uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
354 pointer_default(unique)
356 interface IActiveScriptParseProcedureOld32 : IUnknown
358 HRESULT ParseProcedureText(
359 [in] LPCOLESTR pstrCode,
360 [in] LPCOLESTR pstrFormalParams,
361 [in] LPCOLESTR pstrItemName,
362 [in] IUnknown *punkContext,
363 [in] LPCOLESTR pstrDelimiter,
364 [in] DWORD dwSourceContextCookie,
365 [in] ULONG ulStartingLineNumber,
366 [in] DWORD dwFlags,
367 [out] IDispatch **ppdisp
372 object,
373 uuid(21f57128-08c9-4638-ba12-22d15d88dc5c),
374 pointer_default(unique)
376 interface IActiveScriptParseProcedureOld64 : IUnknown
378 HRESULT ParseProcedureText(
379 [in] LPCOLESTR pstrCode,
380 [in] LPCOLESTR pstrFormalParams,
381 [in] LPCOLESTR pstrItemName,
382 [in] IUnknown *punkContext,
383 [in] LPCOLESTR pstrDelimiter,
384 [in] DWORDLONG dwSourceContextCookie,
385 [in] ULONG ulStartingLineNumber,
386 [in] DWORD dwFlags,
387 [out] IDispatch **ppdisp
391 cpp_quote("#ifdef _WIN64")
392 cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64")
393 cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64")
394 cpp_quote("#else")
395 cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32")
396 cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32")
397 cpp_quote("#endif")
400 object,
401 uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
402 pointer_default(unique)
404 interface IActiveScriptParseProcedure32 : IUnknown
406 HRESULT ParseProcedureText(
407 [in] LPCOLESTR pstrCode,
408 [in] LPCOLESTR pstrFormalParams,
409 [in] LPCOLESTR pstrProcedureName,
410 [in] LPCOLESTR pstrItemName,
411 [in] IUnknown *punkContext,
412 [in] LPCOLESTR pstrDelimiter,
413 [in] DWORD dwSourceContextCookie,
414 [in] ULONG ulStartingLineNumber,
415 [in] DWORD dwFlags,
416 [out] IDispatch **ppdisp
421 object,
422 uuid(c64713b6-e029-4cc5-9200-438b72890b6a),
423 pointer_default(unique)
425 interface IActiveScriptParseProcedure64 : IUnknown
427 HRESULT ParseProcedureText(
428 [in] LPCOLESTR pstrCode,
429 [in] LPCOLESTR pstrFormalParams,
430 [in] LPCOLESTR pstrProcedureName,
431 [in] LPCOLESTR pstrItemName,
432 [in] IUnknown *punkContext,
433 [in] LPCOLESTR pstrDelimiter,
434 [in] DWORDLONG dwSourceContextCookie,
435 [in] ULONG ulStartingLineNumber,
436 [in] DWORD dwFlags,
437 [out] IDispatch **ppdisp
441 cpp_quote("#ifdef _WIN64")
442 cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64")
443 cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64")
444 cpp_quote("#else")
445 cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32")
446 cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32")
447 cpp_quote("#endif")
450 object,
451 uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2),
452 pointer_default(unique)
454 interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32
459 object,
460 uuid(fe7c4271-210c-448d-9f54-76dab7047b28),
461 pointer_default(unique)
463 interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64
467 cpp_quote("#ifdef _WIN64")
468 cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64")
469 cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64")
470 cpp_quote("#else")
471 cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32")
472 cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32")
473 cpp_quote("#endif")
476 object,
477 uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
478 pointer_default(unique)
480 interface IBindEventHandler : IUnknown
482 HRESULT BindHandler(
483 [in] LPCOLESTR pstrEvent,
484 [in] IDispatch *pdisp
489 object,
490 uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
491 pointer_default(unique)
493 interface IActiveScriptStats : IUnknown
495 HRESULT GetStat(
496 [in] DWORD stid,
497 [out] ULONG *pluHi,
498 [out] ULONG *pluLo
501 HRESULT GetStatEx(
502 [in] REFGUID guid,
503 [out] ULONG *pluHi,
504 [out] ULONG *pluLo
507 HRESULT ResetStats(void);
511 object,
512 uuid(4954e0d0-fbc7-11d1-8410-006008c3fbfc),
513 pointer_default(unique)
515 interface IActiveScriptProperty : IUnknown
517 HRESULT GetProperty(
518 [in] DWORD dwProperty,
519 [in] VARIANT *pvarIndex,
520 [out] VARIANT *pvarValue);
522 HRESULT SetProperty(
523 [in] DWORD dwProperty,
524 [in] VARIANT *pvarIndex,
525 [in] VARIANT *pvarValue);