Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / include / lmuse.h
bloba63a71f3c8c0c3735c84c6d2524f59d8f00e9425
1 #ifndef _LMUSE_H
2 #define _LMUSE_H
3 #if __GNUC__ >=3
4 #pragma GCC system_header
5 #endif
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #include <lmuseflg.h>
11 #define USE_LOCAL_PARMNUM 1
12 #define USE_REMOTE_PARMNUM 2
13 #define USE_PASSWORD_PARMNUM 3
14 #define USE_ASGTYPE_PARMNUM 4
15 #define USE_USERNAME_PARMNUM 5
16 #define USE_DOMAINNAME_PARMNUM 6
17 #define USE_OK 0
18 #define USE_PAUSED 1
19 #define USE_SESSLOST 2
20 #define USE_DISCONN 2
21 #define USE_NETERR 3
22 #define USE_CONN 4
23 #define USE_RECONN 5
24 #define USE_WILDCARD ((DWORD)-1)
25 #define USE_DISKDEV 0
26 #define USE_SPOOLDEV 1
27 #define USE_CHARDEV 2
28 #define USE_IPC 3
29 typedef struct _USE_INFO_0 {
30 LPWSTR ui0_local;
31 LPWSTR ui0_remote;
32 }USE_INFO_0,*PUSE_INFO_0,*LPUSE_INFO_0;
33 typedef struct _USE_INFO_1 {
34 LPWSTR ui1_local;
35 LPWSTR ui1_remote;
36 LPWSTR ui1_password;
37 DWORD ui1_status;
38 DWORD ui1_asg_type;
39 DWORD ui1_refcount;
40 DWORD ui1_usecount;
41 }USE_INFO_1,*PUSE_INFO_1,*LPUSE_INFO_1;
42 typedef struct _USE_INFO_2 {
43 LPWSTR ui2_local;
44 LPWSTR ui2_remote;
45 LPWSTR ui2_password;
46 DWORD ui2_status;
47 DWORD ui2_asg_type;
48 DWORD ui2_refcount;
49 DWORD ui2_usecount;
50 LPWSTR ui2_username;
51 LPWSTR ui2_domainname;
52 }USE_INFO_2,*PUSE_INFO_2,*LPUSE_INFO_2;
53 NET_API_STATUS WINAPI NetUseAdd(LPWSTR,DWORD,PBYTE,PDWORD);
54 NET_API_STATUS WINAPI NetUseDel(LPWSTR,LPWSTR,DWORD);
55 NET_API_STATUS WINAPI NetUseEnum(LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
56 NET_API_STATUS WINAPI NetUseGetInfo(LPWSTR,LPWSTR,DWORD,PBYTE*);
57 #ifdef __cplusplus
59 #endif
60 #endif