1 | /*
|
---|
2 | * Copyright (C) 2003 Juan Lang
|
---|
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 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef _LMSHARE_H
|
---|
29 | #define _LMSHARE_H
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #include <lmcons.h>
|
---|
36 |
|
---|
37 | typedef struct _SHARE_INFO_0 {
|
---|
38 | LMSTR shi0_netname;
|
---|
39 | } SHARE_INFO_0, *PSHARE_INFO_0, *LPSHARE_INFO_0;
|
---|
40 |
|
---|
41 | typedef struct _SHARE_INFO_1 {
|
---|
42 | LMSTR shi1_netname;
|
---|
43 | DWORD shi1_type;
|
---|
44 | LMSTR shi1_remark;
|
---|
45 | } SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;
|
---|
46 |
|
---|
47 | NET_API_STATUS WINAPI NetShareAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
|
---|
48 | NET_API_STATUS WINAPI NetShareCheck(LMSTR,LMSTR,LPDWORD);
|
---|
49 | NET_API_STATUS WINAPI NetShareDel(LMSTR,LMSTR,DWORD);
|
---|
50 | NET_API_STATUS WINAPI NetShareDelEx(LMSTR,DWORD,LPBYTE);
|
---|
51 | NET_API_STATUS WINAPI NetShareDelSticky(LMSTR,LMSTR,DWORD);
|
---|
52 | NET_API_STATUS WINAPI NetShareEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
53 | NET_API_STATUS WINAPI NetShareEnumSticky(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
54 | NET_API_STATUS WINAPI NetShareGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*);
|
---|
55 | NET_API_STATUS WINAPI NetShareSetInfo(LMSTR,LMSTR,DWORD,LPBYTE,LPDWORD);
|
---|
56 |
|
---|
57 | #define STYPE_DISKTREE 0
|
---|
58 | #define STYPE_PRINTQ 1
|
---|
59 | #define STYPE_DEVICE 2
|
---|
60 | #define STYPE_IPC 3
|
---|
61 | #define STYPE_SPECIAL 0x80000000
|
---|
62 |
|
---|
63 | NET_API_STATUS WINAPI NetSessionDel(LMSTR,LMSTR,LMSTR);
|
---|
64 | NET_API_STATUS WINAPI NetSessionEnum(LMSTR,LMSTR,LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
65 | NET_API_STATUS WINAPI NetSessionGetInfo(LMSTR,LMSTR,LMSTR,DWORD,LPBYTE*);
|
---|
66 |
|
---|
67 | #ifdef __cplusplus
|
---|
68 | }
|
---|
69 | #endif
|
---|
70 |
|
---|
71 | #endif /* ndef _LMSHARE_H */
|
---|