1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef _LMUSE_
|
---|
7 | #define _LMUSE_
|
---|
8 |
|
---|
9 | #ifdef __cplusplus
|
---|
10 | extern "C" {
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #include <lmcons.h>
|
---|
14 | #include <lmuseflg.h>
|
---|
15 |
|
---|
16 | NET_API_STATUS WINAPI NetUseAdd(LMSTR UncServerName,DWORD Level,LPBYTE Buf,LPDWORD ParmError);
|
---|
17 | NET_API_STATUS WINAPI NetUseDel(LMSTR UncServerName,LMSTR UseName,DWORD ForceCond);
|
---|
18 | NET_API_STATUS WINAPI NetUseEnum(LMSTR UncServerName,DWORD Level,LPBYTE *BufPtr,DWORD PreferedMaximumSize,LPDWORD EntriesRead,LPDWORD TotalEntries,LPDWORD ResumeHandle);
|
---|
19 | NET_API_STATUS WINAPI NetUseGetInfo(LMSTR UncServerName,LMSTR UseName,DWORD Level,LPBYTE *BufPtr);
|
---|
20 |
|
---|
21 | typedef struct _USE_INFO_0 {
|
---|
22 | LMSTR ui0_local;
|
---|
23 | LMSTR ui0_remote;
|
---|
24 | } USE_INFO_0,*PUSE_INFO_0,*LPUSE_INFO_0;
|
---|
25 |
|
---|
26 | typedef struct _USE_INFO_1 {
|
---|
27 | LMSTR ui1_local;
|
---|
28 | LMSTR ui1_remote;
|
---|
29 | LMSTR ui1_password;
|
---|
30 | DWORD ui1_status;
|
---|
31 | DWORD ui1_asg_type;
|
---|
32 | DWORD ui1_refcount;
|
---|
33 | DWORD ui1_usecount;
|
---|
34 | } USE_INFO_1,*PUSE_INFO_1,*LPUSE_INFO_1;
|
---|
35 |
|
---|
36 | typedef struct _USE_INFO_2 {
|
---|
37 | LMSTR ui2_local;
|
---|
38 | LMSTR ui2_remote;
|
---|
39 | LMSTR ui2_password;
|
---|
40 | DWORD ui2_status;
|
---|
41 | DWORD ui2_asg_type;
|
---|
42 | DWORD ui2_refcount;
|
---|
43 | DWORD ui2_usecount;
|
---|
44 | LMSTR ui2_username;
|
---|
45 | LMSTR ui2_domainname;
|
---|
46 | } USE_INFO_2,*PUSE_INFO_2,*LPUSE_INFO_2;
|
---|
47 |
|
---|
48 | typedef struct _USE_INFO_3 {
|
---|
49 | USE_INFO_2 ui3_ui2;
|
---|
50 | ULONG ui3_flags;
|
---|
51 | } USE_INFO_3,*PUSE_INFO_3,*LPUSE_INFO_3;
|
---|
52 |
|
---|
53 | #define USE_LOCAL_PARMNUM 1
|
---|
54 | #define USE_REMOTE_PARMNUM 2
|
---|
55 | #define USE_PASSWORD_PARMNUM 3
|
---|
56 | #define USE_ASGTYPE_PARMNUM 4
|
---|
57 | #define USE_USERNAME_PARMNUM 5
|
---|
58 | #define USE_DOMAINNAME_PARMNUM 6
|
---|
59 |
|
---|
60 | #define USE_OK 0
|
---|
61 | #define USE_PAUSED 1
|
---|
62 | #define USE_SESSLOST 2
|
---|
63 | #define USE_DISCONN 2
|
---|
64 | #define USE_NETERR 3
|
---|
65 | #define USE_CONN 4
|
---|
66 | #define USE_RECONN 5
|
---|
67 |
|
---|
68 | #define USE_WILDCARD ((DWORD) (-1))
|
---|
69 | #define USE_DISKDEV 0
|
---|
70 | #define USE_SPOOLDEV 1
|
---|
71 | #define USE_CHARDEV 2
|
---|
72 | #define USE_IPC 3
|
---|
73 |
|
---|
74 | #define CREATE_NO_CONNECT 0x1
|
---|
75 | #define CREATE_BYPASS_CSC 0x2
|
---|
76 |
|
---|
77 | #define USE_DEFAULT_CREDENTIALS 0x4
|
---|
78 |
|
---|
79 | #ifdef __cplusplus
|
---|
80 | }
|
---|
81 | #endif
|
---|
82 | #endif
|
---|