Move 16-bit COMM code to USER dll.

This commit is contained in:
Mike McCormack 2001-07-24 20:49:41 +00:00 committed by Alexandre Julliard
parent 186a79cb92
commit e4ca13ea82
5 changed files with 1118 additions and 1073 deletions

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,6 @@
extern void CODEPAGE_Init(void); extern void CODEPAGE_Init(void);
extern BOOL RELAY_Init(void); extern BOOL RELAY_Init(void);
extern BOOL THUNK_Init(void); extern BOOL THUNK_Init(void);
extern void COMM_Init(void);
/*********************************************************************** /***********************************************************************
@ -77,9 +76,6 @@ static BOOL process_attach(void)
/* Force loading of some dlls */ /* Force loading of some dlls */
if (LoadLibrary16( "system" ) < 32) return FALSE; if (LoadLibrary16( "system" ) < 32) return FALSE;
/* Initialize communications */
COMM_Init();
/* Read DOS config.sys */ /* Read DOS config.sys */
if (!DOSCONF_ReadConfig()) return FALSE; if (!DOSCONF_ReadConfig()) return FALSE;

View File

@ -10,6 +10,7 @@ IMPORTS = gdi32 kernel32 ntdll
C_SRCS = \ C_SRCS = \
bidi16.c \ bidi16.c \
cache.c \ cache.c \
comm16.c \
dde/client.c \ dde/client.c \
dde/ddeml16.c \ dde/ddeml16.c \
dde/misc.c \ dde/misc.c \

1112
dlls/user/comm16.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -35,6 +35,8 @@ WORD USER_HeapSel = 0; /* USER heap selector */
static HMODULE graphics_driver; static HMODULE graphics_driver;
extern void COMM_Init(void);
#define GET_USER_FUNC(name) USER_Driver.p##name = (void*)GetProcAddress( graphics_driver, #name ) #define GET_USER_FUNC(name) USER_Driver.p##name = (void*)GetProcAddress( graphics_driver, #name )
/* load the graphics driver */ /* load the graphics driver */
@ -246,6 +248,9 @@ static BOOL process_attach(void)
/* Initialize mouse driver */ /* Initialize mouse driver */
MOUSE_Enable( mouse_event ); MOUSE_Enable( mouse_event );
/* Initialize 16-bit serial communications */
COMM_Init();
return TRUE; return TRUE;
} }