summaryrefslogtreecommitdiffstats
path: root/src/VBox/Devices/Graphics/shaderlib/wine/include/cor.idl
blob: 738b1e3ed2f6926474756c477d805d2afcbca641 (plain)
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
/*
 * Copyright (C) 2007 Francois Gouget
 *
 * 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
 */

/*
 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
 * a choice of LGPL license versions is made available with the language indicating
 * that LGPLv2 or any later version may be used, or where a choice of which version
 * of the LGPL is applied is otherwise unspecified.
 */

import "propidl.idl";

cpp_quote("#include <ole2.h>")
/* FIXME: #include "specstrings.h" */
cpp_quote("#include <corerror.h>")
cpp_quote("#include <corhdr.h>")

cpp_quote("DEFINE_GUID(CLSID_CorMetaDataDispenser, 0xe5cb7a31,0x7512,0x11d2,0x89,0xce,0x00,0x80,0xc7,0x92,0xe5,0xd8);")
cpp_quote("DEFINE_GUID(CLSID_CorMetaDataDispenserRuntime, 0x1ec2de53,0x75cc,0x11d2,0x97,0x75,0x00,0xa0,0xc9,0xb4,0xd5,0x0c);")

[
    object,
    local,
    uuid(809c652e-7396-11d2-9771-00a0c9b4d50c)
]
interface IMetaDataDispenser : IUnknown
{
    HRESULT DefineScope(
        [in] REFCLSID rclsid,
        [in] DWORD dwCreateFlags,
        [in] REFIID riid,
        [out] IUnknown **ppIUnk);

    HRESULT OpenScope(
        [in] LPCWSTR szScope,
        [in] DWORD dwOpenFlags,
        [in] REFIID riid,
        [out] IUnknown **ppIUnk);

    HRESULT OpenScopeOnMemory(
        [in] const void *pData,
        [in] ULONG cbData,
        [in] DWORD dwOpenFlags,
        [in] REFIID riid,
        [out] IUnknown **ppIUnk);
}

[
    object,
    local,
    uuid(31bcfce2-dafb-11d2-9f81-00c04f79a0a3)
]
interface IMetaDataDispenserEx : IMetaDataDispenser
{
    HRESULT SetOption(
        [in] REFGUID optionid,
        [in] const VARIANT *value);

    HRESULT GetOption(
        [in] REFGUID optionid,
        [out] VARIANT *pvalue);

    HRESULT OpenScopeOnITypeInfo(
        [in] ITypeInfo *pITI,
        [in] DWORD dwOpenFlags,
        [in] REFIID riid,
        [out] IUnknown **ppIUnk);

    HRESULT GetCORSystemDirectory(
        [out, size_is(cchBuffer)] LPWSTR szBuffer,
        [in] DWORD cchBuffer,
        [out] DWORD *pchBuffer);

    HRESULT FindAssembly(
        [in] LPCWSTR szAppBase,
        [in] LPCWSTR szPrivateBin,
        [in] LPCWSTR szGlobalBin,
        [in] LPCWSTR szAssemblyName,
        [out, size_is(cchName)] LPWSTR szName,
        [in] ULONG cchName,
        [out] ULONG *pcName);

    HRESULT FindAssemblyModule(
        [in] LPCWSTR szAppBase,
        [in] LPCWSTR szPrivateBin,
        [in] LPCWSTR szGlobalBin,
        [in] LPCWSTR szAssemblyName,
        [in] LPCWSTR szModuleName,
        [out, size_is(cchName)] LPWSTR szName,
        [in] ULONG cchName,
        [out] ULONG *pcName);
}

cpp_quote("BOOL        WINAPI _CorDllMain(HINSTANCE,DWORD,LPVOID);")
cpp_quote("__int32     WINAPI _CorExeMain(void);")
cpp_quote("__int32     WINAPI _CorExeMain2(PBYTE,DWORD,LPWSTR,LPWSTR,LPWSTR);")
cpp_quote("VOID        WINAPI _CorImageUnloading(PVOID);")
cpp_quote("HRESULT     WINAPI _CorValidateImage(PVOID*,LPCWSTR);")
cpp_quote("HRESULT     WINAPI CoInitializeCor(DWORD);")
cpp_quote("void        WINAPI CoUninitializeCor(void);")