home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / os2sdk / os2sdk11 / tk3 / comtalk / threads.h < prev   
Encoding:
C/C++ Source or Header  |  1989-02-20  |  1010 b   |  34 lines

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