wined3d: Downgrade the framebuffer attachment FIXMEs to WARNs.
[wine.git] / include / activscp.idl
blob8a3d75d5b52ef526785b3fdc319fd0032d50af07
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 enum tagSCRIPTUICITEM {
64 SCRIPTUICITEM_INPUTBOX = 1,
65 SCRIPTUICITEM_MSGBOX = 2
66 } SCRIPTUICITEM;
68 typedef enum tagSCRIPTUICHANDLING {
69 SCRIPTUICHANDLING_ALLOW = 0,
70 SCRIPTUICHANDLING_NOUIERROR = 1,
71 SCRIPTUICHANDLING_NOUIDEFAULT = 2
72 } SCRIPTUICHANDLING;
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)")
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")
121 cpp_quote("#define SCRIPT_E_RECORDED 0x86664004")
122 cpp_quote("#define SCRIPT_E_REPORTED 0x80020101")
123 cpp_quote("#define SCRIPT_E_PROPAGATE 0x80020102")
126 object,
127 uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
128 pointer_default(unique)
130 interface IActiveScriptError : IUnknown
132 HRESULT GetExceptionInfo(
133 [out] EXCEPINFO *pexcepinfo
136 HRESULT GetSourcePosition(
137 [out] DWORD *pdwSourceContext,
138 [out] ULONG *pulLineNumber,
139 [out] LONG *plCharacterPosition
142 HRESULT GetSourceLineText(
143 [out] BSTR *pbstrSourceLine
148 object,
149 uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
150 pointer_default(unique)
152 interface IActiveScriptSite : IUnknown
154 HRESULT GetLCID(
155 [out] LCID *plcid);
157 HRESULT GetItemInfo(
158 [in] LPCOLESTR pstrName,
159 [in] DWORD dwReturnMask,
160 [out] IUnknown **ppiunkItem,
161 [out] ITypeInfo **ppti
164 HRESULT GetDocVersionString(
165 [out] BSTR *pbstrVersion
168 HRESULT OnScriptTerminate(
169 [in] const VARIANT *pvarResult,
170 [in] const EXCEPINFO *pexcepinfo
173 HRESULT OnStateChange(
174 [in] SCRIPTSTATE ssScriptState
177 HRESULT OnScriptError(
178 [in] IActiveScriptError *pscripterror
181 HRESULT OnEnterScript(void);
183 HRESULT OnLeaveScript(void);
186 cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
189 object,
190 uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
191 pointer_default(unique)
193 interface IActiveScriptSiteWindow : IUnknown
195 HRESULT GetWindow(
196 [out] HWND *phwnd
199 HRESULT EnableModeless(
200 [in] BOOL fEnable
205 object,
206 uuid(aedae97e-d7ee-4796-b960-7f092ae844ab),
207 pointer_default(unique)
209 interface IActiveScriptSiteUIControl : IUnknown
211 HRESULT GetUIBehavior(
212 [in] SCRIPTUICITEM UicItem,
213 [out] SCRIPTUICHANDLING *pUicHandling);
217 object,
218 uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
219 pointer_default(unique)
221 interface IActiveScriptSiteInterruptPoll : IUnknown
223 HRESULT QueryContinue();
227 object,
228 uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
229 pointer_default(unique)
231 interface IActiveScript : IUnknown
233 HRESULT SetScriptSite(
234 [in] IActiveScriptSite *pass
237 HRESULT GetScriptSite(
238 [in] REFIID riid,
239 [out, iid_is(riid)] void **ppvObject
242 HRESULT SetScriptState(
243 [in] SCRIPTSTATE ss
246 HRESULT GetScriptState(
247 [out] SCRIPTSTATE *pssState
250 HRESULT Close(void);
252 HRESULT AddNamedItem(
253 [in] LPCOLESTR pstrName,
254 [in] DWORD dwFlags
257 HRESULT AddTypeLib(
258 [in] REFGUID rguidTypeLib,
259 [in] DWORD dwMajor,
260 [in] DWORD dwMinor,
261 [in] DWORD dwFlags
264 HRESULT GetScriptDispatch(
265 [in] LPCOLESTR pstrItemName,
266 [out] IDispatch **ppdisp
269 HRESULT GetCurrentScriptThreadID(
270 [out] SCRIPTTHREADID *pstidThread
273 HRESULT GetScriptThreadID(
274 [in] DWORD dwWin32ThreadId,
275 [out] SCRIPTTHREADID *pstidThread
278 HRESULT GetScriptThreadState(
279 [in] SCRIPTTHREADID stidThread,
280 [out] SCRIPTTHREADSTATE *pstsState
283 HRESULT InterruptScriptThread(
284 [in] SCRIPTTHREADID stidThread,
285 [in] const EXCEPINFO *pexcepinfo,
286 [in] DWORD dwFlags
289 HRESULT Clone(
290 [out] IActiveScript **ppscript
294 cpp_quote("typedef IActiveScript *PIActiveScript;")
297 object,
298 uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
299 pointer_default(unique)
301 interface IActiveScriptParse32 : IUnknown
303 HRESULT InitNew(void);
305 HRESULT AddScriptlet(
306 [in] LPCOLESTR pstrDefaultName,
307 [in] LPCOLESTR pstrCode,
308 [in] LPCOLESTR pstrItemName,
309 [in] LPCOLESTR pstrSubItemName,
310 [in] LPCOLESTR pstrEventName,
311 [in] LPCOLESTR pstrDelimiter,
312 [in] DWORD dwSourceContextCookie,
313 [in] ULONG ulStartingLineNumber,
314 [in] DWORD dwFlags,
315 [out] BSTR *pbstrName,
316 [out] EXCEPINFO *pexcepinfo
319 HRESULT ParseScriptText(
320 [in] LPCOLESTR pstrCode,
321 [in] LPCOLESTR pstrItemName,
322 [in] IUnknown *punkContext,
323 [in] LPCOLESTR pstrDelimiter,
324 [in] DWORD dwSourceContextCookie,
325 [in] ULONG ulStartingLineNumber,
326 [in] DWORD dwFlags,
327 [out] VARIANT *pvarResult,
328 [out] EXCEPINFO *pexcepinfo
333 object,
334 uuid(c7ef7658-e1ee-480e-97ea-d52cb4d76d17),
335 pointer_default(unique)
337 interface IActiveScriptParse64 : IUnknown
339 HRESULT InitNew(void);
341 HRESULT AddScriptlet(
342 [in] LPCOLESTR pstrDefaultName,
343 [in] LPCOLESTR pstrCode,
344 [in] LPCOLESTR pstrItemName,
345 [in] LPCOLESTR pstrSubItemName,
346 [in] LPCOLESTR pstrEventName,
347 [in] LPCOLESTR pstrDelimiter,
348 [in] DWORDLONG dwSourceContextCookie,
349 [in] ULONG ulStartingLineNumber,
350 [in] DWORD dwFlags,
351 [out] BSTR *pbstrName,
352 [out] EXCEPINFO *pexcepinfo
355 HRESULT ParseScriptText(
356 [in] LPCOLESTR pstrCode,
357 [in] LPCOLESTR pstrItemName,
358 [in] IUnknown *punkContext,
359 [in] LPCOLESTR pstrDelimiter,
360 [in] DWORDLONG dwSourceContextCookie,
361 [in] ULONG ulStartingLineNumber,
362 [in] DWORD dwFlags,
363 [out] VARIANT *pvarResult,
364 [out] EXCEPINFO *pexcepinfo
368 cpp_quote("#ifdef _WIN64")
369 cpp_quote("#define IActiveScriptParse IActiveScriptParse64")
370 cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse64")
371 cpp_quote("#else")
372 cpp_quote("#define IActiveScriptParse IActiveScriptParse32")
373 cpp_quote("#define IID_IActiveScriptParse IID_IActiveScriptParse32")
374 cpp_quote("#endif")
376 cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
379 object,
380 uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
381 pointer_default(unique)
383 interface IActiveScriptParseProcedureOld32 : IUnknown
385 HRESULT ParseProcedureText(
386 [in] LPCOLESTR pstrCode,
387 [in] LPCOLESTR pstrFormalParams,
388 [in] LPCOLESTR pstrItemName,
389 [in] IUnknown *punkContext,
390 [in] LPCOLESTR pstrDelimiter,
391 [in] DWORD dwSourceContextCookie,
392 [in] ULONG ulStartingLineNumber,
393 [in] DWORD dwFlags,
394 [out] IDispatch **ppdisp
399 object,
400 uuid(21f57128-08c9-4638-ba12-22d15d88dc5c),
401 pointer_default(unique)
403 interface IActiveScriptParseProcedureOld64 : IUnknown
405 HRESULT ParseProcedureText(
406 [in] LPCOLESTR pstrCode,
407 [in] LPCOLESTR pstrFormalParams,
408 [in] LPCOLESTR pstrItemName,
409 [in] IUnknown *punkContext,
410 [in] LPCOLESTR pstrDelimiter,
411 [in] DWORDLONG dwSourceContextCookie,
412 [in] ULONG ulStartingLineNumber,
413 [in] DWORD dwFlags,
414 [out] IDispatch **ppdisp
418 cpp_quote("#ifdef _WIN64")
419 cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld64")
420 cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld64")
421 cpp_quote("#else")
422 cpp_quote("#define IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld32")
423 cpp_quote("#define IID_IActiveScriptParseProcedureOld IID_IActiveScriptParseProcedureOld32")
424 cpp_quote("#endif")
427 object,
428 uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
429 pointer_default(unique)
431 interface IActiveScriptParseProcedure32 : IUnknown
433 HRESULT ParseProcedureText(
434 [in] LPCOLESTR pstrCode,
435 [in] LPCOLESTR pstrFormalParams,
436 [in] LPCOLESTR pstrProcedureName,
437 [in] LPCOLESTR pstrItemName,
438 [in] IUnknown *punkContext,
439 [in] LPCOLESTR pstrDelimiter,
440 [in] DWORD dwSourceContextCookie,
441 [in] ULONG ulStartingLineNumber,
442 [in] DWORD dwFlags,
443 [out] IDispatch **ppdisp
448 object,
449 uuid(c64713b6-e029-4cc5-9200-438b72890b6a),
450 pointer_default(unique)
452 interface IActiveScriptParseProcedure64 : IUnknown
454 HRESULT ParseProcedureText(
455 [in] LPCOLESTR pstrCode,
456 [in] LPCOLESTR pstrFormalParams,
457 [in] LPCOLESTR pstrProcedureName,
458 [in] LPCOLESTR pstrItemName,
459 [in] IUnknown *punkContext,
460 [in] LPCOLESTR pstrDelimiter,
461 [in] DWORDLONG dwSourceContextCookie,
462 [in] ULONG ulStartingLineNumber,
463 [in] DWORD dwFlags,
464 [out] IDispatch **ppdisp
468 cpp_quote("#ifdef _WIN64")
469 cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure64")
470 cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure64")
471 cpp_quote("#else")
472 cpp_quote("#define IActiveScriptParseProcedure IActiveScriptParseProcedure32")
473 cpp_quote("#define IID_IActiveScriptParseProcedure IID_IActiveScriptParseProcedure32")
474 cpp_quote("#endif")
477 object,
478 uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2),
479 pointer_default(unique)
481 interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32
486 object,
487 uuid(fe7c4271-210c-448d-9f54-76dab7047b28),
488 pointer_default(unique)
490 interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64
494 cpp_quote("#ifdef _WIN64")
495 cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_64")
496 cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_64")
497 cpp_quote("#else")
498 cpp_quote("#define IActiveScriptParseProcedure2 IActiveScriptParseProcedure2_32")
499 cpp_quote("#define IID_IActiveScriptParseProcedure2 IID_IActiveScriptParseProcedure2_32")
500 cpp_quote("#endif")
503 object,
504 uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
505 pointer_default(unique)
507 interface IBindEventHandler : IUnknown
509 HRESULT BindHandler(
510 [in] LPCOLESTR pstrEvent,
511 [in] IDispatch *pdisp
516 object,
517 uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
518 pointer_default(unique)
520 interface IActiveScriptStats : IUnknown
522 HRESULT GetStat(
523 [in] DWORD stid,
524 [out] ULONG *pluHi,
525 [out] ULONG *pluLo
528 HRESULT GetStatEx(
529 [in] REFGUID guid,
530 [out] ULONG *pluHi,
531 [out] ULONG *pluLo
534 HRESULT ResetStats(void);
538 object,
539 uuid(4954e0d0-fbc7-11d1-8410-006008c3fbfc),
540 pointer_default(unique)
542 interface IActiveScriptProperty : IUnknown
544 HRESULT GetProperty(
545 [in] DWORD dwProperty,
546 [in] VARIANT *pvarIndex,
547 [out] VARIANT *pvarValue);
549 HRESULT SetProperty(
550 [in] DWORD dwProperty,
551 [in] VARIANT *pvarIndex,
552 [in] VARIANT *pvarValue);