2 * COPYRIGHT: See COPYING in the top level directory
4 * FILE: reactos/dll/win32/netapi32/dfs.c
5 * PURPOSE: Distributed File System Service interface code
6 * PROGRAMMERS: Eric Kohl
9 /* INCLUDES ******************************************************************/
16 WINE_DEFAULT_DEBUG_CHANNEL(netapi32
);
18 /* FUNCTIONS *****************************************************************/
23 _In_ LPWSTR DfsEntryPath
,
24 _In_ LPWSTR ServerName
,
26 _In_opt_ LPWSTR Comment
,
30 NET_API_STATUS Status
;
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
);
36 if (DfsEntryPath
== NULL
||
37 *DfsEntryPath
== UNICODE_NULL
||
39 *ServerName
== UNICODE_NULL
||
41 *PathName
== UNICODE_NULL
)
42 return ERROR_INVALID_PARAMETER
;
46 Status
= NetrDfsAdd(DfsEntryPath
,
52 RpcExcept(EXCEPTION_EXECUTE_HANDLER
)
54 Status
= I_RpcMapWin32Status(RpcExceptionCode());
68 _In_ LPWSTR ServerName
,
69 _In_ LPWSTR RootShare
,
70 _In_ LPWSTR FtDfsName
,
71 _In_opt_ LPWSTR Comment
,
82 _In_ LPWSTR ServerName
,
83 _In_ LPWSTR RootShare
,
84 _In_opt_ LPWSTR Comment
,
94 NetDfsAddStdRootForced(
95 _In_ LPWSTR ServerName
,
96 _In_ LPWSTR RootShare
,
97 _In_opt_ LPWSTR Comment
,
110 _In_ DWORD PrefMaxLen
,
111 _Out_ LPBYTE
*Buffer
,
112 _Out_ LPDWORD EntriesRead
,
113 _Inout_ LPDWORD ResumeHandle
)
123 _In_ LPWSTR DfsEntryPath
,
124 _In_opt_ LPWSTR ServerName
,
125 _In_opt_ LPWSTR ShareName
,
127 _Out_ LPBYTE
*Buffer
)
137 _In_ LPWSTR ServerName
,
138 _Out_ LPWSTR
*DcIpAddress
,
139 _Out_ PBOOLEAN IsRoot
,
140 _Out_ PULONG Timeout
)
149 NetDfsGetFtContainerSecurity(
150 _In_ LPWSTR DomainName
,
151 _In_ SECURITY_INFORMATION SecurityInformation
,
152 _Out_ PSECURITY_DESCRIPTOR
*ppSecurityDescriptor
,
153 _Out_ LPDWORD lpcbSecurityDescriptor
)
163 _In_ LPWSTR DfsEntryPath
,
164 _In_opt_ LPWSTR ServerName
,
165 _In_opt_ LPWSTR ShareName
,
167 _Out_ LPBYTE
*Buffer
)
177 _In_ LPWSTR DfsEntryPath
,
178 _In_ SECURITY_INFORMATION SecurityInformation
,
179 _Out_ PSECURITY_DESCRIPTOR
*ppSecurityDescriptor
,
180 _Out_ LPDWORD lpcbSecurityDescriptor
)
189 NetDfsGetStdContainerSecurity(
190 _In_ LPWSTR MachineName
,
191 _In_ SECURITY_INFORMATION SecurityInformation
,
192 _Out_ PSECURITY_DESCRIPTOR
*ppSecurityDescriptor
,
193 _Out_ LPDWORD lpcbSecurityDescriptor
)
200 /* NetDfsManagerGetConfigInfo */
205 NetDfsManagerInitialize(
206 _In_ LPWSTR ServerName
,
207 _Reserved_ DWORD Flags
)
214 /* NetDfsManagerSendSiteInfo */
232 _In_ LPWSTR DfsEntryPath
,
233 _In_opt_ LPWSTR ServerName
,
234 _In_opt_ LPWSTR ShareName
)
244 _In_ LPWSTR ServerName
,
245 _In_ LPWSTR RootShare
,
246 _In_ LPWSTR FtDfsName
,
247 _Reserved_ DWORD Flags
)
256 NetDfsRemoveFtRootForced(
257 _In_ LPWSTR DomainName
,
258 _In_ LPWSTR ServerName
,
259 _In_ LPWSTR RootShare
,
260 _In_ LPWSTR FtDfsName
,
261 _Reserved_ DWORD Flags
)
271 _In_ LPWSTR ServerName
,
272 _In_ LPWSTR RootShare
,
294 _In_ LPWSTR DfsEntryPath
,
295 _In_opt_ LPWSTR ServerName
,
296 _In_opt_ LPWSTR ShareName
,
307 NetDfsSetFtContainerSecurity(
308 _In_ LPWSTR DomainName
,
309 _In_ SECURITY_INFORMATION SecurityInformation
,
310 _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor
)
320 _In_ LPWSTR DfsEntryPath
,
321 _In_opt_ LPWSTR ServerName
,
322 _In_opt_ LPWSTR ShareName
,
334 _In_ LPWSTR DfsEntryPath
,
335 _In_ SECURITY_INFORMATION SecurityInformation
,
336 _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor
)
345 NetDfsSetStdContainerSecurity(
346 _In_ LPWSTR MachineName
,
347 _In_ SECURITY_INFORMATION SecurityInformation
,
348 _In_ PSECURITY_DESCRIPTOR pSecurityDescriptor
)