2 * Copyright (C) 2007 Francois Gouget
3 * Copyright (C) 2008 Alistair Leslie-Hughes
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.
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.
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
21 cpp_quote
("/* FIXME: #include <gcghost.h> */")
22 cpp_quote
("/* FIXME: #include <ivalidator.h> */")
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
("typedef HRESULT (__stdcall *FLockClrVersionCallback)();")
31 cpp_quote
("HRESULT WINAPI LockClrVersion(FLockClrVersionCallback,FLockClrVersionCallback*,FLockClrVersionCallback*);")
33 typedef void* HDOMAINENUM
;
36 uuid(F31D1788
-C397
-4725-87A5
-6AF3472C2791
),
41 interface IGCThreadControl
: IUnknown
43 HRESULT ThreadIsBlockingForSuspension
();
45 HRESULT SuspensionStarting
();
47 HRESULT SuspensionEnding
(DWORD generation
);
51 uuid(5513D564
-8374-4cb9
-AED9
-0083F4160A1D
),
56 interface IGCHostControl
: IUnknown
58 HRESULT RequestVirtualMemLimit
([in] SIZE_T nMaxVirtualMemMB
,
59 [in, out] SIZE_T
* nNewMaxVirtualMemMB
);
63 uuid(23D86786
-0BB5
-4774-8FB5
-E3522ADD6246
),
68 interface IDebuggerThreadControl
: IUnknown
70 HRESULT ThreadIsBlockingForDebugger
();
72 HRESULT ReleaseAllRuntimeThreads
();
74 HRESULT StartBlockingForDebugger
(DWORD dwUnused
);
78 uuid(5C2B07A5
-1E98
-11d3
-872F
-00C04F79ED0D
),
83 interface ICorConfiguration
: IUnknown
85 HRESULT SetGCThreadControl
([in] IGCThreadControl
* GCThreadControl
);
87 HRESULT SetGCHostControl
([in] IGCHostControl
* GCHostControl
);
89 HRESULT SetDebuggerThreadControl
([in] IDebuggerThreadControl
* debuggerThreadControl
);
91 HRESULT AddDebuggerSpecialThread
([in] DWORD specialThreadId
);
95 uuid(9065597E
-D1A1
-4fb2
-B6BA
-7E1FCE230F61
),
99 interface ICLRControl
: IUnknown
101 HRESULT GetCLRManager
([in] REFIID riid
, [out] void **ppObject
);
103 HRESULT SetAppDomainManagerType
([in] LPCWSTR appDomainManagerAssembly
,
104 [in] LPCWSTR appDomainManagerType
);
108 uuid(02CA073C
-7079-4860-880A
-C2F7A449C991
),
112 interface IHostControl
: IUnknown
114 HRESULT GetHostManager
( [in] REFIID riid
, [out] void **ppObject
);
116 HRESULT SetAppDomainManager
([in] DWORD appDomainID
,
117 [in] IUnknown
* appDomainManager
);
121 uuid(CB2F6722
-AB3A
-11d2
-9C40
-00C04FA30A3E
),
126 interface ICorRuntimeHost
: IUnknown
128 HRESULT CreateLogicalThreadState
();
129 HRESULT DeleteLogicalThreadState
();
130 HRESULT SwitchInLogicalThreadState
([in] DWORD
*fiberCookie
);
132 HRESULT SwitchOutLogicalThreadState
([out] DWORD
**fiberCookie
);
134 HRESULT LocksHeldByLogicalThread
( [out] DWORD
*pCount
);
136 HRESULT MapFile
([in] HANDLE hFile
, [out] HMODULE
* mapAddress
);
138 HRESULT GetConfiguration
([out] ICorConfiguration
** pConfiguration
);
144 HRESULT CreateDomain
([in] LPCWSTR friendlyName
,
145 [in] IUnknown
* identityArray
,
146 [out] IUnknown
** appDomain
);
148 HRESULT GetDefaultDomain
([out] IUnknown
** pAppDomain
);
150 HRESULT EnumDomains
([out] HDOMAINENUM
*hEnum
);
152 HRESULT NextDomain
([in] HDOMAINENUM hEnum
, [out] IUnknown
** appDomain
);
154 HRESULT CloseEnum
([in] HDOMAINENUM hEnum
);
156 HRESULT CreateDomainEx
([in] LPCWSTR friendlyName
,
157 [in] IUnknown
* setup
,
158 [in] IUnknown
* evidence
,
159 [out] IUnknown
** appDomain
);
161 HRESULT CreateDomainSetup
([out] IUnknown
** appDomainSetup
);
163 HRESULT CreateEvidence
([out] IUnknown
** evidence
);
165 HRESULT UnloadDomain
([in] IUnknown
* appDomain
);
167 HRESULT CurrentDomain
([out] IUnknown
** appDomain
);