VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/metahost.idl@ 53206

Last change on this file since 53206 was 53206, checked in by vboxsync, 10 years ago

Devices/vmsvga: header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.4 KB
Line 
1/*
2 * Copyright 2010 Vincent Povirk for CodeWeavers
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28import "unknwn.idl";
29import "oaidl.idl";
30import "ocidl.idl";
31import "mscoree.idl";
32
33cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
34cpp_quote("#undef LoadLibrary")
35cpp_quote("#endif")
36
37typedef enum
38{
39 METAHOST_POLICY_HIGHCOMPAT = 0,
40 METAHOST_POLICY_APPLY_UPGRADE_POLICY = 0x08,
41 METAHOST_POLICY_EMULATE_EXE_LAUNCH = 0x10,
42 METAHOST_POLICY_SHOW_ERROR_DIALOG = 0x20,
43 METAHOST_POLICY_USE_PROCESS_IMAGE_PATH = 0x40,
44 METAHOST_POLICY_ENSURE_SKU_SUPPORTED = 0x80
45} METAHOST_POLICY_FLAGS;
46
47typedef enum
48{
49 CLR_DEBUGGING_MANAGED_EVENT_PENDING = 1
50} CLR_DEBUGGING_PROCESS_FLAGS;
51
52typedef struct _CLR_DEBUGGING_VERSION
53{
54 WORD wStructVersion;
55 WORD wMajor;
56 WORD wMinor;
57 WORD wBuild;
58 WORD wRevision;
59} CLR_DEBUGGING_VERSION;
60
61[
62 object,
63 local,
64 uuid(bd39d1d2-ba2f-486a-89b0-b4b0cb466891)
65]
66interface ICLRRuntimeInfo : IUnknown
67{
68 HRESULT GetVersionString(
69 [out, size_is(*pcchBuffer)] LPWSTR pwzBuffer,
70 [in, out] DWORD *pcchBuffer);
71
72 HRESULT GetRuntimeDirectory(
73 [out, size_is(*pcchBuffer)] LPWSTR pwzBuffer,
74 [in, out] DWORD *pcchBuffer);
75
76 HRESULT IsLoaded(
77 [in] HANDLE hndProcess,
78 [out, retval] BOOL *pbLoaded);
79
80 HRESULT LoadErrorString(
81 [in] UINT iResourceID,
82 [out, size_is(*pcchBuffer)] LPWSTR pwzBuffer,
83 [in, out] DWORD *pcchBuffer,
84 [in] LONG iLocaleid);
85
86 HRESULT LoadLibrary(
87 [in] LPCWSTR pwzDllName,
88 [out, retval] HMODULE *phndModule);
89
90 HRESULT GetProcAddress(
91 [in] LPCSTR pszProcName,
92 [out, retval] LPVOID *ppProc);
93
94 HRESULT GetInterface(
95 [in] REFCLSID rclsid,
96 [in] REFIID riid,
97 [out, iid_is(riid), retval] LPVOID *ppUnk);
98
99 HRESULT IsLoadable(
100 [out, retval] BOOL *pbLoadable);
101
102 HRESULT SetDefaultStartupFlags(
103 [in] DWORD dwStartupFlags,
104 [in] LPCWSTR pwzHostConfigFile);
105
106 HRESULT GetDefaultStartupFlags(
107 [out] DWORD *pdwStartupFlags,
108 [out, size_is(*pcchHostConfigFile)] LPWSTR pwzHostConfigFile,
109 [in, out] DWORD *pcchHostConfigFile);
110
111 HRESULT BindAsLegacyV2Runtime();
112
113 HRESULT IsStarted(
114 [out] BOOL *pbStarted,
115 [out] DWORD *pdwStartupFlags);
116};
117
118typedef HRESULT (__stdcall *CallbackThreadSetFnPtr)();
119typedef HRESULT (__stdcall *CallbackThreadUnsetFnPtr)();
120
121typedef void (__stdcall *RuntimeLoadedCallbackFnPtr)(
122 ICLRRuntimeInfo *pRuntimeInfo,
123 CallbackThreadSetFnPtr pfnCallbackThreadSet,
124 CallbackThreadUnsetFnPtr pfnCallbackThreadUnset);
125
126cpp_quote("DEFINE_GUID(CLSID_CLRDebuggingLegacy, 0xDF8395B5,0xA4BA,0x450b,0xA7,0x7C,0xA9,0xA4,0x77,0x62,0xC5,0x20);")
127cpp_quote("DEFINE_GUID(CLSID_CLRMetaHost, 0x9280188d,0x0e8e,0x4867,0xb3,0x0c,0x7f,0xa8,0x38,0x84,0xe8,0xde);")
128
129[
130 object,
131 local,
132 uuid(d332db9e-b9b3-4125-8207-a14884f53216)
133]
134interface ICLRMetaHost : IUnknown
135{
136 HRESULT GetRuntime(
137 [in] LPCWSTR pwzVersion,
138 [in] REFIID iid,
139 [out, iid_is(iid), retval] LPVOID *ppRuntime);
140
141 HRESULT GetVersionFromFile(
142 [in] LPCWSTR pwzFilePath,
143 [out, size_is(*pcchBuffer)] LPWSTR pwzBuffer,
144 [in, out] DWORD *pcchBuffer);
145
146 HRESULT EnumerateInstalledRuntimes(
147 [out, retval] IEnumUnknown **ppEnumerator);
148
149 HRESULT EnumerateLoadedRuntimes(
150 [in] HANDLE hndProcess,
151 [out, retval] IEnumUnknown **ppEnumerator);
152
153 HRESULT RequestRuntimeLoadedNotification(
154 [in] RuntimeLoadedCallbackFnPtr pCallbackFunction);
155
156 HRESULT QueryLegacyV2RuntimeBinding(
157 [in] REFIID riid,
158 [out, iid_is(riid), retval] LPVOID *ppUnk);
159
160 HRESULT ExitProcess(
161 [in] INT32 iExitCode);
162};
163
164[
165 object,
166 local,
167 uuid(e2190695-77b2-492e-8e14-c4b3a7fdd593)
168]
169interface ICLRMetaHostPolicy : IUnknown
170{
171 HRESULT GetRequestedRuntime([in] METAHOST_POLICY_FLAGS dwPolicyFlags,
172 [in] LPCWSTR pwzBinary, [in] IStream *pCfgStream,
173 [in, out] LPWSTR pwzVersion, [in, out] DWORD *pcchVersion,
174 [out] LPWSTR pwzImageVersion, [out, in] DWORD *pcchImageVersion,
175 [out] DWORD *pdwConfigFlags, [in] REFIID riid, [retval, out] LPVOID *ppRuntime);
176}
177
178[
179 uuid(2ebcd49a-1b47-4a61-b13a-4a03701e594b)
180]
181coclass CLRMetaHostPolicy
182{
183 [default] interface ICLRMetaHostPolicy;
184}
185
186[
187 object,
188 local,
189 uuid(3151c08d-4d09-4f9b-8838-2880bf18fe51)
190]
191interface ICLRDebuggingLibraryProvider : IUnknown
192{
193 HRESULT ProvideLibrary([in] const WCHAR *pwszFileName,
194 [in] DWORD dwTimestamp, [in] DWORD dwSizeOfImage,
195 [out] HMODULE *phModule);
196}
197
198[
199 object,
200 local,
201 uuid(d28f3c5a-9634-4206-a509-477552eefb10)
202]
203interface ICLRDebugging : IUnknown
204{
205 HRESULT OpenVirtualProcess([in] ULONG64 moduleBaseAddress,
206 [in] IUnknown *pDataTarget, [in] ICLRDebuggingLibraryProvider *pLibraryProvider,
207 [in] CLR_DEBUGGING_VERSION *pMaxDebuggerSupportedVersion,
208 [in] REFIID riidProcess, [out] IUnknown **ppProcess,
209 [out, in] CLR_DEBUGGING_VERSION *pVersion,
210 [out] CLR_DEBUGGING_PROCESS_FLAGS *pdwFlags);
211
212 HRESULT CanUnloadNow(HMODULE hModule);
213}
214
215cpp_quote("HRESULT WINAPI CLRCreateInstance(REFCLSID clsid, REFIID riid, LPVOID *ppInterface);")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette