| 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 | cpp_quote("#include <winapifamily.h>") | 
 
 
 
 
 | 7 | cpp_quote("") | 
 
 
 
 
 | 8 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") | 
 
 
 
 
 | 9 | cpp_quote("") | 
 
 
 
 
 | 10 | cpp_quote("#ifndef __ActivAut_h") | 
 
 
 
 
 | 11 | cpp_quote("#define __ActivAut_h") | 
 
 
 
 
 | 12 | cpp_quote("") | 
 
 
 
 
 | 13 |  | 
 
 
 
 
 | 14 | #ifndef DO_NO_IMPORTS | 
 
 
 
 
 | 15 | import "ocidl.idl"; | 
 
 
 
 
 | 16 | import "oleidl.idl"; | 
 
 
 
 
 | 17 | import "oaidl.idl"; | 
 
 
 
 
 | 18 | #endif | 
 
 
 
 
 | 19 |  | 
 
 
 
 
 | 20 | cpp_quote("") | 
 
 
 
 
 | 21 | cpp_quote("#ifndef _NO_AUTHOR_GUIDS") | 
 
 
 
 
 | 22 | cpp_quote("DEFINE_GUID(CATID_ActiveScriptAuthor, 0xaee2a92, 0xbcbb, 0x11d0, 0x8c, 0x72, 0x0, 0xc0, 0x4f, 0xc2, 0xb0, 0x85);") | 
 
 
 
 
 | 23 | cpp_quote("#endif") | 
 
 
 
 
 | 24 | cpp_quote("") | 
 
 
 
 
 | 25 | cpp_quote("const DWORD fasaPreferInternalHandler = 1;") | 
 
 
 
 
 | 26 | cpp_quote("const DWORD fasaSupportInternalHandler = 2;") | 
 
 
 
 
 | 27 | cpp_quote("const DWORD fasaCaseSensitive = 4;") | 
 
 
 
 
 | 28 | cpp_quote("") | 
 
 
 
 
 | 29 | cpp_quote("const DWORD SCRIPT_CMPL_NOLIST = 0;") | 
 
 
 
 
 | 30 | cpp_quote("const DWORD SCRIPT_CMPL_MEMBERLIST = 1;") | 
 
 
 
 
 | 31 | cpp_quote("const DWORD SCRIPT_CMPL_ENUMLIST = 2;") | 
 
 
 
 
 | 32 | cpp_quote("const DWORD SCRIPT_CMPL_PARAMTIP = 4;") | 
 
 
 
 
 | 33 | cpp_quote("const DWORD SCRIPT_CMPL_GLOBALLIST = 8;") | 
 
 
 
 
 | 34 | cpp_quote("") | 
 
 
 
 
 | 35 | cpp_quote("const DWORD SCRIPT_CMPL_ENUM_TRIGGER = 1;") | 
 
 
 
 
 | 36 | cpp_quote("const DWORD SCRIPT_CMPL_MEMBER_TRIGGER = 2;") | 
 
 
 
 
 | 37 | cpp_quote("const DWORD SCRIPT_CMPL_PARAM_TRIGGER = 3;") | 
 
 
 
 
 | 38 | cpp_quote("const DWORD SCRIPT_CMPL_COMMIT = 4;") | 
 
 
 
 
 | 39 | cpp_quote("") | 
 
 
 
 
 | 40 | cpp_quote("const DWORD GETATTRTYPE_NORMAL = 0;") | 
 
 
 
 
 | 41 | cpp_quote("const DWORD GETATTRTYPE_DEPSCAN = 1;") | 
 
 
 
 
 | 42 | cpp_quote("") | 
 
 
 
 
 | 43 | cpp_quote("const DWORD GETATTRFLAG_THIS = 0x100;") | 
 
 
 
 
 | 44 | cpp_quote("const DWORD GETATTRFLAG_HUMANTEXT = 0x8000;") | 
 
 
 
 
 | 45 | cpp_quote("") | 
 
 
 
 
 | 46 | cpp_quote("const DWORD SOURCETEXT_ATTR_IDENTIFIER = 0x100;") | 
 
 
 
 
 | 47 | cpp_quote("const DWORD SOURCETEXT_ATTR_MEMBERLOOKUP = 0x200;") | 
 
 
 
 
 | 48 | cpp_quote("const DWORD SOURCETEXT_ATTR_THIS = 0x400;") | 
 
 
 
 
 | 49 | cpp_quote("const DWORD SOURCETEXT_ATTR_HUMANTEXT = 0x8000;") | 
 
 
 
 
 | 50 | cpp_quote("") | 
 
 
 
 
 | 51 |  | 
 
 
 
 
 | 52 | interface IActiveScriptAuthor; | 
 
 
 
 
 | 53 | interface IScriptNode; | 
 
 
 
 
 | 54 | interface IScriptEntry; | 
 
 
 
 
 | 55 | interface IScriptScriptlet; | 
 
 
 
 
 | 56 |  | 
 
 
 
 
 | 57 | typedef WORD SOURCE_TEXT_ATTR; | 
 
 
 
 
 | 58 |  | 
 
 
 
 
 | 59 | [uuid (0aee2a94-BCBB-11d0-8c72-00c04fc2b085), pointer_default (unique)] | 
 
 
 
 
 | 60 | interface IScriptNode : IUnknown { | 
 
 
 
 
 | 61 | HRESULT Alive (void); | 
 
 
 
 
 | 62 | HRESULT Delete (void); | 
 
 
 
 
 | 63 | HRESULT GetParent ([out] IScriptNode **ppsnParent); | 
 
 
 
 
 | 64 | HRESULT GetIndexInParent ([out] ULONG *pisn); | 
 
 
 
 
 | 65 | HRESULT GetCookie ([out] DWORD *pdwCookie); | 
 
 
 
 
 | 66 | HRESULT GetNumberOfChildren ([out] ULONG *pcsn); | 
 
 
 
 
 | 67 | HRESULT GetChild ([in] ULONG isn,[out] IScriptNode **ppsn); | 
 
 
 
 
 | 68 | HRESULT GetLanguage ([out] BSTR *pbstr); | 
 
 
 
 
 | 69 | HRESULT CreateChildEntry ([in] ULONG isn,[in] DWORD dwCookie,[in] LPCOLESTR pszDelimiter,[out] IScriptEntry **ppse); | 
 
 
 
 
 | 70 | HRESULT CreateChildHandler ([in] LPCOLESTR pszDefaultName,[in, size_is (cpszNames)] LPCOLESTR *prgpszNames,[in] ULONG cpszNames,[in] LPCOLESTR pszEvent,[in] LPCOLESTR pszDelimiter,[in] ITypeInfo *ptiSignature,[in] ULONG iMethodSignature,[in] ULONG isn,[in] DWORD dwCookie,[out] IScriptEntry **ppse); | 
 
 
 
 
 | 71 | } | 
 
 
 
 
 | 72 |  | 
 
 
 
 
 | 73 | [uuid (0aee2a95-BCBB-11d0-8c72-00c04fc2b085), pointer_default (unique)] | 
 
 
 
 
 | 74 | interface IScriptEntry : IScriptNode { | 
 
 
 
 
 | 75 | HRESULT GetText ([out] BSTR *pbstr); | 
 
 
 
 
 | 76 | HRESULT SetText ([in] LPCOLESTR psz); | 
 
 
 
 
 | 77 | HRESULT GetBody ([out] BSTR *pbstr); | 
 
 
 
 
 | 78 | HRESULT SetBody ([in] LPCOLESTR psz); | 
 
 
 
 
 | 79 | HRESULT GetName ([out] BSTR *pbstr); | 
 
 
 
 
 | 80 | HRESULT SetName ([in] LPCOLESTR psz); | 
 
 
 
 
 | 81 | HRESULT GetItemName ([out] BSTR *pbstr); | 
 
 
 
 
 | 82 | HRESULT SetItemName ([in] LPCOLESTR psz); | 
 
 
 
 
 | 83 | HRESULT GetSignature ([out] ITypeInfo **ppti,[out] ULONG *piMethod); | 
 
 
 
 
 | 84 | HRESULT SetSignature ([in] ITypeInfo *pti,[in] ULONG iMethod); | 
 
 
 
 
 | 85 | HRESULT GetRange ([out] ULONG *pichMin,[out] ULONG *pcch); | 
 
 
 
 
 | 86 | } | 
 
 
 
 
 | 87 |  | 
 
 
 
 
 | 88 | [uuid (0aee2a96-BCBB-11d0-8c72-00c04fc2b085), pointer_default (unique)] | 
 
 
 
 
 | 89 | interface IScriptScriptlet : IScriptEntry { | 
 
 
 
 
 | 90 | HRESULT GetSubItemName ([out] BSTR *pbstr); | 
 
 
 
 
 | 91 | HRESULT SetSubItemName ([in] LPCOLESTR psz); | 
 
 
 
 
 | 92 | HRESULT GetEventName ([out] BSTR *pbstr); | 
 
 
 
 
 | 93 | HRESULT SetEventName ([in] LPCOLESTR psz); | 
 
 
 
 
 | 94 | HRESULT GetSimpleEventName ([out] BSTR *pbstr); | 
 
 
 
 
 | 95 | HRESULT SetSimpleEventName ([in] LPCOLESTR psz); | 
 
 
 
 
 | 96 | } | 
 
 
 
 
 | 97 | [uuid (9c109da0-7006-11d1-B36C-00a0c911e8b2), pointer_default (unique)] | 
 
 
 
 
 | 98 | interface IActiveScriptAuthor : IUnknown { | 
 
 
 
 
 | 99 | HRESULT AddNamedItem ([in] LPCOLESTR pszName,[in] DWORD dwFlags,[in] IDispatch *pdisp); | 
 
 
 
 
 | 100 | HRESULT AddScriptlet ([in] LPCOLESTR pszDefaultName,[in] LPCOLESTR pszCode,[in] LPCOLESTR pszItemName,[in] LPCOLESTR pszSubItemName,[in] LPCOLESTR pszEventName,[in] LPCOLESTR pszDelimiter,[in] DWORD dwCookie,[in] DWORD dwFlags); | 
 
 
 
 
 | 101 | HRESULT ParseScriptText ([in] LPCOLESTR pszCode,[in] LPCOLESTR pszItemName,[in] LPCOLESTR pszDelimiter,[in] DWORD dwCookie,[in] DWORD dwFlags); | 
 
 
 
 
 | 102 | HRESULT GetScriptTextAttributes ([in, size_is (cch)] LPCOLESTR pszCode,[in] ULONG cch,[in] LPCOLESTR pszDelimiter,[in] DWORD dwFlags,[in, out, size_is (cch)] SOURCE_TEXT_ATTR *pattr); | 
 
 
 
 
 | 103 | HRESULT GetScriptletTextAttributes ([in, size_is (cch)] LPCOLESTR pszCode,[in] ULONG cch,[in] LPCOLESTR pszDelimiter,[in] DWORD dwFlags,[in, out, size_is (cch)] SOURCE_TEXT_ATTR *pattr); | 
 
 
 
 
 | 104 | HRESULT GetRoot ([out] IScriptNode **ppsp); | 
 
 
 
 
 | 105 | HRESULT GetLanguageFlags ([out] DWORD *pgrfasa); | 
 
 
 
 
 | 106 | HRESULT GetEventHandler ([in] IDispatch *pdisp,[in] LPCOLESTR pszItem,[in] LPCOLESTR pszSubItem,[in] LPCOLESTR pszEvent,[out] IScriptEntry **ppse); | 
 
 
 
 
 | 107 | HRESULT RemoveNamedItem ([in] LPCOLESTR pszName); | 
 
 
 
 
 | 108 | HRESULT AddTypeLib ([in] REFGUID rguidTypeLib,[in] DWORD dwMajor,[in] DWORD dwMinor,[in] DWORD dwFlags); | 
 
 
 
 
 | 109 | HRESULT RemoveTypeLib ([in] REFGUID rguidTypeLib,[in] DWORD dwMajor,[in] DWORD dwMinor); | 
 
 
 
 
 | 110 | HRESULT GetChars ([in] DWORD fRequestedList,[out] BSTR *pbstrChars); | 
 
 
 
 
 | 111 | HRESULT GetInfoFromContext ([in] LPCOLESTR pszCode,[in] ULONG cchCode,[in] ULONG ichCurrentPosition,[in] DWORD dwListTypesRequested,[out] DWORD *pdwListTypesProvided,[out] ULONG *pichListAnchorPosition,[out] ULONG *pichFuncAnchorPosition,[out] MEMBERID *pmemid,[out] LONG *piCurrentParameter,[out] IUnknown **ppunk); | 
 
 
 
 
 | 112 |  | 
 
 
 
 
 | 113 | HRESULT IsCommitChar ([in] OLECHAR ch,[out] BOOL *pfcommit); | 
 
 
 
 
 | 114 | } | 
 
 
 
 
 | 115 |  | 
 
 
 
 
 | 116 | [uuid (7e2d4b70-BD9A-11d0-9336-00a0c90dcaa9), pointer_default (unique)] | 
 
 
 
 
 | 117 | interface IActiveScriptAuthorProcedure : IUnknown { | 
 
 
 
 
 | 118 | HRESULT ParseProcedureText ([in] LPCOLESTR pszCode,[in] LPCOLESTR pszFormalParams,[in] LPCOLESTR pszProcedureName,[in] LPCOLESTR pszItemName,[in] LPCOLESTR pszDelimiter,[in] DWORD dwCookie,[in] DWORD dwFlags,[in] IDispatch *pdispFor); | 
 
 
 
 
 | 119 | } | 
 
 
 
 
 | 120 |  | 
 
 
 
 
 | 121 | cpp_quote("#endif") | 
 
 
 
 
 | 122 | cpp_quote("") | 
 
 
 
 
 | 123 | cpp_quote("#endif") |