[21368] | 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 | #ifndef _LMSHARE_H
|
---|
| 19 | #define _LMSHARE_H
|
---|
| 20 |
|
---|
| 21 | #ifdef __cplusplus
|
---|
| 22 | extern "C" {
|
---|
| 23 | #endif
|
---|
| 24 |
|
---|
| 25 | #include <lmcons.h>
|
---|
| 26 |
|
---|
| 27 | typedef struct _SHARE_INFO_0 {
|
---|
| 28 | LMSTR shi0_netname;
|
---|
| 29 | } SHARE_INFO_0, *PSHARE_INFO_0, *LPSHARE_INFO_0;
|
---|
| 30 |
|
---|
| 31 | typedef struct _SHARE_INFO_1 {
|
---|
| 32 | LMSTR shi1_netname;
|
---|
| 33 | DWORD shi1_type;
|
---|
| 34 | LMSTR shi1_remark;
|
---|
| 35 | } SHARE_INFO_1, *PSHARE_INFO_1, *LPSHARE_INFO_1;
|
---|
| 36 |
|
---|
| 37 | NET_API_STATUS WINAPI NetShareAdd(LMSTR,DWORD,LPBYTE,LPDWORD);
|
---|
| 38 | NET_API_STATUS WINAPI NetShareCheck(LMSTR,LMSTR,LPDWORD);
|
---|
| 39 | NET_API_STATUS WINAPI NetShareDel(LMSTR,LMSTR,DWORD);
|
---|
| 40 | NET_API_STATUS WINAPI NetShareDelEx(LMSTR,DWORD,LPBYTE);
|
---|
| 41 | NET_API_STATUS WINAPI NetShareDelSticky(LMSTR,LMSTR,DWORD);
|
---|
| 42 | NET_API_STATUS WINAPI NetShareEnum(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
| 43 | NET_API_STATUS WINAPI NetShareEnumSticky(LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
| 44 | NET_API_STATUS WINAPI NetShareGetInfo(LMSTR,LMSTR,DWORD,LPBYTE*);
|
---|
| 45 | NET_API_STATUS WINAPI NetShareSetInfo(LMSTR,LMSTR,DWORD,LPBYTE,LPDWORD);
|
---|
| 46 |
|
---|
| 47 | #define STYPE_DISKTREE 0
|
---|
| 48 | #define STYPE_PRINTQ 1
|
---|
| 49 | #define STYPE_DEVICE 2
|
---|
| 50 | #define STYPE_IPC 3
|
---|
| 51 | #define STYPE_SPECIAL 0x80000000
|
---|
| 52 |
|
---|
| 53 | NET_API_STATUS WINAPI NetSessionDel(LMSTR,LMSTR,LMSTR);
|
---|
| 54 | NET_API_STATUS WINAPI NetSessionEnum(LMSTR,LMSTR,LMSTR,DWORD,LPBYTE*,DWORD,LPDWORD,LPDWORD,LPDWORD);
|
---|
| 55 | NET_API_STATUS WINAPI NetSessionGetInfo(LMSTR,LMSTR,LMSTR,DWORD,LPBYTE*);
|
---|
| 56 |
|
---|
| 57 | #ifdef __cplusplus
|
---|
| 58 | }
|
---|
| 59 | #endif
|
---|
| 60 |
|
---|
| 61 | #endif /* ndef _LMSHARE_H */
|
---|