home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
progjorn
/
pj_7_6.arc
/
WINDEV.ARC
/
WNTERM.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-30
|
3KB
|
101 lines
/* WNTERM header file
*
* Written by
* William S. Hall
* 3665 Benton Street, #66
* Santa Clara, CA 95051
*/
#ifndef EXTERN
#define EXTERN extern
#endif
// declarations for shared functions
/* from wnterm.c */
LONG FAR PASCAL MainWndProc(HWND,unsigned,WORD,LONG);
LONG FAR PASCAL MainWndSubProc(HWND,unsigned,WORD,LONG);
/* from wntint.c */
BOOL FAR InitProgram(HANDLE,HANDLE,LPSTR,int);
void FAR WndCreate(HWND hWnd, LPCREATESTRUCT pCS);
/* from wntfns.c */
void NEAR ProcessComm(void);
void NEAR WndCommand(HWND, WORD, LONG);
void NEAR MainWndPaint(HWND, LPPAINTSTRUCT);
/* from wntmsc.c */
void ShowMessage(HWND, int);
BOOL FAR PASCAL AboutBoxProc(HWND,unsigned,WORD,LONG);
BOOL FAR PASCAL SetCommParams(HWND,unsigned,WORD,LONG);
/* virtual key value of scroll key */
#define VK_SCROLL 0x91
/* dialog box manifests */
#define DT_ABOUT 1
#define DT_COMM 2
/* string manifests */
#define IDS_APPNAME 100
#define IDS_ABOUT 101
#define IDS_WINTITLE 102
#define IDS_ICONSTRING 103
#define IDS_OFFLINE 105
#define IDS_ONLINE 106
#define IDS_FIRSTCOM 107
#define IDS_NEXTCOM 108
#define IDS_PORTSECTION 109
#define IDS_CANNOTOPENFIRSTPORT 111
#define IDS_CANNOTOPENANYPORT 112
#define IDS_COMMSETERROR 113
#define IDS_SMALLFONT 114
#define IDS_FONTFACE 115
#define IDS_CANNOTOPENPORT 116
/* dialog box controls */
#define IDD_BAUDRATE 100
#define IDD_SEVENBITS 101
#define IDD_EIGHTBITS 102
#define IDD_COM1 103
#define IDD_COM2 104
#define IDD_NOPARITY 105
#define IDD_ODDPARITY 106
#define IDD_EVENPARITY 107
#define IDD_MARKPARITY 108
#define IDD_SPACEPARITY 109
/* menu manifests */
#define IDM_ABOUT 200
#define IDM_ONLINE 201
#define IDM_OFFLINE 202
#define IDM_COMM 203
#define IDM_CLEAR 204
#define IDM_LOCAL 205
/* comm port input and output queue sizes */
#define INQUESIZE 256
#define OUTQUESIZE 128
#define BUFSIZE INQUESIZE
/* variables for the windows */
EXTERN struct TTYWND MWnd; /* private data for window */
/* strings */
EXTERN char szAppName[10]; /* class name of main window */
EXTERN char szIconTitle[5]; /* icon string */
EXTERN char szOffLine[10]; /* menu strings */
EXTERN char szOnLine[10];
/* comm port variables */
EXTERN int cid; /* comm port id */
EXTERN DCB CommData; /* comm data structure */
/* misc variables */
EXTERN HANDLE hInst; /* instance handle */
EXTERN FARPROC fpMainWndProc; /* subclass window procedure pointer */
EXTERN int LineState; /* on/off line state flag */
EXTERN BOOL ScrollLock; /* Scroll Lock key state */
EXTERN BYTE Buffer[BUFSIZE + 1]; /* communications buffer */
EXTERN int Buflen; /* length of buffer */