home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
3COMM.ZIP
/
H.ZIP
/
USE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1989-05-17
|
3KB
|
112 lines
/********************************************************************/
/** Microsoft OS/2 LAN Manager **/
/** Copyright(c) Microsoft Corp., 1987, 1988 **/
/********************************************************************/
/********************************************************************
* *
* About this file ... USE.H *
* *
* This file contains information about the NetUse APIs. *
* *
* Function prototypes. *
* *
* Data structure templates. *
* *
* Definition of special values. *
* *
* *
* NOTE: You must include NETCONS.H before this file, since this *
* file depends on values defined in NETCONS.H. *
* *
********************************************************************/
/****************************************************************
* *
* Function prototypes *
* *
****************************************************************/
extern API_FUNCTION
NetUseEnum ( const char far *, short, char far *, unsigned short,
unsigned short far *, unsigned short far * );
extern API_FUNCTION
NetUseAdd ( const char far *, short, const char far *, unsigned short);
extern API_FUNCTION
NetUseDel ( const char far *, const char far *, unsigned short );
extern API_FUNCTION
NetUseGetInfo ( const char far *, const char far *, short, char far *,
unsigned short, unsigned short far *);
/****************************************************************
* *
* Data structure templates *
* *
****************************************************************/
struct use_info_0 {
char ui0_local[DEVLEN+1];
char ui0_pad_1;
char far * ui0_remote;
}; /* use_info_0 */
struct use_info_1 {
char ui1_local[DEVLEN+1];
char ui1_pad_1;
char far * ui1_remote;
char far * ui1_password;
unsigned short ui1_status;
short ui1_asg_type;
unsigned short ui1_refcount;
unsigned short ui1_usecount;
}; /* use_info_1 */
/****************************************************************
* *
* Special values and constants *
* *
****************************************************************/
/*
* Definitions for NetUseDel's last parameter
*/
#define USE_NOFORCE 0
#define USE_FORCE 1
#define USE_LOTS_OF_FORCE 2
/*
* Values appearing in the ui1_status field of use_info_1 structure.
* Note that USE_SESSLOST and USE_DISCONN are synonyms.
*/
#define USE_OK 0
#define USE_PAUSED 1
#define USE_SESSLOST 2
#define USE_DISCONN 2
#define USE_NETERR 3
#define USE_CONN 4
#define USE_RECONN 5
/*
* Values of the ui1_asg_type field of use_info_1 structure
*/
#define USE_WILDCARD -1
#define USE_DISKDEV 0
#define USE_SPOOLDEV 1
#define USE_CHARDEV 2
#define USE_IPC 3