OSDN Git Service

Modify "@copy 2012" to read "Copyright 2012, 2013".
[mingw/mingw-org-wsl.git] / include / lmuse.h
1 /**
2  * @file lmuse.h
3  * Copyright 2012, 2013 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _LMUSE_H
25 #define _LMUSE_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include <lmuseflg.h>
34 #define USE_LOCAL_PARMNUM 1
35 #define USE_REMOTE_PARMNUM 2
36 #define USE_PASSWORD_PARMNUM 3
37 #define USE_ASGTYPE_PARMNUM 4
38 #define USE_USERNAME_PARMNUM 5
39 #define USE_DOMAINNAME_PARMNUM 6
40 #define USE_OK 0
41 #define USE_PAUSED 1
42 #define USE_SESSLOST 2
43 #define USE_DISCONN 2
44 #define USE_NETERR 3
45 #define USE_CONN 4
46 #define USE_RECONN 5
47 #define USE_WILDCARD ((DWORD)-1)
48 #define USE_DISKDEV 0
49 #define USE_SPOOLDEV 1
50 #define USE_CHARDEV 2
51 #define USE_IPC 3
52 typedef struct _USE_INFO_0 {
53         LPWSTR ui0_local;
54         LPWSTR ui0_remote;
55 }USE_INFO_0,*PUSE_INFO_0,*LPUSE_INFO_0;
56 typedef struct _USE_INFO_1 {
57         LPWSTR ui1_local;
58         LPWSTR ui1_remote;
59         LPWSTR ui1_password;
60         DWORD ui1_status;
61         DWORD ui1_asg_type;
62         DWORD ui1_refcount;
63         DWORD ui1_usecount;
64 }USE_INFO_1,*PUSE_INFO_1,*LPUSE_INFO_1;
65 typedef struct _USE_INFO_2 {
66         LPWSTR ui2_local;
67         LPWSTR ui2_remote;
68         LPWSTR ui2_password;
69         DWORD ui2_status;
70         DWORD ui2_asg_type;
71         DWORD ui2_refcount;
72         DWORD ui2_usecount;
73         LPWSTR ui2_username;
74         LPWSTR ui2_domainname;
75 }USE_INFO_2,*PUSE_INFO_2,*LPUSE_INFO_2;
76 NET_API_STATUS WINAPI NetUseAdd(LPWSTR,DWORD,PBYTE,PDWORD);
77 NET_API_STATUS WINAPI NetUseDel(LPWSTR,LPWSTR,DWORD);
78 NET_API_STATUS WINAPI NetUseEnum(LPWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
79 NET_API_STATUS WINAPI NetUseGetInfo(LPWSTR,LPWSTR,DWORD,PBYTE*);
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif