2 * Copyright (C) 2007 Tim Schwartz
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #define USE_LOCAL_PARMNUM 1
30 #define USE_REMOTE_PARMNUM 2
31 #define USE_PASSWORD_PARMNUM 3
32 #define USE_ASGTYPE_PARMNUM 4
33 #define USE_USERNAME_PARMNUM 5
34 #define USE_DOMAINNAME_PARMNUM 6
38 #define USE_SESSLOST 2
39 #define USE_DISCONN USE_SESSLOST
44 #define USE_WILDCARD ((DWORD)-1)
46 #define USE_SPOOLDEV 1
50 typedef struct _USE_INFO_1
59 } USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1;
61 typedef struct _USE_INFO_2
72 } USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2;
74 NET_API_STATUS WINAPI NetUseAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
75 NET_API_STATUS WINAPI NetUseDel(LMSTR,LMSTR,DWORD);
76 NET_API_STATUS WINAPI NetUseEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
77 NET_API_STATUS WINAPI NetUseGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*);