home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / detk45he.zip / MESSAGE.H < prev    next >
C/C++ Source or Header  |  1999-04-29  |  10KB  |  212 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) Local Area Network (LAN) Server              */
  4. /*                            Version 5.03                                */
  5. /*                   (C) Copyright IBM Corp. 1988, 1998                   */
  6. /*                  Licensed Materials - Property of IBM                  */
  7. /*                                                                        */
  8. /**************************************************************************/
  9. /**                                                              */
  10. /*****************************************************************/
  11.  
  12. /********************************************************************
  13.  *                                                                  *
  14.  *  About this file ...  MESSAGE.H                                  *
  15.  *                                                                  *
  16.  *  This file contains information about the NetMessage APIs.       *
  17.  *                                                                  *
  18.  *      Function prototypes.                                        *
  19.  *                                                                  *
  20.  *      Data structure templates.                                   *
  21.  *                                                                  *
  22.  *      Definition of special values.                               *
  23.  *                                                                  *
  24.  *                                                                  *
  25.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  26.  *         file depends on values defined in NETCONS.H.             *
  27.  *                                                                  *
  28.  ********************************************************************/
  29.  
  30.  
  31. #ifndef NETMESSAGE_INCLUDED
  32.  
  33. #define NETMESSAGE_INCLUDED
  34.  
  35. #ifdef  ANY_32_BIT
  36. #pragma pack(1)
  37. #endif
  38.  
  39.  
  40. /****************************************************************
  41.  *                                                              *
  42.  *              Function prototypes                             *
  43.  *                                                              *
  44.  ****************************************************************/
  45.  
  46. extern API_FUNCTION
  47.   NetMessageBufferSend ( const unsigned char LSFAR * pszServer,
  48.                          unsigned char LSFAR *       pszRecipient,
  49.                          unsigned char LSFAR *       pbBuffer,
  50.                          unsigned short              cbBuffer );
  51.  
  52. extern API_FUNCTION
  53.   NetMessageFileSend ( const unsigned char LSFAR * pszServer,
  54.                        unsigned char LSFAR *       pszRecipient,
  55.                        unsigned char LSFAR *       pszFileSpec );
  56.  
  57. extern API_FUNCTION
  58.   NetMessageLogFileGet ( const unsigned char LSFAR * pszServer,
  59.                          unsigned char LSFAR *       pbBuffer,
  60.                          unsigned short      cbBuffer,
  61.                          short LSFAR *       pfsEnabled );
  62.  
  63. extern API_FUNCTION
  64.   NetMessageLogFileSet ( const unsigned char LSFAR * pszServer,
  65.                          unsigned char LSFAR *       pszFileSpec,
  66.                          short               fsEnabled );
  67.  
  68. extern API_FUNCTION
  69.   NetMessageNameAdd ( const unsigned char LSFAR * pszServer,
  70.                       const unsigned char LSFAR * pszMessageName,
  71.                       short               fsFwdAction );
  72.  
  73. extern API_FUNCTION
  74.   NetMessageNameDel ( const unsigned char LSFAR * pszServer,
  75.                       const unsigned char LSFAR * pszMessageName,
  76.                       short               fsFwdAction );
  77.  
  78. extern API_FUNCTION
  79.   NetMessageNameEnum ( const unsigned char LSFAR *     pszServer,
  80.                        short                   sLevel,
  81.                        unsigned char LSFAR *           pbBuffer,
  82.                        unsigned short         cbBuffer,
  83.                        unsigned short LSFAR * pcEntriesRead,
  84.                        unsigned short LSFAR * pcTotalAvail );
  85.  
  86. extern API_FUNCTION
  87.   NetMessageNameGetInfo ( const unsigned char LSFAR *     pszServer,
  88.                           const unsigned char LSFAR *     pszMessageName,
  89.                           short                   sLevel,
  90.                           unsigned char LSFAR *           pbBuffer,
  91.                           unsigned short          cbBuffer,
  92.                           unsigned short LSFAR *  pcbTotalAvail );
  93.  
  94. extern API_FUNCTION
  95.   NetMessageNameFwd ( const unsigned char LSFAR * pszServer,
  96.                       const unsigned char LSFAR * pszMessageName,
  97.                       const unsigned char LSFAR * pszForwardName,
  98.                       short               fsDelFwdName );
  99.  
  100. extern API_FUNCTION
  101.   NetMessageNameUnFwd ( const unsigned char LSFAR * pszServer,
  102.                         const unsigned char LSFAR * pszMessageName );
  103.  
  104.  
  105. /****************************************************************
  106.  *                                                              *
  107.  *              Data structure templates                        *
  108.  *                                                              *
  109.  ****************************************************************/
  110.  
  111. struct msg_info_0 {
  112.     unsigned char       msgi0_name[CNLEN + 1];
  113. };      /* msg_info_0 */
  114.  
  115. struct msg_info_1 {
  116.     unsigned char       msgi1_name[CNLEN + 1];
  117.     unsigned char       msgi1_forward_flag;
  118.     unsigned char       msgi1_pad1;
  119.     unsigned char       msgi1_forward[CNLEN + 1];
  120. };      /* msg_info_1 */
  121.  
  122.  
  123. #ifdef PURE_32
  124. /****************************************************************
  125.  *                                                              *
  126.  *              Function prototypes                             *
  127.  *            for "pure" 32-bit code                            *
  128.  *                                                              *
  129.  ****************************************************************/
  130.  
  131. extern API32_FUNCTION
  132.   Net32MessageBufferSend ( const unsigned char  * pszServer,
  133.                            unsigned char* pszRecipient,
  134.                            unsigned char* pbBuffer,
  135.                            unsigned long  ulBuffer );   /* was USHORT */
  136.  
  137. extern API32_FUNCTION
  138.   Net32MessageFileSend ( const unsigned char* pszServer,
  139.                          unsigned char      * pszRecipient,
  140.                          unsigned char      * pszFileSpec );
  141.  
  142. extern API32_FUNCTION
  143.   Net32MessageLogFileGet ( const unsigned char    * pszServer,
  144.                            unsigned char  * pbBuffer,
  145.                            unsigned long    ulBuffer,     /* was USHORT */
  146.                            unsigned long  * pfsEnabled ); /* was signed short */
  147.  
  148. extern API32_FUNCTION
  149.   Net32MessageLogFileSet ( const unsigned char    * pszServer,
  150.                            unsigned char  * pszFileSpec,
  151.                            unsigned long    fsEnabled );  /* was signed short */
  152.  
  153. extern API32_FUNCTION
  154.   Net32MessageNameAdd ( const unsigned char    * pszServer,
  155.                         const unsigned char    * pszMessageName,
  156.                         unsigned long    fsFwdAction );    /* was signed short*/
  157.  
  158. extern API32_FUNCTION
  159.   Net32MessageNameDel ( const unsigned char    * pszServer,
  160.                         const unsigned char    * pszMessageName,
  161.                         unsigned long    fsFwdAction );    /*was signed short */
  162.  
  163. extern API32_FUNCTION
  164.   Net32MessageNameEnum ( const unsigned char    * pszServer,
  165.                          unsigned long    ulLevel,        /*was signed short*/
  166.                          unsigned char  * pbBuffer,
  167.                          unsigned long    ulBuffer,       /* was USHORT */
  168.                          unsigned long  * pulEntriesRead, /* was USHORT */
  169.                          unsigned long  * pulTotalAvail); /* was USHORT */
  170.  
  171. extern API32_FUNCTION
  172.   Net32MessageNameGetInfo ( const unsigned char    * pszServer,
  173.                             const unsigned char    * pszMessageName,
  174.                             unsigned long    ulLevel,       /*was signed short*/
  175.                             unsigned char  * pbBuffer,
  176.                             unsigned long    ulBuffer,       /* was USHORT */
  177.                             unsigned long  * pulTotalAvail); /* was USHORT */
  178.  
  179. extern API32_FUNCTION
  180.   Net32MessageNameFwd ( const unsigned char   * pszServer,
  181.                         const unsigned char   * pszMessageName,
  182.                         const unsigned char   * pszForwardName,
  183.                         unsigned long   fsDelFwdName );  /* was short */
  184.  
  185. extern API32_FUNCTION
  186.   Net32MessageNameUnFwd ( const unsigned char* pszServer,
  187.                           const unsigned char* pszMessageName );
  188. #endif /* PURE_32 */
  189.  
  190.  
  191. /****************************************************************
  192.  *                                                              *
  193.  *              Special values and constants                    *
  194.  *                                                              *
  195.  ****************************************************************/
  196.  
  197.  
  198. /*
  199.  *      Values for msgi1_forward_flag.
  200.  */
  201.  
  202. #define MSGNAME_NOT_FORWARDED   0       /* Name not forwarded */
  203. #define MSGNAME_FORWARDED_TO    0x04    /* Name forward to remote station */
  204. #define MSGNAME_FORWARDED_FROM  0x10    /* Name forwarded from remote station */
  205.  
  206.  
  207. #ifdef ANY_32_BIT
  208. #pragma pack()
  209. #endif
  210.  
  211. #endif /* NETMESSAGE_INCLUDED */
  212.