home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / SLIDCO.ZIP / PROTYPE.H < prev    next >
Text File  |  1993-02-01  |  3KB  |  75 lines

  1. /****************************************************************************
  2. This structure is used for inter-thread communications. When a buffer is 
  3. sub-alloacted from the heap, pbBase is the Heap id or base, BuffPtr is 
  4. a pointer to the buffer sub-allocated from the Heap, ulSize is the size
  5. of the buffer.  BUFFWEFORMAT is the template assigned to BuffPtr.
  6.  
  7. N O T E: The sending thread must fill in the first 3 fields. This is because
  8. the receiving thread "de-allocates" the buffer using those fields as
  9. parmaters to DosSubFreeMem.
  10.  
  11. ****************************************************************************/
  12. typedef struct
  13. {
  14.     PBYTE pbBase;  //Base ptr for the Heap
  15.     void * BuffPtr; //Ptr for the block allocated from the heap
  16.     ULONG ulSize;  //Size of the block allocated
  17.     ULONG id;      //Who sent the message
  18.     ULONG CharCnt; //Number of chars in Buff[]
  19.     UCHAR Buff[1];
  20. } BUFFERFORMAT;
  21.  
  22.  
  23.  
  24. MRESULT EXPENTRY ClientWndProc (HWND hwnd, USHORT msg ,MPARAM mp1, MPARAM mp2);
  25. VOID MainPaint(ULONG color, HWND hwnd);
  26. VOID APIENTRY ExitProc(USHORT usTermCode);
  27. VOID WinDebugMsg(char *DebugMsg,HWND hwnd);
  28. BOOL CommPortOpen(HWND hwnd);
  29. SHORT MessageBox(HWND hwndOwner, SHORT idMsg, SHORT fsStyle, BOOL fBeep);
  30. VOID MainCommand(MPARAM mp1, MPARAM mp2);
  31. MRESULT EXPENTRY ComSelectDlgProc( HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  32. MRESULT EXPENTRY ComInitDlgProc( HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  33. MRESULT EXPENTRY SliderDlgProc( HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  34. void    Allocate_Buffer_Memory(void);
  35. void APIENTRY Terminate_Session(void);
  36. void Term_Write_Thread(void * Parm1);
  37. void Term_Read_Thread(void * Parm1);
  38. void Create_Threads(void);
  39. void Set_Baud_Rate(void);
  40. void Set_Line_Characteristics(void);
  41. void Set_DCB_Parms(void);
  42. void Open_Comm_Port(void);
  43. void CreateTermWrtQueue(void);
  44. void PrintTerm(void *ptr);
  45. BUFFERFORMAT * AllocateMsgBuffer(ULONG BuffSize);
  46. void InitTermDriver(void);
  47. APIRET InitLineBits(HWND hwnd);
  48. APIRET SetLineBitVals( HWND hwnd);
  49. BOOL InitializeSpinButton(HWND hwnd);
  50. USHORT SetBiteRate( HWND hwnd);
  51. void Set_IOCTL_Bit_Rate(USHORT BitRate,HWND hwnd);
  52. USHORT Get_IOCTL_Bit_Rate(HWND hwnd);
  53. APIRET OpenComPort( HWND hwnd);
  54. APIRET WmInitComSelect( HWND hwnd);
  55. VOID InitSlider ( HWND    hwndSlider,             
  56.                   ULONG   idSlider,               
  57.                   USHORT  usMaximumTicks,         
  58.                   USHORT  usMinorTickSpacing,     
  59.                   USHORT  usMinorTickSize,        
  60.                   USHORT  usMajorTickSpacing,     
  61.                   USHORT  usMajorTickSize,        
  62.                   USHORT  usDetentSpacing,        
  63.                   USHORT  usTextSpacing,          
  64.                   PSZ     pszFont);               
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.