test_reg.idl 2.71 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
/*
 * A typelib to test registration.
 *
 * Copyright 2010 Huw Davies
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

import "oaidl.idl"; /* needed by widl */

[
    uuid(a2cfdbd3-2bbf-4b1c-a414-5a5904e634c9),
    version(1.0)
]
library register_test
{
    importlib("stdole2.tlb");

    [
        uuid(06c1f5f0-ea49-44f9-8e3b-4be00c7a0689)
    ]
    interface Inon_ole : IUnknown
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f1-ea49-44f9-8e3b-4be00c7a0689)
    ]
    interface Inon_ole_from_disp : IDispatch
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f2-ea49-44f9-8e3b-4be00c7a0689),
        oleautomation
    ]
    interface Iole : IUnknown
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f3-ea49-44f9-8e3b-4be00c7a0689),
        oleautomation
    ]
    interface Iole_from_disp : IDispatch
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f4-ea49-44f9-8e3b-4be00c7a0689),
        dual
    ]
    interface Inon_ole_dual : IUnknown
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f5-ea49-44f9-8e3b-4be00c7a0689),
        oleautomation,
        dual
    ]
    interface Iole_dual : IUnknown
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f6-ea49-44f9-8e3b-4be00c7a0689),
        dual
    ]
    interface Inon_ole_dual_from_disp : IDispatch
    {
        HRESULT test();
    }

    [
        uuid(06c1f5f7-ea49-44f9-8e3b-4be00c7a0689),
        oleautomation,
        dual
    ]
    interface Iole_dual_from_disp : IDispatch
    {
        HRESULT test();
    }

    /* oleautomation not allowed with dispinterfaces */
    [
        uuid(06c1f5f8-ea49-44f9-8e3b-4be00c7a0689)
    ]
    dispinterface Idisp
    {
    properties:
        [id(0x0)] BSTR Name;
    methods:
    }

    [
        uuid(06c1f5f9-ea49-44f9-8e3b-4be00c7a0689)
    ]
    dispinterface Idisp_from_non_ole_iface
    {
        interface Inon_ole;
    }

    [
        uuid(06c1f5fa-ea49-44f9-8e3b-4be00c7a0689)
    ]
    dispinterface Idisp_from_ole_from_disp_iface
    {
        interface Iole_from_disp;
    }

}