blob: 043cfac12bd9cb7664654fd0c9219aaf0717e634 [file] [log] [blame]
Tim Schwartz2908dab2007-07-27 17:43:16 -05001/*
2 * Copyright (C) 2007 Tim Schwartz
3 *
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.
8 *
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.
13 *
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
17 */
18#ifndef _LMUSE_H
19#define _LMUSE_H
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
Francois Gougeta4bbc852007-08-04 03:20:00 +020025#include "lmcons.h"
26#include "lmuseflg.h"
27
28typedef struct _USE_INFO_1
29{
30 LMSTR ui1_local;
31 LMSTR ui1_remote;
32 LMSTR ui1_password;
33 DWORD ui1_status;
34 DWORD ui1_asg_type;
35 DWORD ui1_refcount;
36 DWORD ui1_usecount;
Tim Schwartz2908dab2007-07-27 17:43:16 -050037} USE_INFO_1, *PUSE_INFO_1, *LPUSE_INFO_1;
38
Francois Gougeta4bbc852007-08-04 03:20:00 +020039typedef struct _USE_INFO_2
40{
41 LMSTR ui2_local;
42 LMSTR ui2_remote;
43 LMSTR ui2_password;
44 DWORD ui2_status;
45 DWORD ui2_asg_type;
46 DWORD ui2_refcount;
47 DWORD ui2_usecount;
48 LMSTR ui2_username;
49 LMSTR ui2_domainname;
Tim Schwartz2908dab2007-07-27 17:43:16 -050050} USE_INFO_2, *PUSE_INFO_2, *LPUSE_INFO_2;
51
Francois Gougeta4bbc852007-08-04 03:20:00 +020052NET_API_STATUS WINAPI NetUseAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
53NET_API_STATUS WINAPI NetUseDel(LMSTR,LMSTR,DWORD);
54NET_API_STATUS WINAPI NetUseEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
55NET_API_STATUS WINAPI NetUseGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*);
56
Tim Schwartz2908dab2007-07-27 17:43:16 -050057#ifdef __cplusplus
58}
59#endif
60
Francois Gougeta4bbc852007-08-04 03:20:00 +020061#endif /* _LMUSE_H */