source: trunk/src/wnetap32/share.cpp@ 10366

Last change on this file since 10366 was 6676, checked in by phaller, 24 years ago

.

File size: 8.6 KB
Line 
1/* $Id: share.cpp,v 1.1 2001-09-07 08:20:58 phaller Exp $ */
2
3/*
4 *
5 * Project Odin Software License can be found in LICENSE.TXT
6 *
7 */
8/*
9 * NETAPI32 share APIs
10 *
11 * Copyright 1998 Patrick Haller
12 *
13 * Note: functions that return structures/buffers seem to append strings
14 * at the end of the buffer. Currently, we just allocate the strings
15 * "normally". Therefore a caller that just does a NetApiBufferFree() on the
16 * returned buffer will leak all allocated strings.
17 *
18 */
19
20
21/****************************************************************************
22 * Includes *
23 ****************************************************************************/
24
25#include <odin.h>
26#include <odinwrap.h>
27#include <os2win.h>
28#include <misc.h>
29#include <unicode.h>
30#include <heapstring.h>
31#include <string.h>
32#include <winconst.h>
33
34#include "oslibnet.h"
35#include "lanman.h"
36
37ODINDEBUGCHANNEL(WNETAP32-SHARE)
38
39
40/****************************************************************************
41 * Module Global Variables *
42 ****************************************************************************/
43
44
45/*****************************************************************************
46 * Name : NET_API_STATUS NetShareAdd
47 * Purpose :
48 * Parameters: LPWSTR servername
49 * DWORD level
50 * LPBYTE buf
51 * LPDWORD parm_err
52 * Variables :
53 * Result :
54 * Remark :
55 * Status : UNTESTED STUB
56 *
57 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
58 *
59 * Author : Markus Montkowski [09.07.98 22:01:48]
60 *****************************************************************************/
61ODINFUNCTION4(NET_API_STATUS, OS2NetShareAdd,
62 LPWSTR, servername,
63 DWORD, level,
64 LPBYTE, buf,
65 LPDWORD, parm_err)
66
67{
68
69 dprintf(("NETAPI32: NetShareAdd(%s, %d, %08x, %08x) not implemented\n"
70 ,servername, level, buf, parm_err
71 ));
72
73 return (NERR_BASE);
74}
75
76
77/*****************************************************************************
78 * Name : NET_API_STATUS NetShareCheck
79 * Purpose :
80 * Parameters: LPWSTR servername
81 * LPWSTR device
82 * LPDWORD type
83 * Variables :
84 * Result :
85 * Remark :
86 * Status : UNTESTED STUB
87 *
88 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
89 *
90 * Author : Markus Montkowski [09.07.98 22:02:16]
91 *****************************************************************************/
92ODINFUNCTION3(NET_API_STATUS, OS2NetShareCheck,
93 LPWSTR, servername,
94 LPWSTR, device,
95 LPDWORD, type)
96
97{
98
99 dprintf(("NETAPI32: NetShareCheck(%s, %s, %08x) not implemented\n"
100 ,servername, device, type
101 ));
102
103 return (NERR_BASE);
104}
105
106
107/*****************************************************************************
108 * Name : NET_API_STATUS NetShareDel
109 * Purpose :
110 * Parameters: LPWSTR servername
111 * LPWSTR netname
112 * DWORD reserved
113 * Variables :
114 * Result :
115 * Remark :
116 * Status : UNTESTED STUB
117 *
118 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
119 *
120 * Author : Markus Montkowski [09.07.98 22:03:01]
121 *****************************************************************************/
122ODINFUNCTION3(NET_API_STATUS, OS2NetShareDel,
123 LPWSTR, servername,
124 LPWSTR, netname,
125 DWORD, reserved)
126
127{
128
129 dprintf(("NETAPI32: NetShareDel(%s, %s, %d) not implemented\n"
130 ,servername, netname, reserved
131 ));
132
133 return (NERR_BASE);
134}
135
136
137/*****************************************************************************
138 * Name : NET_API_STATUS NetShareGetInfo
139 * Purpose :
140 * Parameters: LPWSTR servername
141 * LPWSTR netname
142 * DWORD level
143 * LPBYTE *bufptr
144 * Variables :
145 * Result :
146 * Remark :
147 * Status : UNTESTED STUB
148 *
149 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
150 *
151 * Author : Markus Montkowski [09.07.98 22:03:39]
152 *****************************************************************************/
153ODINFUNCTION4(NET_API_STATUS, OS2NetShareGetInfo,
154 LPWSTR, servername,
155 LPWSTR, netname,
156 DWORD, level,
157 LPBYTE *, bufptr)
158
159{
160
161 dprintf(("NETAPI32: NetShareGetInfo(%s, %s, %d, %08x) not implemented\n"
162 ,servername, netname, level, *bufptr
163 ));
164
165 return (NERR_BASE);
166}
167/*****************************************************************************
168 * Name : NET_API_STATUS NetShareSetInfo
169 * Purpose :
170 * Parameters: LPWSTR servername
171 * LPWSTR netname
172 * DWORD level
173 * LPBYTE buf
174 * LPDWORD parm_err
175 * Variables :
176 * Result :
177 * Remark :
178 * Status : UNTESTED STUB
179 *
180 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
181 *
182 * Author : Markus Montkowski [09.07.98 22:04:00]
183 *****************************************************************************/
184ODINFUNCTION5(NET_API_STATUS, OS2NetShareSetInfo,
185 LPWSTR, servername,
186 LPWSTR, netname,
187 DWORD, level,
188 LPBYTE, buf,
189 LPDWORD, parm_err)
190
191{
192
193 dprintf(("NETAPI32: NetShareSetInfo(%s, %s, %d, %08x, %08x) not implemented\n"
194 ,servername, netname, level, buf, parm_err
195 ));
196
197 return (NERR_BASE);
198}
199
200
201/*****************************************************************************
202 * Name : NET_API_STATUS NetShareDel
203 * Purpose :
204 * Parameters: LPWSTR servername
205 * LPWSTR netname
206 * DWORD reserved
207 * Variables :
208 * Result :
209 * Remark :
210 * Status : UNTESTED STUB
211 *
212 * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
213 *
214 * Author : Markus Montkowski [09.07.98 22:03:01]
215 *****************************************************************************/
216
217ODINFUNCTION3(NET_API_STATUS,OS2NetShareDelSticky,LPWSTR, servername,
218 LPWSTR, netname,
219 DWORD, reserved)
220{
221
222 dprintf(("NETAPI32: NetShareDelSticky not implemented\n"));
223
224 return (NERR_BASE);
225}
226
227
228/*****************************************************************************
229 * Name : NET_API_STATUS NetShareEnum
230 * Purpose : retrieves information about all shared devices
231 * Parameters: LPWSTR lpServerName
232 * DWORD dwLevel
233 * LPBYTE* bufptr
234 * DWORD dwPrefMaxLen
235 * LPDWORD lpdEntriesRead
236 * LPDWORD lpdTotalEntries
237 * LPDWORD lpdResumeHandle
238 * Variables :
239 * Result :
240 * Remark :
241 * Status : UNTESTED STUB
242 *
243 * Author : Patrick Haller [Thu, 1999/08/18 00:15]
244 *****************************************************************************/
245
246ODINFUNCTION7(NET_API_STATUS,OS2NetShareEnum,LPWSTR, lpServerName,
247 DWORD, dwLevel,
248 LPBYTE*, bufptr,
249 DWORD, dwPrefMaxLen,
250 LPDWORD, lpdEntriesRead,
251 LPDWORD, lpdTotalEntries,
252 LPDWORD, lpdResumeHandle)
253{
254 dprintf(("NETAPI32: NetShareEnum not implemented\n"));
255
256 return (NERR_BASE);
257}
258
259
260
261/*****************************************************************************
262 * Name : NET_API_STATUS NetShareEnumSticky
263 * Purpose : retrieves information about all sticky shared devices
264 * Parameters: LPWSTR lpServerName
265 * DWORD dwLevel
266 * LPBYTE* bufptr
267 * DWORD dwPrefMaxLen
268 * LPDWORD lpdEntriesRead
269 * LPDWORD lpdTotalEntries
270 * LPDWORD lpdResumeHandle
271 * Variables :
272 * Result :
273 * Remark :
274 * Status : UNTESTED STUB
275 *
276 * Author : Patrick Haller [Thu, 1999/08/18 00:15]
277 *****************************************************************************/
278
279ODINFUNCTION7(NET_API_STATUS,OS2NetShareEnumSticky,LPWSTR, lpServerName,
280 DWORD, dwLevel,
281 LPBYTE*, bufptr,
282 DWORD, dwPrefMaxLen,
283 LPDWORD, lpdEntriesRead,
284 LPDWORD, lpdTotalEntries,
285 LPDWORD, lpdResumeHandle)
286{
287 dprintf(("NETAPI32: NetShareEnumSticky not implemented\n"));
288
289 return (NERR_BASE);
290}
Note: See TracBrowser for help on using the repository browser.