From 0b597bce93760bb5a20ed3281af665b0d97ab53f Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 11 Oct 1998 19:01:33 +0000 Subject: [PATCH] Stubs for COMM.DRV, REBOOT.VXD, VDD.VXD. --- if1632/Makefile.in | 1 + if1632/builtin.c | 2 ++ if1632/comm.spec | 23 +++++++++++++++++++++++ if1632/wprocs.spec | 2 ++ msdos/vxd.c | 41 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 if1632/comm.spec diff --git a/if1632/Makefile.in b/if1632/Makefile.in index a3699e3213a..728a8f31b66 100644 --- a/if1632/Makefile.in +++ b/if1632/Makefile.in @@ -7,6 +7,7 @@ MODULE = if1632 DLLS = \ avifile.spec \ + comm.spec \ commdlg.spec \ compobj.spec \ ddeml.spec \ diff --git a/if1632/builtin.c b/if1632/builtin.c index fc2548235fe..e19d21074fa 100644 --- a/if1632/builtin.c +++ b/if1632/builtin.c @@ -47,6 +47,7 @@ typedef struct /* 16-bit DLLs */ extern const WIN16_DESCRIPTOR AVIFILE_Descriptor; +extern const WIN16_DESCRIPTOR COMM_Descriptor; extern const WIN16_DESCRIPTOR COMMDLG_Descriptor; extern const WIN16_DESCRIPTOR COMPOBJ_Descriptor; extern const WIN16_DESCRIPTOR DDEML_Descriptor; @@ -103,6 +104,7 @@ static BUILTIN16_DLL BuiltinDLLs[] = { &COMPOBJ_Descriptor, DLL_FLAG_NOT_USED }, { &DDEML_Descriptor, DLL_FLAG_NOT_USED }, { &KEYBOARD_Descriptor, 0 }, + { &COMM_Descriptor, 0 }, { &LZEXPAND_Descriptor, 0 }, { &MMSYSTEM_Descriptor, 0 }, { &MOUSE_Descriptor, 0 }, diff --git a/if1632/comm.spec b/if1632/comm.spec new file mode 100644 index 00000000000..7447286c5a3 --- /dev/null +++ b/if1632/comm.spec @@ -0,0 +1,23 @@ +name comm +type win16 + + 1 stub INICOM + 2 stub SETCOM + 3 stub SETQUE + 4 stub RECCOM + 5 stub SNDCOM + 6 stub CTX + 7 stub TRMCOM + 8 stub STACOM + 9 stub CEXTFCN + 10 stub CFLUSH + 11 stub CEVT + 12 stub CEVTGET + 13 stub CSETBRK + 14 stub CCLRBRK + 15 stub GETDCB + 16 stub WEP + 19 stub COMMWRITESTRING + 20 stub READCOMMSTRING +100 stub ENABLENOTIFICATION + diff --git a/if1632/wprocs.spec b/if1632/wprocs.spec index eb9aa4bbeb1..230e995de53 100644 --- a/if1632/wprocs.spec +++ b/if1632/wprocs.spec @@ -283,6 +283,8 @@ type win16 # 401 register VXD_VMM() VXD_VMM 405 register VXD_Timer() VXD_Timer +409 register VXD_Reboot() VXD_Reboot +410 register VXD_VDD() VXD_VDD 414 register VXD_Comm() VXD_Comm #415 register VXD_Printer() VXD_Printer 423 register VXD_Shell() VXD_Shell diff --git a/msdos/vxd.c b/msdos/vxd.c index 011c1177bbb..c6c43ab5fb6 100644 --- a/msdos/vxd.c +++ b/msdos/vxd.c @@ -100,6 +100,47 @@ void WINAPI VXD_PageFile( CONTEXT *context ) } } +/*********************************************************************** + * VXD_Reboot + */ +void VXD_Reboot ( CONTEXT *context ) +{ + unsigned service = AX_reg(context); + + TRACE(vxd,"[%04x] VMM \n", (UINT16)service); + + switch(service) + { + case 0x0000: /* version */ + AX_reg(context) = VXD_WinVersion(); + RESET_CFLAG(context); + break; + + default: + VXD_BARF( context, "REBOOT" ); + } +} + +/*********************************************************************** + * VXD_VDD + */ +void VXD_VDD ( CONTEXT *context ) +{ + unsigned service = AX_reg(context); + + TRACE(vxd,"[%04x] VMM \n", (UINT16)service); + + switch(service) + { + case 0x0000: /* version */ + AX_reg(context) = VXD_WinVersion(); + RESET_CFLAG(context); + break; + + default: + VXD_BARF( context, "VDD" ); + } +} /*********************************************************************** * VXD_Shell