mscoree.idl 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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. import "unknwn.idl";
  20. cpp_quote("/* FIXME: #include <gcghost.h> */")
  21. cpp_quote("/* FIXME: #include <ivalidator.h> */")
  22. cpp_quote("HRESULT WINAPI CorBindToRuntimeHost(LPCWSTR,LPCWSTR,LPCWSTR,VOID*,DWORD,REFCLSID,REFIID,LPVOID*);")
  23. cpp_quote("void WINAPI CorExitProcess(int);")
  24. cpp_quote("HRESULT WINAPI GetCORSystemDirectory(LPWSTR,DWORD,DWORD*);")
  25. cpp_quote("HRESULT WINAPI GetCORVersion(LPWSTR,DWORD,DWORD*);")
  26. cpp_quote("HRESULT WINAPI GetRequestedRuntimeInfo(LPCWSTR,LPCWSTR,LPCWSTR,DWORD,DWORD,LPWSTR,DWORD,DWORD*,LPWSTR,DWORD,DWORD*);")
  27. cpp_quote("HRESULT WINAPI LoadLibraryShim(LPCWSTR,LPCWSTR,LPVOID,HMODULE*);")
  28. cpp_quote("#ifdef WINE_STRICT_PROTOTYPES")
  29. cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)(void);")
  30. cpp_quote("#else")
  31. cpp_quote("typedef HRESULT (__stdcall *FLockClrVersionCallback)();")
  32. cpp_quote("#endif")
  33. cpp_quote("HRESULT WINAPI LockClrVersion(FLockClrVersionCallback,FLockClrVersionCallback*,FLockClrVersionCallback*);")
  34. typedef void* HDOMAINENUM;
  35. typedef enum RUNTIME_INFO_FLAGS {
  36. RUNTIME_INFO_UPGRADE_VERSION = 0x1,
  37. RUNTIME_INFO_REQUEST_IA64 = 0x2,
  38. RUNTIME_INFO_REQUEST_AMD64 = 0x4,
  39. RUNTIME_INFO_REQUEST_X86 = 0x8,
  40. RUNTIME_INFO_DONT_RETURN_DIRECTORY = 0x10,
  41. RUNTIME_INFO_DONT_RETURN_VERSION = 0x20,
  42. RUNTIME_INFO_DONT_SHOW_ERROR_DIALOG = 0x40
  43. } RUNTIME_INFO_FLAGS;
  44. typedef HRESULT (__stdcall *FExecuteInAppDomainCallback)([in] void* cookie);
  45. [
  46. uuid(F31D1788-C397-4725-87A5-6AF3472C2791),
  47. version(1.0),
  48. object,
  49. local
  50. ]
  51. interface IGCThreadControl : IUnknown
  52. {
  53. HRESULT ThreadIsBlockingForSuspension();
  54. HRESULT SuspensionStarting();
  55. HRESULT SuspensionEnding(DWORD generation);
  56. }
  57. [
  58. uuid(5513D564-8374-4cb9-AED9-0083F4160A1D),
  59. version(1.1),
  60. local,
  61. object
  62. ]
  63. interface IGCHostControl : IUnknown
  64. {
  65. HRESULT RequestVirtualMemLimit([in] SIZE_T nMaxVirtualMemMB,
  66. [in, out] SIZE_T* nNewMaxVirtualMemMB);
  67. }
  68. [
  69. uuid(23D86786-0BB5-4774-8FB5-E3522ADD6246),
  70. version(1.0),
  71. local,
  72. object
  73. ]
  74. interface IDebuggerThreadControl : IUnknown
  75. {
  76. HRESULT ThreadIsBlockingForDebugger();
  77. HRESULT ReleaseAllRuntimeThreads();
  78. HRESULT StartBlockingForDebugger(DWORD dwUnused);
  79. }
  80. [
  81. uuid(5C2B07A5-1E98-11d3-872F-00C04F79ED0D),
  82. version(1.0),
  83. local,
  84. object
  85. ]
  86. interface ICorConfiguration : IUnknown
  87. {
  88. HRESULT SetGCThreadControl([in] IGCThreadControl* GCThreadControl);
  89. HRESULT SetGCHostControl([in] IGCHostControl* GCHostControl);
  90. HRESULT SetDebuggerThreadControl([in] IDebuggerThreadControl* debuggerThreadControl);
  91. HRESULT AddDebuggerSpecialThread([in] DWORD specialThreadId);
  92. }
  93. [
  94. uuid(9065597E-D1A1-4fb2-B6BA-7E1FCE230F61),
  95. version(1.0),
  96. local
  97. ]
  98. interface ICLRControl : IUnknown
  99. {
  100. HRESULT GetCLRManager([in] REFIID riid, [out] void **ppObject);
  101. HRESULT SetAppDomainManagerType([in] LPCWSTR appDomainManagerAssembly,
  102. [in] LPCWSTR appDomainManagerType);
  103. }
  104. [
  105. uuid(02CA073C-7079-4860-880A-C2F7A449C991),
  106. version(1.0),
  107. local
  108. ]
  109. interface IHostControl : IUnknown
  110. {
  111. HRESULT GetHostManager( [in] REFIID riid, [out] void **ppObject);
  112. HRESULT SetAppDomainManager([in] DWORD appDomainID,
  113. [in] IUnknown* appDomainManager);
  114. }
  115. cpp_quote("DEFINE_GUID(CLSID_CorRuntimeHost, 0xcb2f6723,0xab3a,0x11d2,0x9c,0x40,0x00,0xc0,0x4f,0xa3,0x0a,0x3e);")
  116. [
  117. uuid(CB2F6722-AB3A-11d2-9C40-00C04FA30A3E),
  118. version(1.0),
  119. local,
  120. object
  121. ]
  122. interface ICorRuntimeHost : IUnknown
  123. {
  124. HRESULT CreateLogicalThreadState();
  125. HRESULT DeleteLogicalThreadState();
  126. HRESULT SwitchInLogicalThreadState([in] DWORD *fiberCookie);
  127. HRESULT SwitchOutLogicalThreadState([out] DWORD **fiberCookie);
  128. HRESULT LocksHeldByLogicalThread( [out] DWORD *pCount );
  129. HRESULT MapFile([in] HANDLE hFile, [out] HMODULE* mapAddress);
  130. HRESULT GetConfiguration([out] ICorConfiguration** pConfiguration);
  131. HRESULT Start();
  132. HRESULT Stop();
  133. HRESULT CreateDomain([in] LPCWSTR friendlyName,
  134. [in] IUnknown* identityArray,
  135. [out] IUnknown** appDomain);
  136. HRESULT GetDefaultDomain([out] IUnknown** pAppDomain);
  137. HRESULT EnumDomains([out] HDOMAINENUM *hEnum);
  138. HRESULT NextDomain([in] HDOMAINENUM hEnum, [out] IUnknown** appDomain);
  139. HRESULT CloseEnum([in] HDOMAINENUM hEnum);
  140. HRESULT CreateDomainEx([in] LPCWSTR friendlyName,
  141. [in] IUnknown* setup,
  142. [in] IUnknown* evidence,
  143. [out] IUnknown** appDomain);
  144. HRESULT CreateDomainSetup([out] IUnknown** appDomainSetup);
  145. HRESULT CreateEvidence([out] IUnknown** evidence);
  146. HRESULT UnloadDomain([in] IUnknown* appDomain);
  147. HRESULT CurrentDomain([out] IUnknown** appDomain);
  148. }
  149. cpp_quote("DEFINE_GUID(CLSID_CLRRuntimeHost, 0x90f1a06e,0x7712,0x4762,0x86,0xb5,0x7a,0x5e,0xba,0x6b,0xdb,0x02);")
  150. [
  151. uuid(90f1a06c-7712-4762-86b5-7a5eba6bdb02),
  152. local,
  153. object
  154. ]
  155. interface ICLRRuntimeHost : IUnknown
  156. {
  157. HRESULT Start();
  158. HRESULT Stop();
  159. HRESULT SetHostControl([in] IHostControl *pHostControl);
  160. HRESULT GetCLRControl([out] ICLRControl **pCLRControl);
  161. HRESULT UnloadAppDomain([in] DWORD dwAppDomainId,
  162. [in] BOOL fWaitUntilDone);
  163. HRESULT ExecuteInAppDomain([in] DWORD dwAppDomainId,
  164. [in] FExecuteInAppDomainCallback pCallback,
  165. [in] void *cookie);
  166. HRESULT GetCurrentAppDomainId([out] DWORD *pdwAppDomainId);
  167. HRESULT ExecuteApplication([in] LPCWSTR pwzAppFullName,
  168. [in] DWORD dwManifestPaths,
  169. [in] LPCWSTR *ppwzManifestPaths,
  170. [in] DWORD dwActivationData,
  171. [in] LPCWSTR *ppwzActivationData,
  172. [out] int *pReturnValue);
  173. HRESULT ExecuteInDefaultAppDomain([in] LPCWSTR pwzAssemblyPath,
  174. [in] LPCWSTR pwzTypeName,
  175. [in] LPCWSTR pwzMethodName,
  176. [in] LPCWSTR pwzArgument,
  177. [out] DWORD *pReturnValue);
  178. }
  179. [
  180. uuid(C3FCC19E-A970-11d2-8B5A-00A0C9B7C9C4),
  181. local,
  182. object
  183. ]
  184. interface IManagedObject : IUnknown
  185. {
  186. HRESULT GetSerializedBuffer([out] BSTR *pBSTR);
  187. HRESULT GetObjectIdentity([out] BSTR *pBSTRGUID,
  188. [out] int *AppDomainID,
  189. [out] int *pCCW);
  190. }