include: Added d3d10_1.idl.
[wine] / include / mscoree.idl
1 /*
2  * Copyright (C) 2007 Francois Gouget
3  * Copyright (C) 2008 Alistair Leslie-Hughes
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19
20 import "unknwn.idl";
21 cpp_quote("/* FIXME: #include <gcghost.h> */")
22 cpp_quote("/* FIXME: #include <ivalidator.h> */")
23
24 cpp_quote("HRESULT     WINAPI CorBindToRuntimeHost(LPCWSTR,LPCWSTR,LPCWSTR,VOID*,DWORD,REFCLSID,REFIID,LPVOID*);")
25 cpp_quote("void        WINAPI CorExitProcess(int);")
26 cpp_quote("HRESULT     WINAPI GetCORSystemDirectory(LPWSTR,DWORD,DWORD*);")
27 cpp_quote("HRESULT     WINAPI GetCORVersion(LPWSTR,DWORD,DWORD*);")
28 cpp_quote("HRESULT     WINAPI GetRequestedRuntimeInfo(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,LPWSTR,DWORD,DWORD*,LPWSTR,DWORD,DWORD*);")
29 cpp_quote("HRESULT     WINAPI LoadLibraryShim(LPCWSTR,LPCWSTR,LPVOID,HMODULE*);")
30 cpp_quote("#ifdef WINE_STRICT_PROTOTYPES")
31 cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)(void);")
32 cpp_quote("#else")
33 cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)();")
34 cpp_quote("#endif")
35 cpp_quote("HRESULT     WINAPI LockClrVersion(FLockClrVersionCallback,FLockClrVersionCallback*,FLockClrVersionCallback*);")
36
37 typedef void* HDOMAINENUM;
38
39 typedef enum RUNTIME_INFO_FLAGS {
40     RUNTIME_INFO_UPGRADE_VERSION = 0x1,
41     RUNTIME_INFO_REQUEST_IA64 = 0x2,
42     RUNTIME_INFO_REQUEST_AMD64 = 0x4,
43     RUNTIME_INFO_REQUEST_X86 = 0x8,
44     RUNTIME_INFO_DONT_RETURN_DIRECTORY = 0x10,
45     RUNTIME_INFO_DONT_RETURN_VERSION = 0x20,
46     RUNTIME_INFO_DONT_SHOW_ERROR_DIALOG = 0x40
47 } RUNTIME_INFO_FLAGS;
48
49 [
50     uuid(F31D1788-C397-4725-87A5-6AF3472C2791),
51     version(1.0),
52     object,
53     local
54 ]
55 interface IGCThreadControl : IUnknown
56 {
57     HRESULT ThreadIsBlockingForSuspension();
58
59     HRESULT SuspensionStarting();
60
61     HRESULT SuspensionEnding(DWORD generation);
62 }
63
64 [
65     uuid(5513D564-8374-4cb9-AED9-0083F4160A1D),
66     version(1.1),
67     local,
68     object
69 ]
70 interface IGCHostControl : IUnknown
71 {
72     HRESULT RequestVirtualMemLimit([in] SIZE_T nMaxVirtualMemMB,
73                                    [in, out] SIZE_T* nNewMaxVirtualMemMB);
74 }
75
76 [
77     uuid(23D86786-0BB5-4774-8FB5-E3522ADD6246),
78     version(1.0),
79     local,
80     object
81 ]
82 interface IDebuggerThreadControl : IUnknown
83 {
84     HRESULT ThreadIsBlockingForDebugger();
85
86     HRESULT ReleaseAllRuntimeThreads();
87
88     HRESULT StartBlockingForDebugger(DWORD dwUnused);
89 }
90
91 [
92     uuid(5C2B07A5-1E98-11d3-872F-00C04F79ED0D),
93     version(1.0),
94     local,
95     object
96 ]
97 interface ICorConfiguration : IUnknown
98 {
99     HRESULT SetGCThreadControl([in] IGCThreadControl* GCThreadControl);
100
101     HRESULT SetGCHostControl([in] IGCHostControl* GCHostControl);
102
103     HRESULT SetDebuggerThreadControl([in] IDebuggerThreadControl* debuggerThreadControl);
104
105     HRESULT AddDebuggerSpecialThread([in] DWORD specialThreadId);
106 }
107
108 [
109     uuid(9065597E-D1A1-4fb2-B6BA-7E1FCE230F61),
110     version(1.0),
111     local
112 ]
113 interface ICLRControl : IUnknown
114 {
115     HRESULT GetCLRManager([in] REFIID riid, [out] void **ppObject);
116
117         HRESULT SetAppDomainManagerType([in] LPCWSTR appDomainManagerAssembly,
118                           [in] LPCWSTR appDomainManagerType);
119 }
120
121 [
122     uuid(02CA073C-7079-4860-880A-C2F7A449C991),
123     version(1.0),
124     local
125 ]
126 interface IHostControl : IUnknown
127 {
128     HRESULT GetHostManager( [in] REFIID riid, [out] void **ppObject);
129
130     HRESULT SetAppDomainManager([in] DWORD appDomainID,
131                             [in] IUnknown* appDomainManager);
132 }
133
134 cpp_quote("DEFINE_GUID(CLSID_CorRuntimeHost, 0xcb2f6723,0xab3a,0x11d2,0x9c,0x40,0x00,0xc0,0x4f,0xa3,0x0a,0x3e);")
135
136 [
137     uuid(CB2F6722-AB3A-11d2-9C40-00C04FA30A3E),
138     version(1.0),
139     local,
140     object
141 ]
142 interface ICorRuntimeHost : IUnknown
143 {
144     HRESULT CreateLogicalThreadState();
145     HRESULT DeleteLogicalThreadState();
146     HRESULT SwitchInLogicalThreadState([in] DWORD *fiberCookie);
147
148     HRESULT SwitchOutLogicalThreadState([out] DWORD **fiberCookie);
149
150     HRESULT LocksHeldByLogicalThread( [out] DWORD *pCount );
151
152     HRESULT MapFile([in] HANDLE hFile, [out] HMODULE* mapAddress);
153
154     HRESULT GetConfiguration([out] ICorConfiguration** pConfiguration);
155
156     HRESULT Start();
157
158     HRESULT Stop();
159
160     HRESULT CreateDomain([in] LPCWSTR friendlyName,
161                          [in] IUnknown* identityArray,
162                          [out] IUnknown** appDomain);
163
164     HRESULT GetDefaultDomain([out] IUnknown** pAppDomain);
165
166     HRESULT EnumDomains([out] HDOMAINENUM *hEnum);
167
168     HRESULT NextDomain([in] HDOMAINENUM hEnum, [out] IUnknown** appDomain);
169
170     HRESULT CloseEnum([in] HDOMAINENUM hEnum);
171
172     HRESULT CreateDomainEx([in] LPCWSTR friendlyName,
173                            [in] IUnknown* setup,
174                            [in] IUnknown* evidence,
175                            [out] IUnknown** appDomain);
176
177     HRESULT CreateDomainSetup([out] IUnknown** appDomainSetup);
178
179     HRESULT CreateEvidence([out] IUnknown** evidence);
180
181     HRESULT UnloadDomain([in] IUnknown* appDomain);
182
183     HRESULT CurrentDomain([out] IUnknown** appDomain);
184 };