home *** CD-ROM | disk | FTP | other *** search
- #ifdef CFILES
-
- #include <windows.h>
- #include <commdlg.h>
- #include <stdio.h>
- #include <string.h>
- #include <toolhelp.h>
- #include <string.h>
- #include <wnetbios.h>
-
- #endif
- #ifdef MAIN
- #define EXTVAR
- #else
-
- #define EXTVAR extern
- #endif
-
- #define APPNAME "ReCommSrv"
- #define APPTITLE "RemoteCommSrv"
-
- #define APPINI "recomm.ini"
-
- #include <dblevel.h>
-
- #define INICOM 1
- #define SETCOM 2
- #define SETQUE 3
- #define RECCOM 4
- #define SNDCOM 5
- #define CTX 6
- #define TRMCOM 7
- #define STACOM 8
- #define CEXTFCN 9
- #define CFLUSH 10
- #define CEVT 11
- #define CEVTGET 12
- #define CSETBRK 13
- #define CCLRBRK 14
- #define GETDCB 15
- #define CWSTRING 16
- #define CRSTRING 17
- #define ENABLENOTI 18
-
- #define GETMASK 19
-
- typedef struct {
- char far *pqRx; /* pointer to Rx queue */
- int cbqRx; /* size of Rx queue in bytes */
- char far *pqTx; /* pointer to Tx queue */
- int cbqTx; /* size of Tx queue in bytes */
- } QDB;
-
- typedef struct {
- HWND hwnd;
- WORD inTrig;
- WORD outTrig;
- } NOTI;
-
- typedef struct {
- WORD eword;
- WORD stat;
- } EVN;
-
-
- union datarec {
- DCB dcb;
- QDB qdb;
-
- COMSTAT cs;
- NOTI noti;
- EVN ev;
- char txt[4096];
- int x;
- };
-
-
- struct recComData {
- short len;
- short fnc;
- long rc;
- int evmask;
- union datarec a;
- } comData;
-
- struct recFindSrv {
- BOOL stat;
- char name[50];
- } fndSrv;
-
- EXTVAR BOOL CONECTED;
-
- EXTVAR int com, event[20], evcnt;
-
- EXTVAR REMOTE_COM;
-
- EXTVAR LPNCB retNCB, lpNCB, brdNCB;
-
- EXTVAR char szAppName[30];
- EXTVAR int far * lpevent;
-
- EXTVAR HANDLE hInstance;
- EXTVAR HWND HwnD;
-
- //
- // FUNCTION PROTOYPES
- //
- //
-
- BOOL FAR PASCAL AboutDlgProc(HWND , WORD ,WORD, LONG);
-
-