ReactOS  0.4.15-dev-489-g75a0787
cor.idl File Reference

Go to the source code of this file.

Classes

interface  IMetaDataDispenser
 
interface  IMetaDataDispenserEx
 

Functions

 DEFINE_GUID (CLSID_CorMetaDataDispenser, 0xe5cb7a31, 0x7512, 0x11d2, 0x89, 0xce, 0x00, 0x80, 0xc7, 0x92, 0xe5, 0xd8)
 
 DEFINE_GUID (CLSID_CorMetaDataDispenserRuntime, 0x1ec2de53, 0x75cc, 0x11d2, 0x97, 0x75, 0x00, 0xa0, 0xc9, 0xb4, 0xd5, 0x0c)
 
BOOL WINAPI _CorDllMain (HINSTANCE, DWORD, LPVOID)
 
__int32 WINAPI _CorExeMain (void)
 
__int32 WINAPI _CorExeMain2 (PBYTE, DWORD, LPWSTR, LPWSTR, LPWSTR)
 
VOID WINAPI _CorImageUnloading (PVOID)
 
HRESULT WINAPI _CorValidateImage (PVOID *, LPCWSTR)
 
HRESULT WINAPI CoInitializeCor (DWORD)
 
void WINAPI CoUninitializeCor (void)
 

Function Documentation

◆ _CorDllMain()

BOOL WINAPI _CorDllMain ( HINSTANCE  ,
DWORD  ,
LPVOID   
)

Definition at line 1083 of file corruntimehost.c.

1084 {
1085  TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
1086 
1087  switch (fdwReason)
1088  {
1089  case DLL_PROCESS_ATTACH:
1090  DisableThreadLibraryCalls(hinstDLL);
1091  FixupVTable(hinstDLL);
1092  break;
1093  case DLL_PROCESS_DETACH:
1094  /* FIXME: clean up the vtables */
1095  break;
1096  }
1097  return TRUE;
1098 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
static IN DWORD IN LPVOID lpvReserved
#define DLL_PROCESS_DETACH
Definition: compat.h:119
#define TRACE(s)
Definition: solgame.cpp:4
static void FixupVTable(HMODULE hmodule)

◆ _CorExeMain()

__int32 WINAPI _CorExeMain ( void  )

Definition at line 1008 of file corruntimehost.c.

1009 {
1010  int exit_code;
1011  int argc;
1012  char **argv;
1013  MonoDomain *domain;
1014  MonoImage *image;
1018  char *filenameA;
1020  RuntimeHost *host;
1021  HRESULT hr;
1022  int i;
1023 
1024  get_utf8_args(&argc, &argv);
1025 
1027 
1028  TRACE("%s", debugstr_w(filename));
1029  for (i=0; i<argc; i++)
1030  TRACE(" %s", debugstr_a(argv[i]));
1031  TRACE("\n");
1032 
1033  filenameA = WtoA(filename);
1034  if (!filenameA)
1035  return -1;
1036 
1038 
1039  hr = get_runtime_info(filename, NULL, NULL, 0, 0, FALSE, &info);
1040 
1041  if (SUCCEEDED(hr))
1042  {
1044 
1045  if (SUCCEEDED(hr))
1047 
1048  if (SUCCEEDED(hr))
1049  {
1050  image = host->mono->mono_image_open_from_module_handle(GetModuleHandleW(NULL),
1051  filenameA, 1, &status);
1052 
1053  if (image)
1054  assembly = host->mono->mono_assembly_load_from(image, filenameA, &status);
1055 
1056  if (assembly)
1057  {
1058  exit_code = host->mono->mono_jit_exec(domain, assembly, argc, argv);
1059  }
1060  else
1061  {
1062  ERR("couldn't load %s, status=%d\n", debugstr_w(filename), status);
1063  exit_code = -1;
1064  }
1065 
1067  }
1068  else
1069  exit_code = -1;
1070 
1071  ICLRRuntimeInfo_Release(info);
1072  }
1073  else
1074  exit_code = -1;
1075 
1076  HeapFree(GetProcessHeap(), 0, argv);
1077 
1079 
1080  return exit_code;
1081 }
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:600
GLeglImageOES image
Definition: gl.h:2204
static int argc
Definition: ServiceArgs.c:12
static void get_utf8_args(int *argc, char ***argv)
HRESULT hr
Definition: shlfolder.c:183
HRESULT ICLRRuntimeInfo_GetRuntimeHost(ICLRRuntimeInfo *iface, RuntimeHost **result)
Definition: metahost.c:544
void unload_all_runtimes(void)
Definition: metahost.c:266
char * host
Definition: whois.c:55
#define argv
Definition: mplay32.c:18
const char * filename
Definition: ioapi.h:135
struct _test_info info[]
Definition: SetCursorPos.c:19
Definition: cookie.c:41
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32
static HRESULT RuntimeHost_GetDefaultDomain(RuntimeHost *This, MonoDomain **result)
smooth NULL
Definition: ftsmooth.c:416
static UINT exit_code
Definition: process.c:78
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:404
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define debugstr_a
Definition: kernel32.h:31
LONG HRESULT
Definition: typedefs.h:78
static void FixupVTable(HMODULE hmodule)
#define MAX_PATH
Definition: compat.h:26
static CHAR filenameA[MAX_PATH]
Definition: storage32.c:42
struct _MonoImage MonoImage
#define ERR(fmt,...)
Definition: debug.h:110
char * WtoA(LPCWSTR wstr)
Definition: mscoree_main.c:30
HRESULT get_runtime_info(LPCWSTR exefile, LPCWSTR version, LPCWSTR config_file, DWORD startup_flags, DWORD runtimeinfo_flags, BOOL legacy, ICLRRuntimeInfo **result)
Definition: metahost.c:1247
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
MonoImageOpenStatus
struct _MonoDomain MonoDomain
struct _MonoAssembly MonoAssembly
static void RuntimeHost_DeleteDomain(RuntimeHost *This, MonoDomain *domain)
static SERVICE_STATUS status
Definition: service.c:31
#define HeapFree(x, y, z)
Definition: compat.h:403
#define SUCCEEDED(hr)
Definition: intsafe.h:57
Definition: ps.c:97

◆ _CorExeMain2()

__int32 WINAPI _CorExeMain2 ( PBYTE  ,
DWORD  ,
LPWSTR  ,
LPWSTR  ,
LPWSTR   
)

Definition at line 215 of file mscoree_main.c.

216 {
217  TRACE("(%p, %u, %s, %s, %s)\n", ptrMemory, cntMemory, debugstr_w(imageName), debugstr_w(loaderName), debugstr_w(cmdLine));
218  FIXME("Directly running .NET applications not supported.\n");
219  return -1;
220 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:111
#define TRACE(s)
Definition: solgame.cpp:4

◆ _CorImageUnloading()

VOID WINAPI _CorImageUnloading ( PVOID  )

Definition at line 229 of file mscoree_main.c.

230 {
231  TRACE("(%p): stub\n", imageBase);
232 }
#define TRACE(s)
Definition: solgame.cpp:4

◆ _CorValidateImage()

HRESULT WINAPI _CorValidateImage ( PVOID ,
LPCWSTR   
)

Definition at line 234 of file mscoree_main.c.

235 {
236  TRACE("(%p, %s): stub\n", imageBase, debugstr_w(imageName));
237  return E_FAIL;
238 }
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4

◆ CoInitializeCor()

HRESULT WINAPI CoInitializeCor ( DWORD  )

Definition at line 397 of file mscoree_main.c.

398 {
399  FIXME("(0x%08x): stub\n", fFlags);
400  return S_OK;
401 }
#define FIXME(fmt,...)
Definition: debug.h:111
#define S_OK
Definition: intsafe.h:59

◆ CoUninitializeCor()

void WINAPI CoUninitializeCor ( void  )

◆ DEFINE_GUID() [1/2]

DEFINE_GUID ( CLSID_CorMetaDataDispenser  ,
0xe5cb7a31  ,
0x7512  ,
0x11d2  ,
0x89  ,
0xce  ,
0x00  ,
0x80  ,
0xc7  ,
0x92  ,
0xe5  ,
0xd8   
)

◆ DEFINE_GUID() [2/2]

DEFINE_GUID ( CLSID_CorMetaDataDispenserRuntime  ,
0x1ec2de53  ,
0x75cc  ,
0x11d2  ,
0x97  ,
0x75  ,
0x00  ,
0xa0  ,
0xc9  ,
0xb4  ,
0xd5  ,
0x0c   
)