home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / 3COMM.ZIP / H.ZIP / USE.H < prev    next >
C/C++ Source or Header  |  1989-05-17  |  3KB  |  112 lines

  1. /********************************************************************/
  2. /**                   Microsoft OS/2 LAN Manager                   **/
  3. /**            Copyright(c) Microsoft Corp., 1987, 1988            **/
  4. /********************************************************************/
  5.  
  6. /********************************************************************
  7.  *                                    *
  8.  *  About this file ...  USE.H                        *
  9.  *                                    *
  10.  *  This file contains information about the NetUse APIs.        *
  11.  *                                    *
  12.  *    Function prototypes.                        *
  13.  *                                    *
  14.  *    Data structure templates.                    *
  15.  *                                    *
  16.  *    Definition of special values.                    *
  17.  *                                    *
  18.  *                                    *
  19.  *  NOTE:  You must include NETCONS.H before this file, since this  *
  20.  *       file    depends on values defined in NETCONS.H.            *
  21.  *                                    *
  22.  ********************************************************************/
  23.  
  24.  
  25. /**************************************************************** 
  26.  *                                *
  27.  *          Function prototypes                 *
  28.  *                                *
  29.  ****************************************************************/
  30.  
  31. extern API_FUNCTION
  32.   NetUseEnum ( const char far *, short, char far *, unsigned short, 
  33.         unsigned short far *, unsigned short far * );
  34.  
  35. extern API_FUNCTION
  36.   NetUseAdd ( const char far *, short, const char far *, unsigned short);
  37.  
  38. extern API_FUNCTION
  39.   NetUseDel ( const char far *, const char far *, unsigned short );
  40.  
  41. extern API_FUNCTION
  42.   NetUseGetInfo ( const char far *, const char far *, short, char far *, 
  43.         unsigned short, unsigned short far *);
  44.  
  45.  
  46.  
  47. /**************************************************************** 
  48.  *                                *
  49.  *          Data structure templates            *
  50.  *                                *
  51.  ****************************************************************/
  52.  
  53. struct use_info_0 {
  54.     char       ui0_local[DEVLEN+1];
  55.     char       ui0_pad_1;
  56.     char far *       ui0_remote;
  57. };    /* use_info_0 */
  58.  
  59. struct use_info_1 {
  60.     char       ui1_local[DEVLEN+1];
  61.     char       ui1_pad_1;
  62.     char far *       ui1_remote;
  63.     char far *       ui1_password;
  64.     unsigned short ui1_status;
  65.     short        ui1_asg_type;
  66.     unsigned short ui1_refcount;
  67.     unsigned short ui1_usecount;
  68. };    /* use_info_1 */
  69.  
  70.  
  71. /**************************************************************** 
  72.  *                                *
  73.  *          Special values and constants            *
  74.  *                                *
  75.  ****************************************************************/
  76.  
  77.  
  78. /*
  79.  *      Definitions for NetUseDel's last parameter 
  80.  */
  81.  
  82. #define USE_NOFORCE             0
  83. #define USE_FORCE               1
  84. #define USE_LOTS_OF_FORCE       2
  85.  
  86.  
  87. /* 
  88.  *    Values appearing in the ui1_status field of use_info_1 structure.
  89.  *    Note that USE_SESSLOST and USE_DISCONN are synonyms.
  90.  */
  91.  
  92. #define USE_OK            0
  93. #define USE_PAUSED        1
  94. #define USE_SESSLOST        2
  95. #define USE_DISCONN        2
  96. #define USE_NETERR        3
  97. #define    USE_CONN        4
  98. #define USE_RECONN        5
  99.  
  100.  
  101. /* 
  102.  *    Values of the ui1_asg_type field of use_info_1 structure 
  103.  */
  104.  
  105. #define USE_WILDCARD          -1
  106. #define USE_DISKDEV           0
  107. #define USE_SPOOLDEV          1
  108. #define USE_CHARDEV           2
  109. #define USE_IPC                  3
  110.  
  111.  
  112.