21cpp_quote(
"/* FIXME: #include <gcghost.h> */")
28cpp_quote("
HRESULT WINAPI GetRequestedRuntimeInfo(
LPCWSTR,
LPCWSTR,
LPCWSTR,
DWORD,
DWORD,
LPWSTR,
DWORD,
DWORD*,
LPWSTR,
DWORD,
DWORD*);")
31cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)(void);")
33cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)();")
35cpp_quote("HRESULT WINAPI LockClrVersion(FLockClrVersionCallback,FLockClrVersionCallback*,FLockClrVersionCallback*);")
37typedef void* HDOMAINENUM;
39typedef 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
49typedef HRESULT (__stdcall *FExecuteInAppDomainCallback)([in] void* cookie);
52 uuid(F31D1788-C397-4725-87A5-6AF3472C2791),
57interface IGCThreadControl : IUnknown
59 HRESULT ThreadIsBlockingForSuspension();
61 HRESULT SuspensionStarting();
63 HRESULT SuspensionEnding(DWORD generation);
67 uuid(5513D564-8374-4cb9-AED9-0083F4160A1D),
72interface IGCHostControl : IUnknown
74 HRESULT RequestVirtualMemLimit([in] SIZE_T nMaxVirtualMemMB,
75 [in, out] SIZE_T* nNewMaxVirtualMemMB);
79 uuid(23D86786-0BB5-4774-8FB5-E3522ADD6246),
84interface IDebuggerThreadControl : IUnknown
86 HRESULT ThreadIsBlockingForDebugger();
88 HRESULT ReleaseAllRuntimeThreads();
90 HRESULT StartBlockingForDebugger(DWORD dwUnused);
94 uuid(5C2B07A5-1E98-11d3-872F-00C04F79ED0D),
99interface ICorConfiguration : IUnknown
101 HRESULT SetGCThreadControl([in] IGCThreadControl* GCThreadControl);
103 HRESULT SetGCHostControl([in] IGCHostControl* GCHostControl);
105 HRESULT SetDebuggerThreadControl([in] IDebuggerThreadControl* debuggerThreadControl);
107 HRESULT AddDebuggerSpecialThread([in] DWORD specialThreadId);
111 uuid(9065597E-D1A1-4fb2-B6BA-7E1FCE230F61),
115interface ICLRControl : IUnknown
117 HRESULT GetCLRManager([in] REFIID riid, [out] void **ppObject);
119 HRESULT SetAppDomainManagerType([in] LPCWSTR appDomainManagerAssembly,
120 [in] LPCWSTR appDomainManagerType);
124 uuid(02CA073C-7079-4860-880A-C2F7A449C991),
128interface IHostControl : IUnknown
130 HRESULT GetHostManager( [in] REFIID riid, [out] void **ppObject);
132 HRESULT SetAppDomainManager([in] DWORD appDomainID,
133 [in] IUnknown* appDomainManager);
136cpp_quote("DEFINE_GUID(CLSID_CorRuntimeHost, 0xcb2f6723,0xab3a,0x11d2,0x9c,0x40,0x00,0xc0,0x4f,0xa3,0x0a,0x3e);")
139 uuid(CB2F6722-AB3A-11d2-9C40-00C04FA30A3E),
144interface ICorRuntimeHost : IUnknown
146 HRESULT CreateLogicalThreadState();
147 HRESULT DeleteLogicalThreadState();
148 HRESULT SwitchInLogicalThreadState([in] DWORD *fiberCookie);
150 HRESULT SwitchOutLogicalThreadState([out] DWORD **fiberCookie);
152 HRESULT LocksHeldByLogicalThread( [out] DWORD *pCount );
154 HRESULT MapFile([in] HANDLE hFile, [out] HMODULE* mapAddress);
156 HRESULT GetConfiguration([out] ICorConfiguration** pConfiguration);
162 HRESULT CreateDomain([in] LPCWSTR friendlyName,
163 [in] IUnknown* identityArray,
164 [out] IUnknown** appDomain);
166 HRESULT GetDefaultDomain([out] IUnknown** pAppDomain);
168 HRESULT EnumDomains([out] HDOMAINENUM *hEnum);
170 HRESULT NextDomain([in] HDOMAINENUM hEnum, [out] IUnknown** appDomain);
172 HRESULT CloseEnum([in] HDOMAINENUM hEnum);
174 HRESULT CreateDomainEx([in] LPCWSTR friendlyName,
175 [in] IUnknown* setup,
176 [in] IUnknown* evidence,
177 [out] IUnknown** appDomain);
179 HRESULT CreateDomainSetup([out] IUnknown** appDomainSetup);
181 HRESULT CreateEvidence([out] IUnknown** evidence);
183 HRESULT UnloadDomain([in] IUnknown* appDomain);
185 HRESULT CurrentDomain([out] IUnknown** appDomain);
188cpp_quote("DEFINE_GUID(CLSID_CLRRuntimeHost, 0x90f1a06e,0x7712,0x4762,0x86,0xb5,0x7a,0x5e,0xba,0x6b,0xdb,0x02);")
191 uuid(90f1a06c-7712-4762-86b5-7a5eba6bdb02),
195interface ICLRRuntimeHost : IUnknown
201 HRESULT SetHostControl([in] IHostControl *pHostControl);
203 HRESULT GetCLRControl([out] ICLRControl **pCLRControl);
205 HRESULT UnloadAppDomain([in] DWORD dwAppDomainId,
206 [in] BOOL fWaitUntilDone);
208 HRESULT ExecuteInAppDomain([in] DWORD dwAppDomainId,
209 [in] FExecuteInAppDomainCallback pCallback,
212 HRESULT GetCurrentAppDomainId([out] DWORD *pdwAppDomainId);
214 HRESULT ExecuteApplication([in] LPCWSTR pwzAppFullName,
215 [in] DWORD dwManifestPaths,
216 [in] LPCWSTR *ppwzManifestPaths,
217 [in] DWORD dwActivationData,
218 [in] LPCWSTR *ppwzActivationData,
219 [out] int *pReturnValue);
221 HRESULT ExecuteInDefaultAppDomain([in] LPCWSTR pwzAssemblyPath,
222 [in] LPCWSTR pwzTypeName,
223 [in] LPCWSTR pwzMethodName,
224 [in] LPCWSTR pwzArgument,
225 [out] DWORD *pReturnValue);
229 uuid(C3FCC19E-A970-11d2-8B5A-00A0C9B7C9C4),
233interface IManagedObject : IUnknown
235 HRESULT GetSerializedBuffer([out] BSTR *pBSTR);
237 HRESULT GetObjectIdentity([out] BSTR *pBSTRGUID,
238 [out] int *AppDomainID,
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
HRESULT WINAPI LoadLibraryShim(LPCWSTR, LPCWSTR, LPVOID, HMODULE *)
void WINAPI CorExitProcess(int)
HRESULT WINAPI GetCORVersion(LPWSTR, DWORD, DWORD *)
HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR, LPCWSTR, LPCWSTR, VOID *, DWORD, REFCLSID, REFIID, LPVOID *)
HRESULT WINAPI GetCORSystemDirectory(LPWSTR, DWORD, DWORD *)
HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR, LPCWSTR, LPCWSTR, DWORD, DWORD, LPWSTR, DWORD, DWORD *, LPWSTR, DWORD, DWORD *)