home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / LANSERV / MESSAGE.H < prev    next >
C/C++ Source or Header  |  1998-05-08  |  10KB  |  215 lines

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