2 * Copyright (C) 2003 Juan Lang
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
27 typedef struct _SHARE_INFO_0
{
29 } SHARE_INFO_0
, *PSHARE_INFO_0
, *LPSHARE_INFO_0
;
31 typedef struct _SHARE_INFO_1
{
35 } SHARE_INFO_1
, *PSHARE_INFO_1
, *LPSHARE_INFO_1
;
37 typedef struct _SHARE_INFO_2
{
41 DWORD shi2_permissions
;
43 DWORD shi2_current_uses
;
46 } SHARE_INFO_2
, *PSHARE_INFO_2
, *LPSHARE_INFO_2
;
48 typedef struct _SHARE_INFO_502
{
52 DWORD shi502_permissions
;
53 DWORD shi502_max_uses
;
54 DWORD shi502_current_uses
;
57 DWORD shi502_reserved
;
58 PSECURITY_DESCRIPTOR shi502_security_descriptor
;
59 } SHARE_INFO_502
, *PSHARE_INFO_502
, *LPSHARE_INFO_502
;
61 NET_API_STATUS WINAPI
NetShareAdd(LMSTR
,DWORD
,LPBYTE
,LPDWORD
);
62 NET_API_STATUS WINAPI
NetShareCheck(LMSTR
,LMSTR
,LPDWORD
);
63 NET_API_STATUS WINAPI
NetShareDel(LMSTR
,LMSTR
,DWORD
);
64 NET_API_STATUS WINAPI
NetShareDelEx(LMSTR
,DWORD
,LPBYTE
);
65 NET_API_STATUS WINAPI
NetShareDelSticky(LMSTR
,LMSTR
,DWORD
);
66 NET_API_STATUS WINAPI
NetShareEnum(LMSTR
,DWORD
,LPBYTE
*,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
67 NET_API_STATUS WINAPI
NetShareEnumSticky(LMSTR
,DWORD
,LPBYTE
*,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
68 NET_API_STATUS WINAPI
NetShareGetInfo(LMSTR
,LMSTR
,DWORD
,LPBYTE
*);
69 NET_API_STATUS WINAPI
NetShareSetInfo(LMSTR
,LMSTR
,DWORD
,LPBYTE
,LPDWORD
);
71 #define STYPE_DISKTREE 0
72 #define STYPE_PRINTQ 1
73 #define STYPE_DEVICE 2
75 #define STYPE_SPECIAL 0x80000000
77 #define SHI_USES_UNLIMITED (DWORD)(-1)
79 NET_API_STATUS WINAPI
NetSessionDel(LMSTR
,LMSTR
,LMSTR
);
80 NET_API_STATUS WINAPI
NetSessionEnum(LMSTR
,LMSTR
,LMSTR
,DWORD
,LPBYTE
*,DWORD
,LPDWORD
,LPDWORD
,LPDWORD
);
81 NET_API_STATUS WINAPI
NetSessionGetInfo(LMSTR
,LMSTR
,LMSTR
,DWORD
,LPBYTE
*);
87 #endif /* ndef _LMSHARE_H */