quartz: Store the stream index in the avi stream for files that have them.
[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
31 typedef void* HDOMAINENUM;
32
33 [
34     uuid(F31D1788-C397-4725-87A5-6AF3472C2791),
35     version(1.0),
36     object,
37     local
38 ]
39 interface IGCThreadControl : IUnknown
40 {
41     HRESULT ThreadIsBlockingForSuspension();
42
43     HRESULT SuspensionStarting();
44
45     HRESULT SuspensionEnding(DWORD generation);
46 }
47
48 [
49     uuid(5513D564-8374-4cb9-AED9-0083F4160A1D),
50     version(1.1),
51     local,
52     object
53 ]
54 interface IGCHostControl : IUnknown
55 {
56     HRESULT RequestVirtualMemLimit([in] SIZE_T nMaxVirtualMemMB,
57                                    [in, out] SIZE_T* nNewMaxVirtualMemMB);
58 }
59
60 [
61     uuid(23D86786-0BB5-4774-8FB5-E3522ADD6246),
62     version(1.0),
63     local,
64     object
65 ]
66 interface IDebuggerThreadControl : IUnknown
67 {
68     HRESULT ThreadIsBlockingForDebugger();
69
70     HRESULT ReleaseAllRuntimeThreads();
71
72     HRESULT StartBlockingForDebugger(DWORD dwUnused);
73 }
74
75 [
76     uuid(5C2B07A5-1E98-11d3-872F-00C04F79ED0D),
77     version(1.0),
78     local,
79     object
80 ]
81 interface ICorConfiguration : IUnknown
82 {
83     HRESULT SetGCThreadControl([in] IGCThreadControl* GCThreadControl);
84
85     HRESULT SetGCHostControl([in] IGCHostControl* GCHostControl);
86
87     HRESULT SetDebuggerThreadControl([in] IDebuggerThreadControl* debuggerThreadControl);
88
89     HRESULT AddDebuggerSpecialThread([in] DWORD specialThreadId);
90 }
91
92 [
93     uuid(9065597E-D1A1-4fb2-B6BA-7E1FCE230F61),
94     version(1.0),
95     local
96 ]
97 interface ICLRControl : IUnknown
98 {
99     HRESULT GetCLRManager([in] REFIID riid, [out] void **ppObject);
100
101         HRESULT SetAppDomainManagerType([in] LPCWSTR appDomainManagerAssembly,
102                           [in] LPCWSTR appDomainManagerType);
103 }
104
105 [
106     uuid(02CA073C-7079-4860-880A-C2F7A449C991),
107     version(1.0),
108     local
109 ]
110 interface IHostControl : IUnknown
111 {
112     HRESULT GetHostManager( [in] REFIID riid, [out] void **ppObject);
113
114     HRESULT SetAppDomainManager([in] DWORD appDomainID,
115                             [in] IUnknown* appDomainManager);
116 }
117
118 [
119     uuid(CB2F6722-AB3A-11d2-9C40-00C04FA30A3E),
120     version(1.0),
121     local,
122     object
123 ]
124 interface ICorRuntimeHost : IUnknown
125 {
126     HRESULT CreateLogicalThreadState();
127     HRESULT DeleteLogicalThreadState();
128     HRESULT SwitchInLogicalThreadState([in] DWORD *fiberCookie);
129
130     HRESULT SwitchOutLogicalThreadState([out] DWORD **fiberCookie);
131
132     HRESULT LocksHeldByLogicalThread( [out] DWORD *pCount );
133
134     HRESULT MapFile([in] HANDLE hFile, [out] HMODULE* mapAddress);
135
136     HRESULT GetConfiguration([out] ICorConfiguration** pConfiguration);
137
138     HRESULT Start();
139
140     HRESULT Stop();
141
142     HRESULT CreateDomain([in] LPCWSTR friendlyName,
143                          [in] IUnknown* identityArray,
144                          [out] IUnknown** appDomain);
145
146     HRESULT GetDefaultDomain([out] IUnknown** pAppDomain);
147
148     HRESULT EnumDomains([out] HDOMAINENUM *hEnum);
149
150     HRESULT NextDomain([in] HDOMAINENUM hEnum, [out] IUnknown** appDomain);
151
152     HRESULT CloseEnum([in] HDOMAINENUM hEnum);
153
154     HRESULT CreateDomainEx([in] LPCWSTR friendlyName,
155                            [in] IUnknown* setup,
156                            [in] IUnknown* evidence,
157                            [out] IUnknown** appDomain);
158
159     HRESULT CreateDomainSetup([out] IUnknown** appDomainSetup);
160
161     HRESULT CreateEvidence([out] IUnknown** evidence);
162
163     HRESULT UnloadDomain([in] IUnknown* appDomain);
164
165     HRESULT CurrentDomain([out] IUnknown** appDomain);
166 };