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