home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / com / zocdev / tap / tap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-11  |  1.2 KB  |  39 lines

  1. /***********************************************************************
  2. *    Taps for file transfer operations                                 *
  3. *                                                                      *
  4. *                                                                      *
  5. ***********************************************************************/
  6.  
  7. // Create your keys for OS2.INI under this application name
  8. #define TAP_INIAPPL    "Zap-O-Com TAPs"
  9.  
  10. // The name of the queue, to which tapped events are sent
  11. #define TAP_QUEUE_NAME "\\QUEUES\\ZOC\\TRANSFER.TAP\\A"
  12.  
  13. // This is the maximum number of taps running at a time
  14. #define TAP_MAX 10
  15.  
  16. // The events given in the ulData field of a queue request block
  17. // Data and parameters are explained in TAP.C
  18. enum _TAP_EVENTS {
  19.     TAP_EVENT_OPENFORREAD,
  20.     TAP_EVENT_OPENFORWRITE,
  21.     TAP_EVENT_OPENFORAPPEND,
  22.     TAP_EVENT_WRITEBLOCK,
  23.     TAP_EVENT_READBLOCK,
  24.     TAP_EVENT_READBYTE,
  25.     TAP_EVENT_SEEK,
  26.     TAP_EVENT_CLOSE,
  27.     TAP_EVENT_HOSTINFO
  28. };
  29.  
  30.  
  31. typedef struct _TAP_HOSTINFO {
  32.  
  33.     HWND hwndHostFrame;        /* NULL if VIO application */
  34.     char szHostName[32+1];    /* "Zap-O-Com" */
  35.     char szHostVers[5+1];     /* "0V.VV" */
  36.     long __Future[32];        /* for future use, for now ignore this */
  37.  
  38. } TAP_HOSTINFO;
  39.