|
|
Microsoft OS/2 SDK PM 08-08-1988
/*----------------------------------
PMCOMM.H header file
Created by Microsoft Corp., 1988
----------------------------------*/
#define ID_RESOURCE 1
/* ---- string table ----- */
#define IDS_CLASS 1
#define IDS_TITLE 2
#define IDS_INIFILE 3
#define IDS_UNTITLED 4
/* ----- popup menu ------ */
#define IDM_ABOUTMENU 1
#define IDM_ACTION 2
#define IDM_OPTION 3
/* ----- menu items ------ */
#define IDM_ABOUT 14
#define IDM_SETTINGS 20
#define IDM_START 21
#define IDM_STOP 22
#define IDM_ECHO 23
#define IDM_PAUSE 24
#define IDM_TEST 25
#define IDM_BREAK 26
#define IDM_CAPTURE 27
#define IDM_WRAP 28
#define IDM_CTRLC 29
#define IDM_DATE 30
/* ---- dialog boxes ----- */
#define IDD_ABOUT 1
#define IDD_SETTINGS 2
#define IDD_GETFILE 3
/* ---- dialog control ids ---- */
#define DB_FILENAME 240
#define DB_PORT 260
#define DB_BAUD 262
#define DB_STRING 264
#define DB_PARITY 270
#define DB_STOPBITS 280
#define DB_DATABITS 296 /* allow for 6 7 8 */
/* ---- comm info ----- */
/* IOCTL category and functions */
#define SERIAL 1 /* category: serial device control */
#define SETBAUD 0x41 /* function: set baud rate */
#define SETLINECHAR 0x42 /* function: set line characteristics */
#define GETDCB 0x73 /* function: get device control block */
#define SETDCB 0x53 /* function: set device control block */
#define ENBL_XON_XOFF 0x03 /* enable auto transmit & receive flow cntl */
#define GENERIC 11 /* category: generic device control commands */
#define GETCOMERROR 0x6d /* function: retrieve & clear COM error info */
#define GETCOMSTATUS 0x64 /* function: get COM error info */
#define FLUSHINPUT 1 /* function: flush input buffer */
#define FLUSHOUTPUT 2 /* function: flush output buffer */
#define GETNUMCHARS 0x68 /* function: get number of chars in recv que */
#define FLUSH_CMDINFO 0 /* command information for FLUSH INPUT/OUTPUT*/
#define SETBREAKON 0x4b /* function: set break on */
#define SETBREAKOFF 0x45 /* function: set break off */
/* miscelaneous definitions */
#define RESERVED 0 /* reserved word */
#define IOWAIT 0 /* wait */
#define KBD_BITMASK 0x0006 /* bit mask for the KbdSetStatus call */
#define INBUFLENGTH 2048 /* length of input buffer */
#define BREAK 4 /* signal number for BREAK signal */
#define RECV_CTRL 2 /* signal handler should receive control */
#define READTIMEOUT 4000 /* time out for com port in .01 sec units */
#define DISABLE_SIGNALS 1 /* disable signals */
#define ENABLE_SIGNALS 0 /* enable signals */
#define ADD_ADDR 1 /* DOSEXITLIST function request code */
#define XFER 3 /* DOSEXITLIST function request code */
/* modem related definitions */
#define NUM_RETRY 1 /* no. times to retry modem connection */
/* modem commands */
#define MC_INIT 0
#define MC_ATTN 1
#define MC_ESC 2
#define MC_ONHOOK 3
#define MC_OFFHOOK 4
#define MC_RESET 5
#define MC_DIAL 128 /* special command for dialing */
#define B_PAUSE 0x20 /* a pause in a modem command */
/* modem status values */
#define MS_OK 0 /* modem operation was successful */
#define MS_CONNECT 1 /* a connection was made */
#define MS_RING 2 /* a ring was detected */
#define MS_NOCARRIER 3 /* no carrier was detected */
#define MS_ERROR 4 /* a command error was detected */
#define MS_CONNECT1200 5 /* a connection was established at 1200bps*/
#define MS_NODIALTONE 6 /*dialtone not detected within time in reg S7*/
#define MS_BUSY 7 /* a busy signal was detected */
#define MS_NOREPLY 8 /* no reply was recieved from the modem */
#define OT_FAILURE 9 /* other modem connection failure */
/* connection: modem/computer */
#define MODEM 1
#define COMPUTER 2
/* dial type: tone/pulse */
#define TONE 1
#define PULSE 2
/* parity: even/odd/none */
#define EVEN 2
#define ODD 1
#define NONE 0
char *ErrMsg[] = {
"VIOGETCONFIG",
"KBDSETSTATUS",
"OUT OF MEMORY",
"DOSCREATETHREAD",
"DOSCLOSE COMPORT",
"DOSDEVIOCTL SETDCB",
"DOSREAD",
"VIOWRTTTY",
"DOSOPEN: check if COM driver is installed",
"DOSDEVIOCTL SETBAUD",
"DOSDEVIOCTL SETLINECHAR",
"DOSDEVIOCTL GETDCB",
"KBDCHARIN",
"DOSWRITE",
"VIOWRTCHARSTRATT",
"VIOWRTNCELL",
"DOSEXITLIST ADD_ADDR",
"VIOSETCURPOS",
"VIOGETMODE",
"DOSDEVIOCTL FLUSH_XMIT_RECV_QUEUE",
"DOSDEVIOCTL GETCOM",
"DOSSETSIGHANDLER",
"DOSDEVIOCTL SETBREAKON",
"DOSDEVIOCTL SETBREAKOFF",
"INVALID SIGNAL",
"do_option: invalid option type",
"mod_option: invalid option type",
"show_option: invalid option type"
};
/* index definitions for error messages array */
#define ERR_VIOGETCONFIG 0
#define ERR_KBDSETSTATUS 1
#define ERR_OUTOFMEMORY 2
#define ERR_DOSCREATETHREAD 3
#define ERR_DOSCLOSECOMPORT 4
#define ERR_IOCTLSETDCB 5
#define ERR_DOSREAD 6
#define ERR_VIOWRTTTY 7
#define ERR_DOSOPEN 8
#define ERR_IOCTLSETBAUD 9
#define ERR_IOCTLSETLINECHAR 10
#define ERR_IOCTLGETDCB 11
#define ERR_KBDCHARIN 12
#define ERR_DOSWRITE 13
#define ERR_VIOWRTCHARSTRATT 14
#define ERR_VIOWRTNCELL 15
#define ERR_DOSEXITLIST 16
#define ERR_VIOSETCURPOS 17
#define ERR_VIOGETMODE 18
#define ERR_IOCTLFLUSHQUE 19
#define ERR_IOCTLGETCOMERROR 20
#define ERR_DOSSETSIGHANDLER 21
#define ERR_IOCTLSETBREAKON 22
#define ERR_IOCTLSETBREAKOFF 23
#define ERR_INVALIDSIGNAL 24
#define ERR_DO_OPT_INVOPT 25
#define ERR_MOD_OPT_INVOPT 26
#define ERR_SHOW_OPT_INVOPT 27
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.