copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git] / mono / metadata / coree.h
1 /*
2  * coree.h: mscoree.dll functions
3  *
4  * Author:
5  *   Kornel Pal <http://www.kornelpal.hu/>
6  *
7  * Copyright (C) 2008 Kornel Pal
8  */
9
10 #ifndef __MONO_COREE_H__
11 #define __MONO_COREE_H__
12
13 #include <config.h>
14
15 #ifdef HOST_WIN32
16
17 #include <mono/io-layer/io-layer.h>
18 #include "image.h"
19
20 #define STATUS_SUCCESS 0x00000000L
21 #define STATUS_INVALID_IMAGE_FORMAT 0xC000007BL
22
23 STDAPI MonoFixupCorEE(HMODULE ModuleHandle);
24
25 /* Defined by the linker. */
26 #ifndef _MSC_VER
27 #define __ImageBase _image_base__
28 #endif
29 extern IMAGE_DOS_HEADER __ImageBase MONO_INTERNAL;
30
31 extern HMODULE coree_module_handle MONO_INTERNAL;
32
33 HMODULE WINAPI MonoLoadImage(LPCWSTR FileName) MONO_INTERNAL;
34 STDAPI MonoFixupExe(HMODULE ModuleHandle) MONO_INTERNAL;
35
36 gchar* mono_get_module_file_name (HMODULE module_handle) MONO_INTERNAL;
37 void mono_load_coree (const char* file_name) MONO_INTERNAL;
38 void mono_fixup_exe_image (MonoImage* image) MONO_INTERNAL;
39
40 /* Declared in image.c. */
41 MonoImage* mono_image_open_from_module_handle (HMODULE module_handle, char* fname, gboolean has_entry_point, MonoImageOpenStatus* status) MONO_INTERNAL;
42
43 #endif /* HOST_WIN32 */
44
45 #endif /* __MONO_COREE_H__ */