home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lansystk.zip / INCLUDE / LANSERV / WKSTA.H < prev   
C/C++ Source or Header  |  1998-05-08  |  11KB  |  252 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.  *  About this file ...  WKSTA.H                                    *
  15.  *                                                                  *
  16.  *  This file contains information about the NetWksta 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. #ifdef ANY_32_BIT
  32. #pragma pack(1)
  33. #endif
  34.  
  35.  
  36. #ifndef NETWKSTA_INCLUDED
  37.  
  38. #define NETWKSTA_INCLUDED
  39.  
  40.  
  41. /****************************************************************
  42.  *                                                              *
  43.  *              Function prototypes                             *
  44.  *                                                              *
  45.  ****************************************************************/
  46.  
  47. extern API_FUNCTION
  48.   NetWkstaGetInfo ( const unsigned char LSFAR * pszServer,
  49.                     short                       sLevel,
  50.                     unsigned char LSFAR       * pbBuffer,
  51.                     unsigned short              cbBuffer,
  52.                     unsigned short LSFAR      * pcbTotalAvail );
  53.  
  54. extern API_FUNCTION
  55.   NetWkstaSetInfo ( const unsigned char LSFAR * pszServer,
  56.                     short                       sLevel,
  57.                     unsigned char LSFAR       * pbBuffer,
  58.                     unsigned short              cbBuffer,
  59.                     short                       sParmNum );
  60.  
  61.  
  62. extern API_FUNCTION
  63.   NetWkstaSetUID ( const unsigned char LSFAR * pszServer,
  64.                    const unsigned char LSFAR * pszUserName,
  65.                    const unsigned char LSFAR * pszPassword,
  66.                    const unsigned char LSFAR * pszParms,
  67.                    unsigned short              fsLogOff );
  68.  
  69. extern API_FUNCTION
  70.   NetWkstaSetUID2 ( unsigned char LSFAR *   pszReserved,
  71.                     unsigned char LSFAR *   pszDomain,
  72.                     unsigned char LSFAR *   pszUserName,
  73.                     unsigned char LSFAR *   pszPassword,
  74.                     unsigned char LSFAR *   pszParms,
  75.                     unsigned short          usLogoffForce,
  76.                     short                   sLevel,
  77.                     unsigned char LSFAR *   pbBuffer,
  78.                     unsigned short          cbBuffer,
  79.                     unsigned short LSFAR  * pcbTotalAvail );
  80.  
  81.  
  82. /****************************************************************
  83.  *                                                              *
  84.  *              Data structure templates                        *
  85.  *                                                              *
  86.  ****************************************************************/
  87.  
  88. struct wksta_info_0 {
  89.     unsigned short              wki0_reserved_1;
  90.     unsigned long               wki0_reserved_2;
  91.     unsigned char LSFAR * LSPTR wki0_root;
  92.     unsigned char LSFAR * LSPTR wki0_computername;
  93.     unsigned char LSFAR * LSPTR wki0_username;
  94.     unsigned char LSFAR * LSPTR wki0_langroup;
  95.     unsigned char               wki0_ver_major;
  96.     unsigned char               wki0_ver_minor;
  97.     unsigned long               wki0_reserved_3;
  98.     unsigned short              wki0_charwait;
  99.     unsigned long               wki0_chartime;
  100.     unsigned short              wki0_charcount;
  101.     unsigned short              wki0_reserved_4;
  102.     unsigned short              wki0_reserved_5;
  103.     unsigned short              wki0_keepconn;
  104.     unsigned short              wki0_keepsearch;
  105.     unsigned short              wki0_maxthreads;
  106.     unsigned short              wki0_maxcmds;
  107.     unsigned short              wki0_reserved_6;
  108.     unsigned short              wki0_numworkbuf;
  109.     unsigned short              wki0_sizworkbuf;
  110.     unsigned short              wki0_maxwrkcache;
  111.     unsigned short              wki0_sesstimeout;
  112.     unsigned short              wki0_sizerror;
  113.     unsigned short              wki0_numalerts;
  114.     unsigned short              wki0_numservices;
  115.     unsigned short              wki0_errlogsz;
  116.     unsigned short              wki0_printbuftime;
  117.     unsigned short              wki0_numcharbuf;
  118.     unsigned short              wki0_sizcharbuf;
  119.     unsigned char LSFAR * LSPTR wki0_logon_server;
  120.     unsigned char LSFAR * LSPTR wki0_wrkheuristics;
  121.     unsigned short              wki0_mailslots;
  122. };  /* wksta_info_0 */
  123.  
  124. struct wksta_info_1 {
  125.     unsigned short              wki1_reserved_1;
  126.     unsigned long               wki1_reserved_2;
  127.     unsigned char LSFAR * LSPTR wki1_root;
  128.     unsigned char LSFAR * LSPTR wki1_computername;
  129.     unsigned char LSFAR * LSPTR wki1_username;
  130.     unsigned char LSFAR * LSPTR wki1_langroup;
  131.     unsigned char               wki1_ver_major;
  132.     unsigned char               wki1_ver_minor;
  133.     unsigned long               wki1_reserved_3;
  134.     unsigned short              wki1_charwait;
  135.     unsigned long               wki1_chartime;
  136.     unsigned short              wki1_charcount;
  137.     unsigned short              wki1_reserved_4;
  138.     unsigned short              wki1_reserved_5;
  139.     unsigned short              wki1_keepconn;
  140.     unsigned short              wki1_keepsearch;
  141.     unsigned short              wki1_maxthreads;
  142.     unsigned short              wki1_maxcmds;
  143.     unsigned short              wki1_reserved_6;
  144.     unsigned short              wki1_numworkbuf;
  145.     unsigned short              wki1_sizworkbuf;
  146.     unsigned short              wki1_maxwrkcache;
  147.     unsigned short              wki1_sesstimeout;
  148.     unsigned short              wki1_sizerror;
  149.     unsigned short              wki1_numalerts;
  150.     unsigned short              wki1_numservices;
  151.     unsigned short              wki1_errlogsz;
  152.     unsigned short              wki1_printbuftime;
  153.     unsigned short              wki1_numcharbuf;
  154.     unsigned short              wki1_sizcharbuf;
  155.     unsigned char LSFAR * LSPTR wki1_logon_server;
  156.     unsigned char LSFAR * LSPTR wki1_wrkheuristics;
  157.     unsigned short              wki1_mailslots;
  158.     unsigned char LSFAR * LSPTR wki1_logon_domain;
  159.     unsigned char LSFAR * LSPTR wki1_oth_domains;
  160.     unsigned short              wki1_numdgrambuf;
  161. };  /* wksta_info_1 */
  162.  
  163. struct wksta_info_10 {
  164.     unsigned char LSFAR * LSPTR wki10_computername;
  165.     unsigned char LSFAR * LSPTR wki10_username;
  166.     unsigned char LSFAR * LSPTR wki10_langroup;
  167.     unsigned char               wki10_ver_major;
  168.     unsigned char               wki10_ver_minor;
  169.     unsigned char LSFAR * LSPTR wki10_logon_domain;
  170.     unsigned char LSFAR * LSPTR wki10_oth_domains;
  171. };  /* wksta_info_10 */
  172.  
  173.  
  174.  
  175. #ifdef PURE_32
  176. /****************************************************************
  177.  *                                                              *
  178.  *              Function prototypes                             *
  179.  *                                                              *
  180.  ****************************************************************/
  181.  
  182. extern API32_FUNCTION
  183. Net32WkstaGetInfo ( const unsigned char * pszServer,
  184.                     unsigned long         ulLevel,        /* was signed short */
  185.                     unsigned char       * pbBuffer,
  186.                     unsigned long         ulBuffer,       /* was USHORT */
  187.                     unsigned long       * pulTotalAvail); /* was USHORT */
  188.  
  189. extern API32_FUNCTION
  190. Net32WkstaSetInfo ( const unsigned char * pszServer,
  191.                     unsigned long         ulLevel,      /* was signed short */
  192.                     unsigned char       * pbBuffer,
  193.                     unsigned long         ulBuffer,     /* was USHORT */
  194.                     unsigned long         ulParmNum);   /* was signed short */
  195.  
  196. extern API32_FUNCTION
  197. Net32WkstaSetUID2 ( unsigned char  * pszReserved,
  198.                     unsigned char  * pszDomain,
  199.                     unsigned char  * pszUserName,
  200.                     unsigned char  * pszPassword,
  201.                     unsigned char  * pszParms,
  202.                     unsigned long    usLogoffForce,  /* was USHORT */
  203.                     unsigned long    ulLevel,        /* was signed short */
  204.                     unsigned char  * pbBuffer,
  205.                     unsigned long    ulBuffer,       /* was USHORT */
  206.                     unsigned long  * pulTotalAvail); /* was USHORT */
  207. #endif /* PURE_32 */
  208.  
  209.  
  210. /****************************************************************
  211.  *                                                              *
  212.  *             Special values and constants                     *
  213.  *                                                              *
  214.  ****************************************************************/
  215.  
  216.  
  217. /*
  218.  *       Constants for use as NetWkstaSetInfo parmnum parameter
  219.  */
  220.  
  221. #define WKSTA_CHARWAIT_PARMNUM          10
  222. #define WKSTA_CHARTIME_PARMNUM          11
  223. #define WKSTA_CHARCOUNT_PARMNUM         12
  224. #define WKSTA_ERRLOGSZ_PARMNUM          27
  225. #define WKSTA_PRINTBUFTIME_PARMNUM      28
  226. #define WKSTA_WRKHEURISTICS_PARMNUM     32
  227. #define WKSTA_OTHDOMAINS_PARMNUM        35
  228.  
  229. /*
  230.  *      Definitions for NetWkstaSetUID's ucond parameter
  231.  */
  232.  
  233. #define WKSTA_NOFORCE         0
  234. #define WKSTA_FORCE           1
  235. #define WKSTA_LOTS_OF_FORCE   2
  236. #define WKSTA_MAX_FORCE       3
  237.  
  238.  
  239.  
  240. /*
  241.  *      Maximum number of additional domains
  242.  */
  243. #define MAX_OTH_DOMAINS     4
  244.  
  245.  
  246. #endif /* NETWKSTA_INCLUDED */
  247.  
  248. #ifdef ANY_32_BIT
  249. #pragma pack()
  250. #endif
  251.  
  252.