[1166] | 1 | /**
|
---|
| 2 | * This file is part of the mingw-w64 runtime package.
|
---|
| 3 | * No warranty is given; refer to the file DISCLAIMER within this package.
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | import "activdbg.idl";
|
---|
| 7 |
|
---|
| 8 | cpp_quote("#include <winapifamily.h>")
|
---|
| 9 | cpp_quote("")
|
---|
| 10 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
| 11 |
|
---|
| 12 | interface IWebAppDiagnosticsSetupEvent;
|
---|
| 13 |
|
---|
| 14 | typedef enum tagAPPLICATION_NODE_EVENT_FILTER {
|
---|
| 15 | FILTER_EXCLUDE_NOTHING = 0x0,
|
---|
| 16 | FILTER_EXCLUDE_ANONYMOUS_CODE = 0x1,
|
---|
| 17 | FILTER_EXCLUDE_EVAL_CODE = 0x2
|
---|
| 18 | } APPLICATION_NODE_EVENT_FILTER;
|
---|
| 19 |
|
---|
| 20 | typedef enum tagSCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND {
|
---|
| 21 | ETK_FIRST_CHANCE = 0x0,
|
---|
| 22 | ETK_USER_UNHANDLED = 0x1,
|
---|
| 23 | ETK_UNHANDLED = 0x2
|
---|
| 24 | } SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND;
|
---|
| 25 |
|
---|
| 26 | enum SCRIPT_DEBUGGER_OPTIONS {
|
---|
| 27 | SDO_NONE = 0x0,
|
---|
| 28 | SDO_ENABLE_FIRST_CHANCE_EXCEPTIONS = 0x1,
|
---|
| 29 | SDO_ENABLE_WEB_WORKER_SUPPORT = 0x2,
|
---|
| 30 | SDO_ENABLE_NONUSER_CODE_SUPPORT = 0x4
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | typedef struct tagTEXT_DOCUMENT_ARRAY {
|
---|
| 34 | DWORD dwCount;
|
---|
| 35 | [size_is (dwCount)] IDebugDocumentText **Members;
|
---|
| 36 | } TEXT_DOCUMENT_ARRAY;
|
---|
| 37 |
|
---|
| 38 | cpp_quote("DEFINE_ENUM_FLAG_OPERATORS(SCRIPT_DEBUGGER_OPTIONS)")
|
---|
| 39 |
|
---|
| 40 | cpp_quote("#ifndef DISABLE_ACTIVDBG_INTERFACE_WRAPPERS")
|
---|
| 41 | cpp_quote("#ifdef _WIN64")
|
---|
| 42 | cpp_quote("#define IDebugApplication110 IDebugApplication11064")
|
---|
| 43 | cpp_quote("#define IID_IDebugApplication110 IID_IDebugApplication11064")
|
---|
| 44 | cpp_quote("#define IDebugApplicationThread110 IDebugApplicationThread11064")
|
---|
| 45 | cpp_quote("#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11064")
|
---|
| 46 | cpp_quote("#else")
|
---|
| 47 | cpp_quote("#define IDebugApplication110 IDebugApplication11032")
|
---|
| 48 | cpp_quote("#define IID_IDebugApplication110 IID_IDebugApplication11032")
|
---|
| 49 | cpp_quote("#define IDebugApplicationThread110 IDebugApplicationThread11032")
|
---|
| 50 | cpp_quote("#define IID_IDebugApplicationThread110 IID_IDebugApplicationThread11032")
|
---|
| 51 | cpp_quote("#endif")
|
---|
| 52 | cpp_quote("#endif")
|
---|
| 53 |
|
---|
| 54 | [object, uuid (90a7734e-841b-4f77-9384-a2891e76e7e2), pointer_default (unique)]
|
---|
| 55 | interface IDebugApplicationNode100 : IUnknown {
|
---|
| 56 | HRESULT SetFilterForEventSink ([in] DWORD dwCookie,[in] APPLICATION_NODE_EVENT_FILTER filter);
|
---|
| 57 | HRESULT GetExcludedDocuments ([in] APPLICATION_NODE_EVENT_FILTER filter,[out] TEXT_DOCUMENT_ARRAY *pDocuments);
|
---|
| 58 | HRESULT QueryIsChildNode ([in] IDebugDocument *pSearchKey);
|
---|
| 59 | };
|
---|
| 60 |
|
---|
| 61 | [object, uuid (379bfbe1-C6C9-432a-93e1-6d17656c538c), pointer_default (unique)]
|
---|
| 62 | interface IWebAppDiagnosticsSetup : IUnknown {
|
---|
| 63 | HRESULT DiagnosticsSupported ([out, retval] VARIANT_BOOL *pRetVal);
|
---|
| 64 | HRESULT CreateObjectWithSiteAtWebApp ([in] REFCLSID rclsid,[in] DWORD dwClsContext,[in] REFIID riid,[in] DWORD_PTR hPassToObject);
|
---|
| 65 | };
|
---|
| 66 |
|
---|
| 67 | [object, uuid (d5fe005b-2836-485e-b1f9-89d91aa24fd4), pointer_default (unique)]
|
---|
| 68 | interface IRemoteDebugApplication110 : IUnknown {
|
---|
| 69 | HRESULT SetDebuggerOptions ([in] enum SCRIPT_DEBUGGER_OPTIONS mask,[in] enum SCRIPT_DEBUGGER_OPTIONS value);
|
---|
| 70 | HRESULT GetCurrentDebuggerOptions ([out] enum SCRIPT_DEBUGGER_OPTIONS *pCurrentOptions);
|
---|
| 71 | HRESULT GetMainThread ([out] IRemoteDebugApplicationThread **ppThread);
|
---|
| 72 | }
|
---|
| 73 |
|
---|
| 74 | [object, uuid (bdb3b5de-89f2-4e11-84a5-97445f941c7d), local, pointer_default (unique)]
|
---|
| 75 | interface IDebugApplication11032 : IRemoteDebugApplication110 {
|
---|
| 76 | HRESULT SynchronousCallInMainThread ([in] IDebugThreadCall32 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 77 | HRESULT AsynchronousCallInMainThread ([in] IDebugThreadCall32 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 78 | HRESULT CallableWaitForHandles ([in] DWORD handleCount,[in, size_is (handleCount)] const HANDLE *pHandles,[out] DWORD *pIndex);
|
---|
| 79 | }
|
---|
| 80 |
|
---|
| 81 | [object, uuid (2039d958-4eeb-496a-87bb-2e5201eadeef), local, pointer_default (unique)]
|
---|
| 82 | interface IDebugApplication11064 : IRemoteDebugApplication110 {
|
---|
| 83 | HRESULT SynchronousCallInMainThread ([in] IDebugThreadCall64 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 84 | HRESULT AsynchronousCallInMainThread ([in] IDebugThreadCall64 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 85 | HRESULT CallableWaitForHandles ([in] DWORD handleCount,[in, size_is (handleCount)] const HANDLE *pHandles,[out] DWORD *pIndex);
|
---|
| 86 | }
|
---|
| 87 |
|
---|
| 88 | [object, uuid (16ff3a42-A5F5-432b-B625-8e8e16f57e15), local, pointer_default (unique)]
|
---|
| 89 | interface IWebAppDiagnosticsObjectInitialization : IUnknown {
|
---|
| 90 | HRESULT Initialize ([in] HANDLE_PTR hPassedHandle,[in] IUnknown *pDebugApplication);
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | [object, uuid (73a3f82a-0fe9-4b33-BA3B-FE095F697E0A), pointer_default (unique)]
|
---|
| 94 | interface IActiveScriptWinRTErrorDebug : IActiveScriptError {
|
---|
| 95 | HRESULT GetRestrictedErrorString ([out] BSTR *errorString);
|
---|
| 96 | HRESULT GetRestrictedErrorReference ([out] BSTR *referenceString);
|
---|
| 97 | HRESULT GetCapabilitySid ([out] BSTR *capabilitySid);
|
---|
| 98 | }
|
---|
| 99 |
|
---|
| 100 | cpp_quote("")
|
---|
| 101 | [object, uuid (516e42b6-89a8-4530-937b-5f0708431442), pointer_default (unique)]
|
---|
| 102 | interface IActiveScriptErrorDebug110 : IUnknown {
|
---|
| 103 | HRESULT GetExceptionThrownKind ([out] SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND *pExceptionKind);
|
---|
| 104 | };
|
---|
| 105 |
|
---|
| 106 | [object, local, uuid (84e5e468-D5DA-48a8-83f4-40366429007b), pointer_default (unique)]
|
---|
| 107 | interface IDebugApplicationThreadEvents110 : IUnknown {
|
---|
| 108 | HRESULT OnSuspendForBreakPoint (void);
|
---|
| 109 | HRESULT OnResumeFromBreakPoint (void);
|
---|
| 110 | HRESULT OnThreadRequestComplete (void);
|
---|
| 111 | HRESULT OnBeginThreadRequest (void);
|
---|
| 112 | }
|
---|
| 113 |
|
---|
| 114 | [object, local, uuid (2194ac5c-6561-404a-a2e9-f57d72de3702), pointer_default (unique)]
|
---|
| 115 | interface IDebugApplicationThread11032 : IUnknown {
|
---|
| 116 | HRESULT GetActiveThreadRequestCount ([out] UINT *puiThreadRequests);
|
---|
| 117 | HRESULT IsSuspendedForBreakPoint ([out] BOOL *pfIsSuspended);
|
---|
| 118 | HRESULT IsThreadCallable ([out] BOOL *pfIsCallable);
|
---|
| 119 | HRESULT AsynchronousCallIntoThread ([in] IDebugThreadCall32 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 120 | }
|
---|
| 121 |
|
---|
| 122 | [object, local, uuid (420aa4cc-EFD8-4dac-983b-47127826917d), pointer_default (unique)]
|
---|
| 123 | interface IDebugApplicationThread11064 : IUnknown {
|
---|
| 124 | HRESULT GetActiveThreadRequestCount ([out] UINT *puiThreadRequests);
|
---|
| 125 | HRESULT IsSuspendedForBreakPoint ([out] BOOL *pfIsSuspended);
|
---|
| 126 | HRESULT IsThreadCallable ([out] BOOL *pfIsCallable);
|
---|
| 127 | HRESULT AsynchronousCallIntoThread ([in] IDebugThreadCall64 *pptc,[in] DWORD_PTR dwParam1,[in] DWORD_PTR dwParam2,[in] DWORD_PTR dwParam3);
|
---|
| 128 | }
|
---|
| 129 |
|
---|
| 130 | [object, uuid (2f69c611-6b14-47e8-9260-4bb7c52f504b), pointer_default (unique)]
|
---|
| 131 | interface IRemoteDebugCriticalErrorEvent110 : IUnknown {
|
---|
| 132 | HRESULT GetErrorInfo ([out] BSTR *pbstrSource,[out] int *pMessageId,[out] BSTR *pbstrMessage,[out] IDebugDocumentContext **ppLocation);
|
---|
| 133 | };
|
---|
| 134 | cpp_quote("#endif")
|
---|