home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / COMTALK.ZIP / THREADS.H < prev   
C/C++ Source or Header  |  1989-02-08  |  892b  |  30 lines

  1. /*
  2.     Additions for second thread
  3. */
  4. #define    BUFSIZE        2056        /* Size of TypeAhead buffer */
  5. #define    RASIZE        1        /* # Lines in Readahead buf */
  6. #define    STACKSIZE    8192        /* Size of Thread Stacks    */
  7. #define    TIMEOUT        100L        /* Timeout value on PutChar */
  8. #define MAXTIMEOUT    -1L        /* Other timeout values     */
  9. #define    WM_AVIOUPDATE    WM_USER        /* Message to update screen */
  10. #define WM_MSGBOX    WM_USER + 1
  11. /*
  12.     Message Box Error definitions
  13. */
  14. #define    MBE_OPENPORT    (MPARAM) 0
  15. #define    MBE_WRITEPORT    (MPARAM) 1
  16. #define    MBE_COMREAD    (MPARAM) 2
  17. #define    MBE_QUEUEFULL    (MPARAM) 3
  18. #define    MBE_NUMMSGS    4
  19. extern    char aszMessage[MBE_NUMMSGS][MAXLINELEN];
  20. /*
  21.     Exportable routines
  22. */
  23. void ThdInitialize(HWND hWnd, COM Term);
  24. void ThdTerminate(void);
  25. void ThdDoBreak(void);
  26. int  ThdPutChar(char ch);
  27. int  ThdPutString(char s[], int n);
  28. void ThdReset(void);
  29. extern BOOL fNoUpdate;
  30.