usp10: Add ShapeCharGlyphProp_Latin to properly handle zero width character propertie...
[wine.git] / include / activscp.idl
blobc7fc2d2d7674b8fb354cda1b17406f7a35249df6
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")
122 object,
123 uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
124 pointer_default(unique)
126 interface IActiveScriptError : IUnknown
128 HRESULT GetExceptionInfo(
129 [out] EXCEPINFO *pexcepinfo
132 HRESULT GetSourcePosition(
133 [out] DWORD *pdwSourceContext,
134 [out] ULONG *pulLineNumber,
135 [out] LONG *plCharacterPosition
138 HRESULT GetSourceLineText(
139 [out] BSTR *pbstrSourceLine
144 object,
145 uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
146 pointer_default(unique)
148 interface IActiveScriptSite : IUnknown
150 HRESULT GetLCID(
151 [out] LCID *plcid);
153 HRESULT GetItemInfo(
154 [in] LPCOLESTR pstrName,
155 [in] DWORD dwReturnMask,
156 [out] IUnknown **ppiunkItem,
157 [out] ITypeInfo **ppti
160 HRESULT GetDocVersionString(
161 [out] BSTR *pbstrVersion
164 HRESULT OnScriptTerminate(
165 [in] const VARIANT *pvarResult,
166 [in] const EXCEPINFO *pexcepinfo
169 HRESULT OnStateChange(
170 [in] SCRIPTSTATE ssScriptState
173 HRESULT OnScriptError(
174 [in] IActiveScriptError *pscripterror
177 HRESULT OnEnterScript(void);
179 HRESULT OnLeaveScript(void);
182 cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
185 object,
186 uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
187 pointer_default(unique)
189 interface IActiveScriptSiteWindow : IUnknown
191 HRESULT GetWindow(
192 [out] HWND *phwnd
195 HRESULT EnableModeless(
196 [in] BOOL fEnable
201 object,
202 uuid(aedae97e-d7ee-4796-b960-7f092ae844ab),
203 pointer_default(unique)
205 interface IActiveScriptSiteUIControl : IUnknown
207 HRESULT GetUIBehavior(
208 [in] SCRIPTUICITEM UicItem,
209 [out] SCRIPTUICHANDLING *pUicHandling);
213 object,
214 uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
215 pointer_default(unique)
217 interface IActiveScriptSiteInterruptPoll : IUnknown
219 HRESULT QueryContinue();
223 object,
224 uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
225 pointer_default(unique)
227 interface IActiveScript : IUnknown
229 HRESULT SetScriptSite(
230 [in] IActiveScriptSite *pass
233 HRESULT GetScriptSite(
234 [in] REFIID riid,
235 [out, iid_is(riid)] void **ppvObject
238 HRESULT SetScriptState(
239 [in] SCRIPTSTATE ss
242 HRESULT GetScriptState(
243 [out] SCRIPTSTATE *pssState
246 HRESULT Close(void);
248 HRESULT AddNamedItem(
249 [in] LPCOLESTR pstrName,
250 [in] DWORD dwFlags
253 HRESULT AddTypeLib(
254 [in] REFGUID rguidTypeLib,
255 [in] DWORD dwMajor,
256 [in] DWORD dwMinor,
257 [in] DWORD dwFlags
260 HRESULT GetScriptDispatch(
261 [in] LPCOLESTR pstrItemName,
262 [out] IDispatch **ppdisp
265 HRESULT GetCurrentScriptThreadID(
266 [out] SCRIPTTHREADID *pstidThread
269 HRESULT GetScriptThreadID(
270 [in] DWORD dwWin32ThreadId,
271 [out] SCRIPTTHREADID *pstidThread
274 HRESULT GetScriptThreadState(
275 [in] SCRIPTTHREADID stidThread,
276 [out] SCRIPTTHREADSTATE *pstsState
279 HRESULT InterruptScriptThread(
280 [in] SCRIPTTHREADID stidThread,
281 [in] const EXCEPINFO *pexcepinfo,
282 [in] DWORD dwFlags
285 HRESULT Clone(
286 [out] IActiveScript **ppscript
290 cpp_quote("typedef IActiveScript *PIActiveScript;")
293 object,
294 uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
295 pointer_default(unique)
297 interface IActiveScriptParse32 : IUnknown
299 HRESULT InitNew(void);
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
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
329 object,
330 uuid(c7ef7658-e1ee-480e-97ea-d52cb4d76d17),
331 pointer_default(unique)
333 interface IActiveScriptParse64 : IUnknown
335 HRESULT InitNew(void);
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
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
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")
372 cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
375 object,
376 uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
377 pointer_default(unique)
379 interface IActiveScriptParseProcedureOld32 : IUnknown
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
395 object,
396 uuid(21f57128-08c9-4638-ba12-22d15d88dc5c),
397 pointer_default(unique)
399 interface IActiveScriptParseProcedureOld64 : IUnknown
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
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")
423 object,
424 uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
425 pointer_default(unique)
427 interface IActiveScriptParseProcedure32 : IUnknown
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
444 object,
445 uuid(c64713b6-e029-4cc5-9200-438b72890b6a),
446 pointer_default(unique)
448 interface IActiveScriptParseProcedure64 : IUnknown
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
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")
473 object,
474 uuid(71ee5b20-fb04-11d1-b3a8-00a0c911e8b2),
475 pointer_default(unique)
477 interface IActiveScriptParseProcedure2_32 : IActiveScriptParseProcedure32
482 object,
483 uuid(fe7c4271-210c-448d-9f54-76dab7047b28),
484 pointer_default(unique)
486 interface IActiveScriptParseProcedure2_64 : IActiveScriptParseProcedure64
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")
499 object,
500 uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
501 pointer_default(unique)
503 interface IBindEventHandler : IUnknown
505 HRESULT BindHandler(
506 [in] LPCOLESTR pstrEvent,
507 [in] IDispatch *pdisp
512 object,
513 uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
514 pointer_default(unique)
516 interface IActiveScriptStats : IUnknown
518 HRESULT GetStat(
519 [in] DWORD stid,
520 [out] ULONG *pluHi,
521 [out] ULONG *pluLo
524 HRESULT GetStatEx(
525 [in] REFGUID guid,
526 [out] ULONG *pluHi,
527 [out] ULONG *pluLo
530 HRESULT ResetStats(void);
534 object,
535 uuid(4954e0d0-fbc7-11d1-8410-006008c3fbfc),
536 pointer_default(unique)
538 interface IActiveScriptProperty : IUnknown
540 HRESULT GetProperty(
541 [in] DWORD dwProperty,
542 [in] VARIANT *pvarIndex,
543 [out] VARIANT *pvarValue);
545 HRESULT SetProperty(
546 [in] DWORD dwProperty,
547 [in] VARIANT *pvarIndex,
548 [in] VARIANT *pvarValue);