VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/activscp.idl@ 33252

Last change on this file since 33252 was 21731, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.26

  • Property svn:eol-style set to native
File size: 16.5 KB
Line 
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
29import "ocidl.idl";
30import "oleidl.idl";
31import "oaidl.idl";
32#endif
33
34cpp_quote("#ifndef _NO_SCRIPT_GUIDS")
35
36cpp_quote("DEFINE_GUID(CATID_ActiveScript, 0xf0b7a1a1,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
37cpp_quote("DEFINE_GUID(CATID_ActiveScriptParse, 0xf0b7a1a2,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
38cpp_quote("DEFINE_GUID(CATID_ActiveScriptEncode, 0xf0b7a1a3,0x9847,0x11cf,0x8f,0x20,0x00,0x80,0x5f,0x2c,0xd0,0x64);")
39
40cpp_quote("#endif")
41
42cpp_quote("#define SCRIPTPROP_NAME 0x00000000")
43cpp_quote("#define SCRIPTPROP_MAJORVERSION 0x00000001")
44cpp_quote("#define SCRIPTPROP_MINORVERSION 0x00000002")
45cpp_quote("#define SCRIPTPROP_BUILDNUMBER 0x00000003")
46cpp_quote("#define SCRIPTPROP_DELAYEDEVENTSINKING 0x00001000")
47cpp_quote("#define SCRIPTPROP_CATCHEXCEPTION 0x00001001")
48cpp_quote("#define SCRIPTPROP_CONVERSIONLCID 0x00001002")
49cpp_quote("#define SCRIPTPROP_HOSTSTACKREQUIRED 0x00001003")
50cpp_quote("#define SCRIPTPROP_DEBUGGER 0x00001100")
51cpp_quote("#define SCRIPTPROP_JITDEBUG 0x00001101")
52cpp_quote("#define SCRIPTPROP_INVOKEVERSIONING 0x00004000")
53
54cpp_quote("#define SCRIPTPROP_HACK_FIBERSUPPORT 0x70000000")
55cpp_quote("#define SCRIPTPROP_HACK_TRIDENTEVENTSINK 0x70000001")
56cpp_quote("#define SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION 0x70000002")
57
58typedef 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
67typedef enum tagSCRIPTTHREADSTATE {
68 SCRIPTTHREADSTATE_NOTINSCRIPT = 0,
69 SCRIPTTHREADSTATE_RUNNING = 1
70} SCRIPTTHREADSTATE;
71
72typedef DWORD SCRIPTTHREADID;
73cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)")
74cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)")
75cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)")
76
77cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002")
78cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004")
79cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008")
80cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040")
81cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200")
82cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400")
83cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\")
84cpp_quote(" SCRIPTITEM_ISVISIBLE | \\")
85cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\")
86cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\")
87cpp_quote(" SCRIPTITEM_NOCODE | \\")
88cpp_quote(" SCRIPTITEM_CODEONLY)")
89cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010")
90cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040")
91cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)")
92cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001")
93cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002")
94cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020")
95cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040")
96cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080")
97cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\")
98cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\")
99cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\")
100cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\")
101cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE)")
102cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080")
103cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100")
104cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200")
105cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\")
106cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\")
107cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS)")
108cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001")
109cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002")
110cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO)")
111cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001")
112cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002")
113cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION)")
114cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1")
115cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2")
116cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3")
117cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4")
118
119[
120object,
121uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
122pointer_default(unique)
123]
124interface 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[
142object,
143uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
144pointer_default(unique)
145]
146interface 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
180cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
181
182[
183object,
184uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
185pointer_default(unique)
186]
187interface IActiveScriptSiteWindow : IUnknown
188{
189 HRESULT GetWindow(
190 [out] HWND *phwnd
191 );
192
193 HRESULT EnableModeless(
194 [in] BOOL fEnable
195 );
196}
197
198[
199object,
200uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
201pointer_default(unique)
202]
203interface IActiveScriptSiteInterruptPoll : IUnknown
204{
205 HRESULT QueryContinue();
206}
207
208[
209object,
210uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
211pointer_default(unique)
212]
213interface 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
276cpp_quote("typedef IActiveScript *PIActiveScript;")
277
278[
279object,
280uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
281pointer_default(unique)
282]
283interface 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]
319interface 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
350cpp_quote("#ifdef _WIN64")
351cpp_quote("#define IActiveScriptParse IActiveScriptParse64")
352cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64")
353cpp_quote("#else")
354cpp_quote("#define IActiveScriptParse IActiveScriptParse32")
355cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32")
356cpp_quote("#endif")
357
358cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
359
360[
361object,
362uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
363pointer_default(unique)
364]
365interface 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]
385interface 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
400cpp_quote("#ifdef _WIN64")
401cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64")
402cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64")
403cpp_quote("#else")
404cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32")
405cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32")
406cpp_quote("#endif")
407
408[
409object,
410uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
411pointer_default(unique)
412]
413interface 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]
434interface 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
450cpp_quote("#ifdef _WIN64")
451cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64")
452cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64")
453cpp_quote("#else")
454cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32")
455cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32")
456cpp_quote("#endif")
457
458[
459 object,
460 uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2),
461 pointer_default(unique)
462]
463interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32
464{
465}
466
467[
468 object,
469 uuid(fe7c4271-210c-448d-9f54-76dab7047b28),
470 pointer_default(unique)
471]
472interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64
473{
474}
475
476cpp_quote("#ifdef _WIN64")
477cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64")
478cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64")
479cpp_quote("#else")
480cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32")
481cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32")
482cpp_quote("#endif")
483
484[
485object,
486uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
487pointer_default(unique)
488]
489interface IBindEventHandler : IUnknown
490{
491 HRESULT BindHandler(
492 [in] LPCOLESTR pstrEvent,
493 [in] IDispatch *pdisp
494 );
495}
496
497[
498object,
499uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
500pointer_default(unique)
501]
502interface 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]
524interface 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}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette