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