home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / PIPE.H < prev    next >
Text File  |  1994-10-19  |  2KB  |  36 lines

  1. /*****************************************************************************/
  2. /* File:                                                                     */
  3. /*   pipe.h                                                               919*/
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*                                                                           */
  7. /*   Header file for the client/server named pipe communications.            */
  8. /*                                                                           */
  9. /* History:                                                                  */
  10. /*                                                                           */
  11. /*   06/10/94 Created                                                        */
  12. /*                                                                           */
  13. /*****************************************************************************/
  14.  
  15. /*****************************************************************************/
  16. /* By convention, we will designate "Dbg" as the server side of a pipe       */
  17. /* connection. Esp will be treated as the client side of the connection.     */
  18. /*****************************************************************************/
  19. #define DBG_SERVER 0
  20. #define ESP_CLIENT 1
  21.  
  22. /*****************************************************************************/
  23. /* This structure is copied here from the toolkit and the szName field       */
  24. /* modified. In the toolkit, this field has a length of 1 and here it's      */
  25. /* been modified to handle the maximum length of a pipe name.                */
  26. /*****************************************************************************/
  27. typedef struct _PIPESTATE               /* nmpinf */
  28. {
  29.    USHORT cbOut;                        /* length of outgoing I/O buffer     */
  30.    USHORT cbIn;                         /* length of incoming I/O buffer     */
  31.    BYTE   cbMaxInst;                    /* maximum number of instances       */
  32.    BYTE   cbCurInst;                    /* current number of instances       */
  33.    BYTE   cbName;                       /* length of pipe name               */
  34.    CHAR   szName[CCHMAXPATH];           /* start of name                     */
  35. } PIPESTATE;
  36.