ReactOS  0.4.14-dev-608-gd495a4f
dfs.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: NetAPI DLL
4  * FILE: reactos/dll/win32/netapi32/dfs.c
5  * PURPOSE: Distributed File System Service interface code
6  * PROGRAMMERS: Eric Kohl
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include "netapi32.h"
12 
13 #include <rpc.h>
14 #include "netdfs_c.h"
15 
17 
18 /* FUNCTIONS *****************************************************************/
19 
21 WINAPI
23  _In_ LPWSTR DfsEntryPath,
24  _In_ LPWSTR ServerName,
25  _In_ LPWSTR PathName,
26  _In_opt_ LPWSTR Comment,
28 {
29 #if 0
31 
32  TRACE("NetDfsAdd(%s %s %s %s 0x%lx)\n",
33  debugstr_w(DfsEntryPath), debugstr_w(ServerName), debugstr_w(PathName),
34  debugstr_w(Comment), Flags);
35 
36  if (DfsEntryPath == NULL ||
37  *DfsEntryPath == UNICODE_NULL ||
38  ServerName == NULL ||
39  *ServerName == UNICODE_NULL ||
40  PathName == NULL ||
41  *PathName == UNICODE_NULL)
43 
45  {
46  Status = NetrDfsAdd(DfsEntryPath,
47  ServerName,
48  PathName,
49  Comment,
50  Flags);
51  }
53  {
55  }
57 
58  return Status;
59 #endif
61  return 0;
62 }
63 
64 
66 WINAPI
68  _In_ LPWSTR ServerName,
69  _In_ LPWSTR RootShare,
70  _In_ LPWSTR FtDfsName,
71  _In_opt_ LPWSTR Comment,
73 {
75  return 0;
76 }
77 
78 
80 WINAPI
82  _In_ LPWSTR ServerName,
83  _In_ LPWSTR RootShare,
84  _In_opt_ LPWSTR Comment,
86 {
88  return 0;
89 }
90 
91 
93 WINAPI
95  _In_ LPWSTR ServerName,
96  _In_ LPWSTR RootShare,
97  _In_opt_ LPWSTR Comment,
98  _In_ LPWSTR Store)
99 {
101  return 0;
102 }
103 
104 
106 WINAPI
108  _In_ LPWSTR DfsName,
109  _In_ DWORD Level,
110  _In_ DWORD PrefMaxLen,
112  _Out_ LPDWORD EntriesRead,
113  _Inout_ LPDWORD ResumeHandle)
114 {
116  return 0;
117 }
118 
119 
121 WINAPI
123  _In_ LPWSTR DfsEntryPath,
124  _In_opt_ LPWSTR ServerName,
125  _In_opt_ LPWSTR ShareName,
126  _In_ DWORD Level,
128 {
130  return 0;
131 }
132 
133 
135 WINAPI
137  _In_ LPWSTR ServerName,
138  _Out_ LPWSTR *DcIpAddress,
141 {
143  return 0;
144 }
145 
146 
148 WINAPI
150  _In_ LPWSTR DomainName,
152  _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
153  _Out_ LPDWORD lpcbSecurityDescriptor)
154 {
156  return 0;
157 }
158 
159 
161 WINAPI
163  _In_ LPWSTR DfsEntryPath,
164  _In_opt_ LPWSTR ServerName,
165  _In_opt_ LPWSTR ShareName,
166  _In_ DWORD Level,
168 {
170  return 0;
171 }
172 
173 
175 WINAPI
177  _In_ LPWSTR DfsEntryPath,
179  _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
180  _Out_ LPDWORD lpcbSecurityDescriptor)
181 {
183  return 0;
184 }
185 
186 
188 WINAPI
192  _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
193  _Out_ LPDWORD lpcbSecurityDescriptor)
194 {
196  return 0;
197 }
198 
199 
200 /* NetDfsManagerGetConfigInfo */
201 
202 
204 WINAPI
206  _In_ LPWSTR ServerName,
208 {
210  return 0;
211 }
212 
213 
214 /* NetDfsManagerSendSiteInfo */
215 
216 
218 WINAPI
220  _In_ LPWSTR Path,
221  _In_ LPWSTR NewPath,
222  _In_ ULONG Flags)
223 {
225  return 0;
226 }
227 
228 
230 WINAPI
232  _In_ LPWSTR DfsEntryPath,
233  _In_opt_ LPWSTR ServerName,
234  _In_opt_ LPWSTR ShareName)
235 {
237  return 0;
238 }
239 
240 
242 WINAPI
244  _In_ LPWSTR ServerName,
245  _In_ LPWSTR RootShare,
246  _In_ LPWSTR FtDfsName,
248 {
250  return 0;
251 }
252 
253 
255 WINAPI
257  _In_ LPWSTR DomainName,
258  _In_ LPWSTR ServerName,
259  _In_ LPWSTR RootShare,
260  _In_ LPWSTR FtDfsName,
262 {
264  return 0;
265 }
266 
267 
269 WINAPI
271  _In_ LPWSTR ServerName,
272  _In_ LPWSTR RootShare,
273  _In_ DWORD Flags)
274 {
276  return 0;
277 }
278 
279 
281 WINAPI
283  _In_ LPWSTR Path,
284  _In_ LPWSTR NewPath)
285 {
287  return 0;
288 }
289 
290 
292 WINAPI
294  _In_ LPWSTR DfsEntryPath,
295  _In_opt_ LPWSTR ServerName,
296  _In_opt_ LPWSTR ShareName,
297  _In_ DWORD Level,
299 {
301  return 0;
302 }
303 
304 
306 WINAPI
308  _In_ LPWSTR DomainName,
310  _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
311 {
313  return 0;
314 }
315 
316 
318 WINAPI
320  _In_ LPWSTR DfsEntryPath,
321  _In_opt_ LPWSTR ServerName,
322  _In_opt_ LPWSTR ShareName,
323  _In_ DWORD Level,
325 {
327  return 0;
328 }
329 
330 
332 WINAPI
334  _In_ LPWSTR DfsEntryPath,
336  _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
337 {
339  return 0;
340 }
341 
342 
344 WINAPI
348  _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
349 {
351  return 0;
352 }
353 
354 /* EOF */
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
NET_API_STATUS WINAPI NetDfsSetInfo(_In_ LPWSTR DfsEntryPath, _In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR ShareName, _In_ DWORD Level, _In_ LPBYTE Buffer)
Definition: dfs.c:319
#define RpcEndExcept
Definition: rpc.h:128
NET_API_STATUS WINAPI NetDfsGetFtContainerSecurity(_In_ LPWSTR DomainName, _In_ SECURITY_INFORMATION SecurityInformation, _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor, _Out_ LPDWORD lpcbSecurityDescriptor)
Definition: dfs.c:149
NET_API_STATUS WINAPI NetDfsEnum(_In_ LPWSTR DfsName, _In_ DWORD Level, _In_ DWORD PrefMaxLen, _Out_ LPBYTE *Buffer, _Out_ LPDWORD EntriesRead, _Inout_ LPDWORD ResumeHandle)
Definition: dfs.c:107
NET_API_STATUS WINAPI NetDfsRemoveStdRoot(_In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_ DWORD Flags)
Definition: dfs.c:270
NET_API_STATUS WINAPI NetDfsSetClientInfo(_In_ LPWSTR DfsEntryPath, _In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR ShareName, _In_ DWORD Level, _In_ LPBYTE Buffer)
Definition: dfs.c:293
_In_ DWORD _Out_ PDWORD _In_opt_ PCSTR MachineName
Definition: setupapi.h:1286
NET_API_STATUS WINAPI NetDfsGetDcAddress(_In_ LPWSTR ServerName, _Out_ LPWSTR *DcIpAddress, _Out_ PBOOLEAN IsRoot, _Out_ PULONG Timeout)
Definition: dfs.c:136
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
NET_API_STATUS WINAPI NetDfsRename(_In_ LPWSTR Path, _In_ LPWSTR NewPath)
Definition: dfs.c:282
NET_API_STATUS WINAPI NetDfsManagerInitialize(_In_ LPWSTR ServerName, _Reserved_ DWORD Flags)
Definition: dfs.c:205
#define _In_opt_
Definition: no_sal2.h:213
NET_API_STATUS WINAPI NetDfsGetInfo(_In_ LPWSTR DfsEntryPath, _In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR ShareName, _In_ DWORD Level, _Out_ LPBYTE *Buffer)
Definition: dfs.c:162
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
NET_API_STATUS WINAPI NetDfsSetSecurity(_In_ LPWSTR DfsEntryPath, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
Definition: dfs.c:333
unsigned char * LPBYTE
Definition: typedefs.h:52
NET_API_STATUS WINAPI NetDfsGetStdContainerSecurity(_In_ LPWSTR MachineName, _In_ SECURITY_INFORMATION SecurityInformation, _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor, _Out_ LPDWORD lpcbSecurityDescriptor)
Definition: dfs.c:189
#define UNICODE_NULL
DWORD SECURITY_INFORMATION
Definition: ms-dtyp.idl:311
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
#define _Out_
Definition: no_sal2.h:323
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
Definition: bufpool.h:45
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
NET_API_STATUS WINAPI NetDfsGetClientInfo(_In_ LPWSTR DfsEntryPath, _In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR ShareName, _In_ DWORD Level, _Out_ LPBYTE *Buffer)
Definition: dfs.c:122
NET_API_STATUS WINAPI NetDfsRemove(_In_ LPWSTR DfsEntryPath, _In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR ShareName)
Definition: dfs.c:231
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
WINE_DEFAULT_DEBUG_CHANNEL(netapi32)
#define _Inout_
Definition: no_sal2.h:244
NET_API_STATUS WINAPI NetDfsRemoveFtRoot(_In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_ LPWSTR FtDfsName, _Reserved_ DWORD Flags)
Definition: dfs.c:243
#define _Reserved_
Definition: no_sal2.h:573
char * PBOOLEAN
Definition: retypes.h:11
NET_API_STATUS WINAPI NetDfsAddStdRootForced(_In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_opt_ LPWSTR Comment, _In_ LPWSTR Store)
Definition: dfs.c:94
Status
Definition: gdiplustypes.h:24
NET_API_STATUS WINAPI NetDfsSetFtContainerSecurity(_In_ LPWSTR DomainName, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
Definition: dfs.c:307
#define _In_
Definition: no_sal2.h:204
NET_API_STATUS WINAPI NetDfsAddFtRoot(_In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_ LPWSTR FtDfsName, _In_opt_ LPWSTR Comment, _In_ DWORD Flags)
Definition: dfs.c:67
PRTL_UNICODE_STRING_BUFFER Path
static ULONG Timeout
Definition: ping.c:61
NET_API_STATUS WINAPI NetDfsRemoveFtRootForced(_In_ LPWSTR DomainName, _In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_ LPWSTR FtDfsName, _Reserved_ DWORD Flags)
Definition: dfs.c:256
NET_API_STATUS WINAPI NetDfsGetSecurity(_In_ LPWSTR DfsEntryPath, _In_ SECURITY_INFORMATION SecurityInformation, _Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor, _Out_ LPDWORD lpcbSecurityDescriptor)
Definition: dfs.c:176
NET_API_STATUS WINAPI NetDfsAdd(_In_ LPWSTR DfsEntryPath, _In_ LPWSTR ServerName, _In_ LPWSTR PathName, _In_opt_ LPWSTR Comment, _In_ DWORD Flags)
Definition: dfs.c:22
unsigned int * PULONG
Definition: retypes.h:1
NET_API_STATUS WINAPI NetDfsMove(_In_ LPWSTR Path, _In_ LPWSTR NewPath, _In_ ULONG Flags)
Definition: dfs.c:219
uint32_t * LPDWORD
Definition: typedefs.h:57
#define IsRoot(Fcb)
Definition: ext2fs.h:282
unsigned int ULONG
Definition: retypes.h:1
#define UNIMPLEMENTED
Definition: debug.h:114
WCHAR * LPWSTR
Definition: xmlstorage.h:184
NET_API_STATUS WINAPI NetDfsAddStdRoot(_In_ LPWSTR ServerName, _In_ LPWSTR RootShare, _In_opt_ LPWSTR Comment, _In_ DWORD Flags)
Definition: dfs.c:81
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:738
NET_API_STATUS WINAPI NetDfsSetStdContainerSecurity(_In_ LPWSTR MachineName, _In_ SECURITY_INFORMATION SecurityInformation, _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
Definition: dfs.c:345