home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / pmtermsr.lzh / pmterm.h < prev    next >
C/C++ Source or Header  |  1995-10-13  |  1KB  |  67 lines

  1.  
  2. #define INCL_WIN
  3. #define INCL_DOS
  4. #define INCL_GPI
  5. #define INCL_DOSDEVIOCTL
  6. #define INCL_DOSERRORS
  7. #include <os2.h>
  8. #include <stdio.h>
  9. #include <string.h>
  10. #include <stdlib.h>
  11. #include <process.h>
  12. #include "pmscroll.h"
  13. #include "dialog.h"
  14.  
  15. #define MAXLINES    100
  16. #define MAXLINELEN  80
  17.  
  18.  
  19. typedef struct _initstuff {     // stuff stored in INI file
  20.     char DevName[100];
  21.     char InitString[100];
  22.     long bps;
  23.     BYTE parity;
  24.     BYTE databits;
  25.     BYTE stopbits;
  26.     BOOL CtsRts;
  27.     BOOL XonXoff;
  28.     BOOL ExtBuf;
  29. }INI_STUFF;
  30.  
  31. typedef struct _pdata {
  32.     char name[CCHMAXPATH];
  33.     HFILE hf;
  34.     HAB hab;
  35.     HWND hwndFrame;
  36.     HWND hwndClient;
  37.     INI_STUFF ini;
  38.     TID tidReadThread;
  39. }PDATA;
  40.  
  41.  
  42. #define WMU_PAINTLINES WM_USER
  43. #define WMU_CLS        WM_USER+1
  44. #define WMU_PRESCROLL  WM_USER+2
  45.  
  46.  
  47.   #define EHB_IGNORE            0x00
  48.   #define EHB_DISABLE           0x08
  49.   #define EHB_ENABLE            0x10
  50.   #define EHB_AUTO              0x18
  51.   #define EHB_MASK              0x18
  52.  
  53.   // Receive Trigger Levels
  54.   #define EHB_RTL_1             0x00
  55.   #define EHB_RTL_4             0x20
  56.   #define EHB_RTL_8             0x40
  57.   #define EHB_RTL_14            0x60
  58.  
  59.   // Transmit Buffer Load Counts
  60.   #define EHB_TBLC_1            0x00
  61.   #define EHB_TBLC_16           0x80
  62.  
  63.  
  64.  
  65. #include "proto.h"
  66.  
  67.