VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/activscp.idl@ 69505

Last change on this file since 69505 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

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