ReactOS 0.4.15-dev-8428-g6910fa6
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  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

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}
static void FixupVTable(HMODULE hmodule)
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
static IN DWORD IN LPVOID lpvReserved
#define TRACE(s)
Definition: solgame.cpp:4

◆ _CorExeMain()

__int32 WINAPI _CorExeMain ( void  )

Definition at line 1008 of file corruntimehost.c.

1009{
1010 int exit_code;
1011 int argc;
1012 char **argv;
1018 char *filenameA;
1021 HRESULT hr;
1022 int i;
1023
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
1034 if (!filenameA)
1035 return -1;
1036
1038
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
1077
1079
1080 return exit_code;
1081}
static int argc
Definition: ServiceArgs.c:12
#define ERR(fmt,...)
Definition: precomp.h:57
static void RuntimeHost_DeleteDomain(RuntimeHost *This, MonoDomain *domain)
static void get_utf8_args(int *argc, char ***argv)
static HRESULT RuntimeHost_GetDefaultDomain(RuntimeHost *This, MonoDomain **result)
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define GetProcessHeap()
Definition: compat.h:736
#define MAX_PATH
Definition: compat.h:34
#define HeapFree(x, y, z)
Definition: compat.h:735
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
Definition: loader.c:600
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
Definition: loader.c:838
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
void unload_all_runtimes(void)
Definition: metahost.c:266
HRESULT ICLRRuntimeInfo_GetRuntimeHost(ICLRRuntimeInfo *iface, RuntimeHost **result)
Definition: metahost.c:544
GLeglImageOES image
Definition: gl.h:2204
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 SUCCEEDED(hr)
Definition: intsafe.h:50
const char * filename
Definition: ioapi.h:137
#define debugstr_a
Definition: kernel32.h:31
#define debugstr_w
Definition: kernel32.h:32
static UINT exit_code
Definition: process.c:78
static CHAR filenameA[MAX_PATH]
Definition: storage32.c:42
#define argv
Definition: mplay32.c:18
char * WtoA(LPCWSTR wstr)
Definition: mscoree_main.c:30
struct _MonoAssembly MonoAssembly
struct _MonoImage MonoImage
MonoImageOpenStatus
struct _MonoDomain MonoDomain
HRESULT hr
Definition: shlfolder.c:183
Definition: cookie.c:42
Definition: ps.c:97
char * host
Definition: whois.c:55
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ _CorExeMain2()

__int32 WINAPI _CorExeMain2 ( PBYTE  ptrMemory,
DWORD  cntMemory,
LPWSTR  imageName,
LPWSTR  loaderName,
LPWSTR  cmdLine 
)

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 FIXME(fmt,...)
Definition: precomp.h:53

◆ _CorImageUnloading()

VOID WINAPI _CorImageUnloading ( PVOID  imageBase)

Definition at line 229 of file mscoree_main.c.

230{
231 TRACE("(%p): stub\n", imageBase);
232}

◆ _CorValidateImage()

HRESULT WINAPI _CorValidateImage ( PVOID imageBase,
LPCWSTR  imageName 
)

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

◆ CoInitializeCor()

HRESULT WINAPI CoInitializeCor ( DWORD  fFlags)

Definition at line 397 of file mscoree_main.c.

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

◆ 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   
)