user32: Improve the HiliteMenuItem tests so they reflect actual behaviour on Windows.
[wine/multimedia.git] / include / activscp.idl
blobea201f526e2630b7b736aecdd3e87eb7c04b1b4b
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 typedef enum tagSCRIPTSTATE {
34 SCRIPTSTATE_UNINITIALIZED = 0,
35 SCRIPTSTATE_STARTED = 1,
36 SCRIPTSTATE_CONNECTED = 2,
37 SCRIPTSTATE_DISCONNECTED = 3,
38 SCRIPTSTATE_CLOSED = 4,
39 SCRIPTSTATE_INITIALIZED = 5
40 } SCRIPTSTATE;
42 typedef enum tagSCRIPTTHREADSTATE {
43 SCRIPTTHREADSTATE_NOTINSCRIPT = 0,
44 SCRIPTTHREADSTATE_RUNNING = 1
45 } SCRIPTTHREADSTATE;
47 typedef DWORD SCRIPTTHREADID;
48 cpp_quote("#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1)")
49 cpp_quote("#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2)")
50 cpp_quote("#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3)")
52 cpp_quote("#define SCRIPTITEM_ISVISIBLE 0x00000002")
53 cpp_quote("#define SCRIPTITEM_ISSOURCE 0x00000004")
54 cpp_quote("#define SCRIPTITEM_GLOBALMEMBERS 0x00000008")
55 cpp_quote("#define SCRIPTITEM_ISPERSISTENT 0x00000040")
56 cpp_quote("#define SCRIPTITEM_CODEONLY 0x00000200")
57 cpp_quote("#define SCRIPTITEM_NOCODE 0x00000400")
58 cpp_quote("#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \\")
59 cpp_quote(" SCRIPTITEM_ISVISIBLE | \\")
60 cpp_quote(" SCRIPTITEM_ISPERSISTENT | \\")
61 cpp_quote(" SCRIPTITEM_GLOBALMEMBERS | \\")
62 cpp_quote(" SCRIPTITEM_NOCODE | \\")
63 cpp_quote(" SCRIPTITEM_CODEONLY)")
64 cpp_quote("#define SCRIPTTYPELIB_ISCONTROL 0x00000010")
65 cpp_quote("#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040")
66 cpp_quote("#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT)")
67 cpp_quote("#define SCRIPTTEXT_DELAYEXECUTION 0x00000001")
68 cpp_quote("#define SCRIPTTEXT_ISVISIBLE 0x00000002")
69 cpp_quote("#define SCRIPTTEXT_ISEXPRESSION 0x00000020")
70 cpp_quote("#define SCRIPTTEXT_ISPERSISTENT 0x00000040")
71 cpp_quote("#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080")
72 cpp_quote("#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \\")
73 cpp_quote(" SCRIPTTEXT_ISVISIBLE | \\")
74 cpp_quote(" SCRIPTTEXT_ISEXPRESSION | \\")
75 cpp_quote(" SCRIPTTEXT_ISPERSISTENT | \\")
76 cpp_quote(" SCRIPTTEXT_HOSTMANAGESSOURCE)")
77 cpp_quote("#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080")
78 cpp_quote("#define SCRIPTPROC_IMPLICIT_THIS 0x00000100")
79 cpp_quote("#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200")
80 cpp_quote("#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \\")
81 cpp_quote(" SCRIPTPROC_IMPLICIT_THIS | \\")
82 cpp_quote(" SCRIPTPROC_IMPLICIT_PARENTS)")
83 cpp_quote("#define SCRIPTINFO_IUNKNOWN 0x00000001")
84 cpp_quote("#define SCRIPTINFO_ITYPEINFO 0x00000002")
85 cpp_quote("#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO)")
86 cpp_quote("#define SCRIPTINTERRUPT_DEBUG 0x00000001")
87 cpp_quote("#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002")
88 cpp_quote("#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION)")
89 cpp_quote("#define SCRIPTSTAT_STATEMENT_COUNT 1")
90 cpp_quote("#define SCRIPTSTAT_INSTRUCTION_COUNT 2")
91 cpp_quote("#define SCRIPTSTAT_INTSTRUCTION_TIME 3")
92 cpp_quote("#define SCRIPTSTAT_TOTAL_TIME 4")
95 object,
96 uuid(EAE1BA61-A4ED-11cf-8F20-00805F2CD064),
97 pointer_default(unique)
99 interface IActiveScriptError : IUnknown
101 HRESULT GetExceptionInfo(
102 [out] EXCEPINFO *pexcepinfo
105 HRESULT GetSourcePosition(
106 [out] DWORD *pdwSourceContext,
107 [out] ULONG *pulLineNumber,
108 [out] LONG *plCharacterPosition
111 HRESULT GetSourceLineText(
112 [out] BSTR *pbstrSourceLine
117 object,
118 uuid(DB01A1E3-A42B-11cf-8F20-00805F2CD064),
119 pointer_default(unique)
121 interface IActiveScriptSite : IUnknown
123 HRESULT GetLCID(
124 [out] LCID *plcid);
126 HRESULT GetItemInfo(
127 [in] LPCOLESTR pstrName,
128 [in] DWORD dwReturnMask,
129 [out] IUnknown **ppiunkItem,
130 [out] ITypeInfo **ppti
133 HRESULT GetDocVersionString(
134 [out] BSTR *pbstrVersion
137 HRESULT OnScriptTerminate(
138 [in] const VARIANT *pvarResult,
139 [in] const EXCEPINFO *pexcepinfo
142 HRESULT OnStateChange(
143 [in] SCRIPTSTATE ssScriptState
146 HRESULT OnScriptError(
147 [in] IActiveScriptError *pscripterror
150 HRESULT OnEnterScript(void);
152 HRESULT OnLeaveScript(void);
155 cpp_quote("typedef IActiveScriptSite *PIActiveScriptSite;")
158 object,
159 uuid(D10F6761-83E9-11cf-8F20-00805F2CD064),
160 pointer_default(unique)
162 interface IActiveScriptSiteWindow : IUnknown
164 HRESULT GetWindow(
165 [out] HWND *phwnd
168 HRESULT EnableModeless(
169 [in] BOOL fEnable
174 object,
175 uuid(539698A0-CDCA-11CF-A5EB-00AA0047A063),
176 pointer_default(unique)
178 interface IActiveScriptSiteInterruptPoll : IUnknown
180 HRESULT QueryContinue();
184 object,
185 uuid(BB1A2AE1-A4F9-11cf-8F20-00805F2CD064),
186 pointer_default(unique)
188 interface IActiveScript : IUnknown
190 HRESULT SetScriptSite(
191 [in] IActiveScriptSite *pass
194 HRESULT GetScriptSite(
195 [in] REFIID riid,
196 [out, iid_is(riid)] void **ppvObject
199 HRESULT SetScriptState(
200 [in] SCRIPTSTATE ss
203 HRESULT GetScriptState(
204 [out] SCRIPTSTATE *pssState
207 HRESULT Close(void);
209 HRESULT AddNamedItem(
210 [in] LPCOLESTR pstrName,
211 [in] DWORD dwFlags
214 HRESULT AddTypeLib(
215 [in] REFGUID rguidTypeLib,
216 [in] DWORD dwMajor,
217 [in] DWORD dwMinor,
218 [in] DWORD dwFlags
221 HRESULT GetScriptDispatch(
222 [in] LPCOLESTR pstrItemName,
223 [out] IDispatch **ppdisp
226 HRESULT GetCurrentScriptThreadID(
227 [out] SCRIPTTHREADID *pstidThread
230 HRESULT GetScriptThreadID(
231 [in] DWORD dwWin32ThreadId,
232 [out] SCRIPTTHREADID *pstidThread
235 HRESULT GetScriptThreadState(
236 [in] SCRIPTTHREADID stidThread,
237 [out] SCRIPTTHREADSTATE *pstsState
240 HRESULT InterruptScriptThread(
241 [in] SCRIPTTHREADID stidThread,
242 [in] const EXCEPINFO *pexcepinfo,
243 [in] DWORD dwFlags
246 HRESULT Clone(
247 [out] IActiveScript **ppscript
251 cpp_quote("typedef IActiveScript *PIActiveScript;")
254 object,
255 uuid(BB1A2AE2-A4F9-11cf-8F20-00805F2CD064),
256 pointer_default(unique)
258 interface IActiveScriptParse : IUnknown
260 HRESULT InitNew(void);
262 HRESULT AddScriptlet(
263 [in] LPCOLESTR pstrDefaultName,
264 [in] LPCOLESTR pstrCode,
265 [in] LPCOLESTR pstrItemName,
266 [in] LPCOLESTR pstrSubItemName,
267 [in] LPCOLESTR pstrEventName,
268 [in] LPCOLESTR pstrDelimiter,
269 [in] DWORD dwSourceContextCookie,
270 [in] ULONG ulStartingLineNumber,
271 [in] DWORD dwFlags,
272 [out] BSTR *pbstrName,
273 [out] EXCEPINFO *pexcepinfo
276 HRESULT ParseScriptText(
277 [in] LPCOLESTR pstrCode,
278 [in] LPCOLESTR pstrItemName,
279 [in] IUnknown *punkContext,
280 [in] LPCOLESTR pstrDelimiter,
281 [in] DWORD dwSourceContextCookie,
282 [in] ULONG ulStartingLineNumber,
283 [in] DWORD dwFlags,
284 [out] VARIANT *pvarResult,
285 [out] EXCEPINFO *pexcepinfo
289 cpp_quote("typedef IActiveScriptParse *PIActiveScriptParse;")
292 object,
293 uuid(1CFF0050-6FDD-11d0-9328-00A0C90DCAA9),
294 pointer_default(unique)
296 interface IActiveScriptParseProcedureOld : IUnknown
298 HRESULT ParseProcedureText(
299 [in] LPCOLESTR pstrCode,
300 [in] LPCOLESTR pstrFormalParams,
301 [in] LPCOLESTR pstrItemName,
302 [in] IUnknown *punkContext,
303 [in] LPCOLESTR pstrDelimiter,
304 [in] DWORD dwSourceContextCookie,
305 [in] ULONG ulStartingLineNumber,
306 [in] DWORD dwFlags,
307 [out] IDispatch **ppdisp
312 object,
313 uuid(AA5B6A80-B834-11d0-932F-00A0C90DCAA9),
314 pointer_default(unique)
316 interface IActiveScriptParseProcedure : IUnknown
318 HRESULT ParseProcedureText(
319 [in] LPCOLESTR pstrCode,
320 [in] LPCOLESTR pstrFormalParams,
321 [in] LPCOLESTR pstrProcedureName,
322 [in] LPCOLESTR pstrItemName,
323 [in] IUnknown *punkContext,
324 [in] LPCOLESTR pstrDelimiter,
325 [in] DWORD dwSourceContextCookie,
326 [in] ULONG ulStartingLineNumber,
327 [in] DWORD dwFlags,
328 [out] IDispatch **ppdisp
333 object,
334 uuid(63CDBCB0-C1B1-11d0-9336-00A0C90DCAA9),
335 pointer_default(unique)
337 interface IBindEventHandler : IUnknown
339 HRESULT BindHandler(
340 [in] LPCOLESTR pstrEvent,
341 [in] IDispatch *pdisp
346 object,
347 uuid(B8DA6310-E19B-11d0-933C-00A0C90DCAA9),
348 pointer_default(unique)
350 interface IActiveScriptStats : IUnknown
352 HRESULT GetStat(
353 [in] DWORD stid,
354 [out] ULONG *pluHi,
355 [out] ULONG *pluLo
358 HRESULT GetStatEx(
359 [in] REFGUID guid,
360 [out] ULONG *pluHi,
361 [out] ULONG *pluLo
364 HRESULT ResetStats(void);