1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24// so_activex.idl : IDL source for so_activex.dll 25// 26 27// This file will be processed by the MIDL tool to 28// produce the type library (so_activex.tlb) and marshalling code. 29 30import "oaidl.idl"; 31import "ocidl.idl"; 32#include "olectl.h" 33 34 35 [ 36 object, 37 uuid(DACF7E3F-626B-4BF9-964B-F4910C843711), 38 dual, 39 helpstring("ISOActiveX Interface"), 40 pointer_default(unique) 41 ] 42 interface ISOActiveX : IDispatch 43 { 44 }; 45 46[ 47 object, 48 uuid(BF5D10F3-8A10-4A0B-B150-2B6AA2D7E118), 49 dual, 50 helpstring("ISOComWindowPeer Interface"), 51 pointer_default(unique) 52] 53interface ISOComWindowPeer : IDispatch 54{ 55 [id(1), helpstring("method getWindowHandle")] 56 HRESULT getWindowHandle( [in] SAFEARRAY(VARIANT) procId, 57 [in] short s, 58 [out,retval] long* ret); 59 60 [id(2), helpstring("method getToolkit")] 61 HRESULT getToolkit( [out,retval] IDispatch** retVal ); 62 63 [id(3), helpstring("method setPointer")] 64 HRESULT setPointer( [in] IDispatch* xPointer ); 65 66 [id(4), helpstring("method setBackground")] 67 HRESULT setBackground( [in] int nColor ); 68 69 [id(5), helpstring("method invalidate")] 70 HRESULT invalidate( [in] short ); 71 72 [id(6), helpstring("method invalidateRect")] 73 HRESULT invalidateRect( [in] IDispatch* aRect, [in] short nFlags ); 74 75 [id(7), helpstring("method dispose")] 76 HRESULT dispose(); 77 78 [id(8), helpstring("method addEventListener")] 79 HRESULT addEventListener( [in] IDispatch* xListener ); 80 81 [id(9), helpstring("method removeEventListener")] 82 HRESULT removeEventListener( [in] IDispatch* xListener ); 83 84 [propget, id(10), helpstring("property_implementedInterfaces")] 85 HRESULT Bridge_implementedInterfaces([out, retval] SAFEARRAY(BSTR) *pVal); 86}; 87 88[ 89 uuid(61FA3F13-8061-4796-B055-3697ED28CB38), 90 version(1.0), 91 helpstring("so_activex 1.0 Type Library") 92] 93library SO_ACTIVEXLib 94{ 95 importlib("stdole32.tlb"); 96 importlib("stdole2.tlb"); 97 98 [ 99 uuid(7F760565-5719-4F04-BA86-112C474B10EA), 100 helpstring("_ISOActiveXEvents Interface") 101 ] 102 dispinterface _ISOActiveXEvents 103 { 104 properties: 105 methods: 106 }; 107 108 [ 109 uuid(67F2A879-82D5-4A6D-8CC5-FFB3C114B69D), 110 helpstring("SOActiveX Class") 111 ] 112 coclass SOActiveX 113 { 114 [default] interface ISOActiveX; 115 [default, source] dispinterface _ISOActiveXEvents; 116 }; 117 118 [ 119 uuid(EE51BD3E-8BB6-4FB8-B319-F65B1BE3B21D), 120 helpstring("SOComWindowPeer Class") 121 ] 122 coclass SOComWindowPeer 123 { 124 [default] interface ISOComWindowPeer; 125 }; 126}; 127 128