home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warphead.zip / H / CONFIG.H < prev    next >
C/C++ Source or Header  |  1997-09-05  |  5KB  |  114 lines

  1. /**************************************************************************/
  2. /*                                                                        */
  3. /*              IBM OS/2(tm) File and Print Client Services               */
  4. /* (c) Copyright International Business Machines Corporation, 1988, 1996  */
  5. /*                                                                        */
  6. /**************************************************************************/
  7. /********************************************************************/
  8.  
  9. /********************************************************************
  10.  *                                                                  *
  11.  *  About this file ...  CONFIG.H                                   *
  12.  *                                                                  *
  13.  *  This file contains information about the NetConfig APIs.        *
  14.  *                                                                  *
  15.  ********************************************************************/
  16.  
  17.  
  18. #ifndef NETCONFIG_INCLUDED
  19.  
  20. #define NETCONFIG_INCLUDED
  21.  
  22. #ifdef  ANY_32_BIT
  23. #pragma pack(1)
  24. #endif
  25.  
  26. /****************************************************************
  27.  *                                                              *
  28.  *              Function prototypes                             *
  29.  *                                                              *
  30.  ****************************************************************/
  31.  
  32. extern API_FUNCTION
  33.   NetConfigGet ( const unsigned char LSFAR *     pszComponent,
  34.                  const unsigned char LSFAR *     pszParameter,
  35.                  unsigned char LSFAR *           pbBuffer,
  36.                  unsigned short                  usBuffer,
  37.                  unsigned short LSFAR *          pusParmlen );
  38.  
  39. extern API_FUNCTION
  40.   NetConfigGetAll ( const unsigned char LSFAR *     pszComponent,
  41.                     unsigned char LSFAR *           pbBuffer,
  42.                     unsigned short                  usBuffer,
  43.                     unsigned short LSFAR *          pusReturned,
  44.                     unsigned short LSFAR *          pusTotalAvail );
  45.  
  46. extern API_FUNCTION
  47.   NetConfigGet2 ( const unsigned char LSFAR *     pszServer,
  48.                   const unsigned char LSFAR *     pszReserved,
  49.                   const unsigned char LSFAR *     pszComponent,
  50.                   const unsigned char LSFAR *     pszParameter,
  51.                   const unsigned char LSFAR *     pbBuffer,
  52.                   unsigned short                  usBuffer,
  53.                   unsigned short LSFAR *          pusParmlen );
  54.  
  55. extern API_FUNCTION
  56.   NetConfigGetAll2 ( const unsigned char LSFAR *     pszServer,
  57.                      const unsigned char LSFAR *     pszReserved,
  58.                      const unsigned char LSFAR *     pszComponent,
  59.                      unsigned char LSFAR *           pbBuffer,
  60.                      unsigned short                  usBuffer,
  61.                      unsigned short LSFAR *          pusReturned,
  62.                      unsigned short LSFAR *          pusTotalAvail );
  63.  
  64.  
  65. #ifdef PURE_32
  66. /****************************************************************
  67.  *                                                              *
  68.  *       Function prototypes for "pure" 32-bit code             *
  69.  *                                                              *
  70.  ****************************************************************/
  71.  
  72. extern API32_FUNCTION
  73.   Net32ConfigGet2 ( const unsigned char * pszServer,
  74.                     const unsigned char * pszReserved,
  75.                     const unsigned char * pszComponent,
  76.                     const unsigned char * pszParameter,
  77.                     const unsigned char * pbBuffer,
  78.                     unsigned long         ulBuffer,
  79.                     unsigned long       * pulParmlen );
  80.  
  81. extern API32_FUNCTION
  82.   Net32ConfigGetAll2 ( const unsigned char * pszServer,
  83.                        const unsigned char * pszReserved,
  84.                        const unsigned char * pszComponent,
  85.                        unsigned char       * pbBuffer,
  86.                        unsigned long         ulBuffer,
  87.                        unsigned long       * pulReturned,
  88.                        unsigned long       * pulTotalAvail );
  89.  
  90. extern ULONG _System
  91.   Net32ConfigSet (PCHAR,      /* server, must be NULL      */
  92.                   PCHAR,      /* reserved, must be NULL    */
  93.                   PCHAR,      /* component                 */
  94.                   ULONG,      /* level, must be 0          */
  95.                   ULONG,      /* reserved, must be 0       */
  96.                   PCHAR,      /* buffer                    */
  97.                   ULONG,      /* buflen                    */
  98.                   ULONG);     /* reserved, must be 0       */
  99.  
  100.   struct config_info_0
  101.      {
  102.       char     * Key;
  103.       char     * Data;
  104.      };
  105. #endif /* PURE_32 */
  106.  
  107.  
  108.  
  109. #ifdef ANY_32_BIT
  110. #pragma pack()
  111. #endif
  112.  
  113. #endif /* NETCONFIG_INCLUDED */
  114.