Category : Files from Magazines
Archive   : WDJAN92.ZIP
Filename : 3N01058A

 
Output of file : 3N01058A contained in archive : WDJAN92.ZIP
/*
* DCOMM.C
*
* Purpose: to defeat call waiting by creating the proper carrier loss/
* carrier detect (time) window.
*
* Usage: DCOMM
*
* Dan Goldberg, Quick C v2.5, 10/91
*
* Compile (tested by LZ under Borland C++):
* bcc -D__MSC dcomm.c
*/

#include
#include
#include

#define __MSC
#define COMPORT 1 /* 0 for COM1, 1 for COM2 */

void set_modem(char *setup_string)
{
while(*setup_string != '\0'){
outp(0x03f8,*setup_string);
printf("%c", *setup_string);
*setup_string++;
}
}


main()
{
/* initialize serial port */
unsigned data;
/* all constants (except COMPORT) defined in bios.h */
/* see bios.h for more information on _bios_serialcom */

data = (_COM_CHR8 | _COM_STOP1 | _COM_NOPARITY |
_COM_2400);
_bios_serialcom( _COM_INIT, COMPORT, data);

/* call setmodem function for call-waiting defeat string */
set_modem("AT S10=19");
} /* end of program */


  3 Responses to “Category : Files from Magazines
Archive   : WDJAN92.ZIP
Filename : 3N01058A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/