[MSCOREE]

* Move some inclusions to the main header.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61411
This commit is contained in:
Amine Khaldi 2013-12-25 15:31:19 +00:00
parent 9d02c5e329
commit dca5c07bbe
10 changed files with 57 additions and 182 deletions

View file

@ -15,12 +15,13 @@ list(APPEND SOURCE
metadata.c
metahost.c
mscoree_main.c
guid.c
mscoree.rc
${CMAKE_CURRENT_BINARY_DIR}/mscoree_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/mscoree.def)
add_library(mscoree SHARED ${SOURCE})
set_module_type(mscoree win32dll)
target_link_libraries(mscoree wine uuid)
target_link_libraries(mscoree uuid wine)
add_importlibs(mscoree dbghelp advapi32 shell32 ole32 shlwapi msvcrt kernel32 ntdll)
add_cd_file(TARGET mscoree DESTINATION reactos/system32 FOR all)

View file

@ -18,28 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <stdarg.h>
//#include <stdio.h>
#include <windef.h>
#include <winbase.h>
//#include "winuser.h"
#include <winver.h>
#include <dbghelp.h>
#include <ole2.h>
//#include "mscoree.h"
#include <corhdr.h>
#include <metahost.h>
#include <cordebug.h>
#include <wine/list.h>
#include "mscoree_private.h"
//#include "wine/debug.h"
//#include "wine/unicode.h"
#include <winver.h>
#include <dbghelp.h>
typedef struct
{

View file

@ -18,30 +18,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <ole2.h>
#include <msxml2.h>
//#include "mscoree.h"
#include <corhdr.h>
#include <metahost.h>
#include <cordebug.h>
#include <wine/list.h>
#include "mscoree_private.h"
#include <ole2.h>
#include <shlwapi.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
#include <initguid.h>
#include <msxml2.h>
enum parse_state
{

View file

@ -17,32 +17,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include "winuser.h"
//#include "winnls.h"
//#include "winreg.h"
#include <ole2.h>
//#include "shellapi.h"
//#include "mscoree.h"
#include <corhdr.h>
#include <metahost.h>
#include <cordebug.h>
#include <wine/list.h>
#include "mscoree_private.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
typedef struct DebugProcess
{

View file

@ -17,37 +17,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#include <assert.h>
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
//#include "winuser.h"
//#include "winnls.h"
#include <winreg.h>
#include <ole2.h>
#include <shellapi.h>
#include <cor.h>
//#include "mscoree.h"
#include <metahost.h>
//#include "corhdr.h"
#include <cordebug.h>
#include <wine/list.h>
#include "mscoree_private.h"
#include <wine/debug.h>
#include <wine/unicode.h>
//#include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
#include <assert.h>
#include <shellapi.h>
#include <initguid.h>
DEFINE_GUID(IID__AppDomain, 0x05f696dc,0x2b29,0x3663,0xad,0x8b,0xc4,0x38,0x9c,0xf2,0xa7,0x13);

View file

@ -0,0 +1,17 @@
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
#include <stdarg.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <windef.h>
#include <winbase.h>
#include <objbase.h>
#include <initguid.h>
#include <cor.h>
#include <cordebug.h>
#include <metahost.h>
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */

View file

@ -18,32 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
//#include <stdio.h>
#include <stdarg.h>
//#include <assert.h>
#define COBJMACROS
//#include "wine/library.h"
#include <windef.h>
#include <winbase.h>
//#include "winreg.h"
#include <ole2.h>
#include <cor.h>
//#include "mscoree.h"
//#include "corhdr.h"
//#include "cordebug.h"
//#include "metahost.h"
//#include "wine/list.h"
//#include "mscoree_private.h"
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
#include "mscoree_private.h"
typedef struct MetaDataDispenser
{

View file

@ -18,36 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#include <stdio.h>
//#include <stdarg.h>
#include <assert.h>
#define COBJMACROS
#include <wine/unicode.h>
#include <wine/library.h>
//#include "windef.h"
//#include "winbase.h"
#include <winreg.h>
#include <ole2.h>
//#include "corerror.h"
#include <cor.h>
//#include "mscoree.h"
//#include "corhdr.h"
#include <cordebug.h>
#include <metahost.h>
#include <fusion.h>
#include <wine/list.h>
#include "mscoree_private.h"
#include <wine/debug.h>
#include <stdio.h>
#include <assert.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
#include <wine/library.h>
#include <fusion.h>
static const WCHAR net_11_subdir[] = {'1','.','0',0};
static const WCHAR net_20_subdir[] = {'2','.','0',0};

View file

@ -19,41 +19,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
//#include <stdarg.h>
#define COBJMACROS
#include <wine/unicode.h>
//#include "wine/library.h"
//#include "windef.h"
//#include "winbase.h"
//#include "winuser.h"
//#include "winnls.h"
#include <winreg.h>
#include <ole2.h>
#include <ocidl.h>
//#include "shellapi.h"
#include <initguid.h>
#include <msxml2.h>
//#include "corerror.h"
#include <cor.h>
//#include "mscoree.h"
//#include "corhdr.h"
#include <cordebug.h>
#include <metahost.h>
//#include "fusion.h"
#include <wine/list.h>
#include "mscoree_private.h"
#include <rpcproxy.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
static HINSTANCE MSCOREE_hInstance;
typedef HRESULT (*fnCreateInstance)(REFIID riid, LPVOID *ppObj);

View file

@ -20,6 +20,29 @@
#ifndef __MSCOREE_PRIVATE__
#define __MSCOREE_PRIVATE__
#include <stdarg.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H
#define COBJMACROS
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <objbase.h>
#include <cor.h>
#include <corhdr.h>
#include <cordebug.h>
#include <metahost.h>
#include <wine/list.h>
#include <wine/unicode.h>
#include <wine/debug.h>
WINE_DEFAULT_DEBUG_CHANNEL( mscoree );
extern char *WtoA(LPCWSTR wstr) DECLSPEC_HIDDEN;
extern HRESULT CLRMetaHost_CreateInstance(REFIID riid, void **ppobj) DECLSPEC_HIDDEN;