| 1 |
cpp_quote("/**") |
| 2 |
cpp_quote(" * This file is part of the mingw-w64 runtime package.") |
| 3 |
cpp_quote(" * No warranty is given; refer to the file DISCLAIMER within this package.") |
| 4 |
cpp_quote(" */") |
| 5 |
cpp_quote("") |
| 6 |
|
| 7 |
interface IDispatchEx; |
| 8 |
interface IDispError; |
| 9 |
interface IVariantChangeType; |
| 10 |
|
| 11 |
#ifndef DO_NO_IMPORTS |
| 12 |
import "ocidl.idl"; |
| 13 |
import "oleidl.idl"; |
| 14 |
import "oaidl.idl"; |
| 15 |
import "servprov.idl"; |
| 16 |
#endif |
| 17 |
|
| 18 |
cpp_quote("#ifndef DISPEX_H_") |
| 19 |
cpp_quote("#define DISPEX_H_") |
| 20 |
cpp_quote("") |
| 21 |
cpp_quote("#include <winapifamily.h>") |
| 22 |
cpp_quote("") |
| 23 |
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") |
| 24 |
cpp_quote("") |
| 25 |
cpp_quote("#include \"servprov.h\"") |
| 26 |
cpp_quote("") |
| 27 |
cpp_quote("#ifndef _NO_DISPATCHEX_GUIDS") |
| 28 |
cpp_quote("") |
| 29 |
|
| 30 |
cpp_quote("DEFINE_GUID(SID_VariantConversion, 0x1f101481, 0xbccd, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") |
| 31 |
cpp_quote("DEFINE_GUID(SID_GetCaller, 0x4717cc40, 0xbcb9, 0x11d0, 0x93, 0x36, 0x0, 0xa0, 0xc9, 0xd, 0xca, 0xa9);") |
| 32 |
cpp_quote("DEFINE_GUID(SID_ProvideRuntimeContext, 0x74a5040c, 0xdd0c, 0x48f0, 0xac, 0x85, 0x19, 0x4c, 0x32, 0x59, 0x18, 0xa);") |
| 33 |
cpp_quote("") |
| 34 |
cpp_quote("#define SID_GetScriptSite IID_IActiveScriptSite") |
| 35 |
cpp_quote("#endif") |
| 36 |
cpp_quote("") |
| 37 |
cpp_quote("#ifndef _NO_DISPATCHEX_CONSTS") |
| 38 |
cpp_quote("") |
| 39 |
cpp_quote("#define fdexNameCaseSensitive 0x1") |
| 40 |
cpp_quote("#define fdexNameEnsure 0x2") |
| 41 |
cpp_quote("#define fdexNameImplicit 0x4") |
| 42 |
cpp_quote("#define fdexNameCaseInsensitive 0x8") |
| 43 |
cpp_quote("#define fdexNameInternal 0x10") |
| 44 |
cpp_quote("#define fdexNameNoDynamicProperties 0x20") |
| 45 |
cpp_quote("") |
| 46 |
cpp_quote("#define fdexPropCanGet 0x1") |
| 47 |
cpp_quote("#define fdexPropCannotGet 0x2") |
| 48 |
cpp_quote("#define fdexPropCanPut 0x4") |
| 49 |
cpp_quote("#define fdexPropCannotPut 0x8") |
| 50 |
cpp_quote("#define fdexPropCanPutRef 0x10") |
| 51 |
cpp_quote("#define fdexPropCannotPutRef 0x20") |
| 52 |
cpp_quote("#define fdexPropNoSideEffects 0x40") |
| 53 |
cpp_quote("#define fdexPropDynamicType 0x80") |
| 54 |
cpp_quote("#define fdexPropCanCall 0x100") |
| 55 |
cpp_quote("#define fdexPropCannotCall 0x200") |
| 56 |
cpp_quote("#define fdexPropCanConstruct 0x400") |
| 57 |
cpp_quote("#define fdexPropCannotConstruct 0x800") |
| 58 |
cpp_quote("#define fdexPropCanSourceEvents 0x1000") |
| 59 |
cpp_quote("#define fdexPropCannotSourceEvents 0x02000") |
| 60 |
cpp_quote("") |
| 61 |
cpp_quote("#define grfdexPropCanAll (fdexPropCanGet | fdexPropCanPut | fdexPropCanPutRef | fdexPropCanCall | fdexPropCanConstruct | fdexPropCanSourceEvents)") |
| 62 |
cpp_quote("#define grfdexPropCannotAll (fdexPropCannotGet | fdexPropCannotPut | fdexPropCannotPutRef | fdexPropCannotCall | fdexPropCannotConstruct | fdexPropCannotSourceEvents)") |
| 63 |
cpp_quote("#define grfdexPropExtraAll (fdexPropNoSideEffects | fdexPropDynamicType)") |
| 64 |
cpp_quote("#define grfdexPropAll (grfdexPropCanAll | grfdexPropCannotAll | grfdexPropExtraAll)") |
| 65 |
cpp_quote("") |
| 66 |
cpp_quote("#define fdexEnumDefault 0x1") |
| 67 |
cpp_quote("#define fdexEnumAll 0x2") |
| 68 |
cpp_quote("") |
| 69 |
cpp_quote("#define DISPATCH_CONSTRUCT 0x4000") |
| 70 |
cpp_quote("#define DISPID_THIS (-613)") |
| 71 |
cpp_quote("#define DISPID_STARTENUM DISPID_UNKNOWN") |
| 72 |
cpp_quote("#endif") |
| 73 |
cpp_quote("") |
| 74 |
|
| 75 |
[object, uuid (a6ef9860-c720-11d0-9337-00a0c90dcaa9), pointer_default (unique)] |
| 76 |
interface IDispatchEx : IDispatch { |
| 77 |
HRESULT GetDispID ([in] BSTR bstrName,[in] DWORD grfdex,[out] DISPID *pid); |
| 78 |
[local] HRESULT InvokeEx ([in] DISPID id,[in] LCID lcid,[in] WORD wFlags,[in] DISPPARAMS *pdp,[out] VARIANT *pvarRes,[out] EXCEPINFO *pei,[in, unique] IServiceProvider *pspCaller); |
| 79 |
[call_as (InvokeEx)] HRESULT RemoteInvokeEx ([in] DISPID id,[in] LCID lcid,[in] DWORD dwFlags,[in] DISPPARAMS *pdp,[out] VARIANT *pvarRes,[out] EXCEPINFO *pei,[in, unique] IServiceProvider *pspCaller,[in] UINT cvarRefArg,[in, size_is (cvarRefArg)] UINT *rgiRefArg,[in, out, size_is (cvarRefArg)] VARIANT *rgvarRefArg); |
| 80 |
HRESULT DeleteMemberByName ([in] BSTR bstrName,[in] DWORD grfdex); |
| 81 |
HRESULT DeleteMemberByDispID ([in] DISPID id); |
| 82 |
HRESULT GetMemberProperties ([in] DISPID id,[in] DWORD grfdexFetch,[out] DWORD *pgrfdex); |
| 83 |
HRESULT GetMemberName ([in] DISPID id,[out] BSTR *pbstrName); |
| 84 |
HRESULT GetNextDispID ([in] DWORD grfdex,[in] DISPID id,[out] DISPID *pid); |
| 85 |
HRESULT GetNameSpaceParent ([out] IUnknown **ppunk); |
| 86 |
}; |
| 87 |
|
| 88 |
[object, uuid (a6ef9861-c720-11d0-9337-00a0c90dcaa9), pointer_default (unique)] |
| 89 |
interface IDispError : IUnknown { |
| 90 |
HRESULT QueryErrorInfo ([in] GUID guidErrorType,[out] IDispError **ppde); |
| 91 |
HRESULT GetNext ([out] IDispError **ppde); |
| 92 |
HRESULT GetHresult ([out] HRESULT *phr); |
| 93 |
HRESULT GetSource ([out] BSTR *pbstrSource); |
| 94 |
HRESULT GetHelpInfo ([out] BSTR *pbstrFileName,[out] DWORD *pdwContext); |
| 95 |
HRESULT GetDescription ([out] BSTR *pbstrDescription); |
| 96 |
}; |
| 97 |
|
| 98 |
[object, uuid (a6ef9862-c720-11d0-9337-00a0c90dcaa9), pointer_default (unique)] |
| 99 |
interface IVariantChangeType : IUnknown { |
| 100 |
HRESULT ChangeType ([in, out, unique] VARIANT *pvarDst,[in, unique] VARIANT *pvarSrc,[in] LCID lcid,[in] VARTYPE vtNew); |
| 101 |
}; |
| 102 |
|
| 103 |
[object, uuid (ca04b7e6-0d21-11d1-8cc5-00c04fc2b085), pointer_default (unique)] |
| 104 |
interface IObjectIdentity : IUnknown { |
| 105 |
HRESULT IsEqualObject ([in] IUnknown *punk); |
| 106 |
}; |
| 107 |
|
| 108 |
[object, uuid (c5598e60-b307-11d1-b27d-006008c3fbfb), pointer_default (unique)] |
| 109 |
interface ICanHandleException : IUnknown { |
| 110 |
HRESULT CanHandleException ([in] EXCEPINFO *pExcepInfo,[in] VARIANT *pvar); |
| 111 |
}; |
| 112 |
|
| 113 |
[object, uuid (10e2414a-ec59-49d2-bc51-5add2c36febc), pointer_default (unique)] |
| 114 |
interface IProvideRuntimeContext : IUnknown { |
| 115 |
HRESULT GetCurrentSourceContext ([out] DWORD_PTR *pdwContext,[out] VARIANT_BOOL *pfExecutingGlobalCode); |
| 116 |
}; |
| 117 |
|
| 118 |
cpp_quote("#endif") |
| 119 |
cpp_quote("#endif") |