home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dsstlkt5.zip / dssos2tk / dss / MAILSLOT.H < prev    next >
C/C++ Source or Header  |  1998-05-08  |  6KB  |  146 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Directory and Security Services (DSS)        */
  4. /*                            Version 5.0                                 */
  5. /*                   (C) Copyright IBM Corp. 1995                         */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9. /********************************************************************/
  10.  
  11. /********************************************************************
  12.  *                                    *
  13.  *  About this file ...  MAILSLOT.H                    *
  14.  *                                    *
  15.  *  This file contains information about the Mailslot APIs.        *
  16.  *                                    *
  17.  *    Function prototypes.                        *
  18.  *                                    *
  19.  ********************************************************************/
  20.  
  21.  
  22. #ifdef ANY_32_BIT
  23. #pragma pack(1)
  24. #endif
  25.  
  26.  
  27. #ifndef NETMAILSLOT_INCLUDED
  28.  
  29. #define NETMAILSLOT_INCLUDED
  30.  
  31.  
  32. /****************************************************************
  33.  *                                                              *
  34.  *               Function prototypes - Mailslot                 *
  35.  *                                                              *
  36.  ****************************************************************/
  37.  
  38. extern API_FUNCTION
  39.   DosMakeMailslot ( const unsigned char LSFAR * pszName,
  40.                     unsigned short              cbMessageSize,
  41.                     unsigned short              cbMailslotSize,
  42.                     unsigned LSINT LSFAR *      phMailslot );
  43.  
  44. extern API_FUNCTION
  45.   DosDeleteMailslot ( unsigned LSINT hMailslot );
  46.  
  47. extern API_FUNCTION
  48.   DosMailslotInfo ( unsigned LSINT         hMailslot,
  49.                     unsigned short LSFAR * pcbMessageSize,
  50.                     unsigned short LSFAR * pcbMailslotSize,
  51.                     unsigned short LSFAR * pcbNextSize,
  52.                     unsigned short LSFAR * pusNextPriority,
  53.                     unsigned short LSFAR * pcMessages);
  54.  
  55. extern API_FUNCTION
  56.   DosPeekMailslot ( unsigned  LSINT        hMailslot,
  57.                     unsigned char LSFAR *  pbBuffer,
  58.                     unsigned short LSFAR * pcbReturned,
  59.                     unsigned short LSFAR * pcbNextSize,
  60.                     unsigned short LSFAR * pusNextPriority );
  61.  
  62. extern API_FUNCTION
  63.   DosReadMailslot ( unsigned  LSINT        hMailslot,
  64.                     unsigned char LSFAR *  pbBuffer,
  65.                     unsigned short LSFAR * pcbReturned,
  66.                     unsigned short LSFAR * pcbNextSize,
  67.                     unsigned short LSFAR * pusNextPriority,
  68.                     long                   cTimeout );
  69.  
  70. extern API_FUNCTION
  71.   DosWriteMailslot ( const unsigned char LSFAR * pszName,
  72.                      const unsigned char LSFAR * pbBuffer,
  73.                      unsigned short              cbBuffer,
  74.                      unsigned short              usPriority,
  75.                      unsigned short              usClass,
  76.                      long                        cTimeout );
  77.  
  78.  
  79. /* -------------------- Begin F2359 --------------------- */
  80.  
  81. #ifdef PURE_32
  82. /****************************************************************
  83.  *                                                              *
  84.  *               Function prototypes - Mailslot                 *
  85.  *                                                              *
  86.  ****************************************************************/
  87.  
  88. extern API32_FUNCTION
  89. Dos32MakeMailslot ( const unsigned char * pszName,
  90.                     unsigned long         ulMessageSize,  /* was USHORT*/
  91.                     unsigned long         ulMailslotSize, /* was USHORT*/
  92.                     unsigned long       * phMailslot );  /* was unsigned LSINT*/
  93.  
  94. extern API32_FUNCTION
  95. Dos32DeleteMailslot ( unsigned long  hMailslot );
  96.  
  97. extern API32_FUNCTION
  98. Dos32MailslotInfo ( unsigned long    hMailslot,        /* was unsigned LSINT */
  99.                     unsigned long  * pulMessageSize,   /* was USHORT */
  100.                     unsigned long  * pulMailslotSize,  /* was USHORT */
  101.                     unsigned long  * pulNextSize,      /* was USHORT */
  102.                     unsigned long  * pulNextPriority,  /* was USHORT */
  103.                     unsigned long  * pulMessages);     /* was USHORT */
  104.  
  105. extern API32_FUNCTION
  106. Dos32PeekMailslot ( unsigned long    hMailslot,        /* was unsigned LSINT */
  107.                     unsigned char  * pbBuffer,
  108.                     unsigned long  * pulReturned,      /* was USHORT */
  109.                     unsigned long  * pulNextSize,      /* was USHORT */
  110.                     unsigned long  * pulNextPriority); /* was USHORT */
  111.  
  112. extern API32_FUNCTION
  113. Dos32ReadMailslot ( unsigned long    hMailslot,        /* was unsigned LSINT */
  114.                     unsigned char  * pbBuffer,
  115.                     unsigned long  * pulReturned,      /* was USHORT */
  116.                     unsigned long  * pulNextSize,      /* was USHORT */
  117.                     unsigned long  * pulNextPriority,  /* was USHORT */
  118.                     long             lTimeout );
  119.  
  120. extern API32_FUNCTION
  121. Dos32WriteMailslot ( const unsigned char * pszName,
  122.                      const unsigned char * pbBuffer,
  123.                      unsigned long         ulBuffer,     /* was USHORT */
  124.                      unsigned long         ulPriority,   /* was USHORT */
  125.                      unsigned long         ulClass,      /* was USHORT */
  126.                      long                  lTimeout );
  127. #endif /* PURE_32 */
  128.  
  129. /* --------------------  End  F2359 --------------------- */
  130.  
  131.  
  132. /****************************************************************
  133.  *                                *
  134.  *          Special values and constants - Mailslot        *
  135.  *                                *
  136.  ****************************************************************/
  137.  
  138. #define MAILSLOT_NO_TIMEOUT    -1
  139.  
  140. #endif /* NETMAILSLOT_INCLUDED */
  141.  
  142. #ifdef ANY_32_BIT
  143. #pragma pack()
  144. #endif
  145.  
  146.