mirror of
https://github.com/reactos/reactos.git
synced 2025-03-30 17:10:22 +00:00
[NETAPI32] Add more DFS stubs
This commit is contained in:
parent
29603e7291
commit
47714b25a9
2 changed files with 253 additions and 27 deletions
|
@ -27,13 +27,35 @@ NetDfsAdd(
|
||||||
_In_ DWORD Flags)
|
_In_ DWORD Flags)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
NET_API_STATUS
|
NET_API_STATUS Status;
|
||||||
__stdcall
|
|
||||||
status = NetrDfsAdd(DfsEntryPath,
|
TRACE("NetDfsAdd(%s %s %s %s 0x%lx)\n",
|
||||||
ServerName,
|
debugstr_w(DfsEntryPath), debugstr_w(ServerName), debugstr_w(PathName),
|
||||||
PathName,
|
debugstr_w(Comment), Flags);
|
||||||
Comment,
|
|
||||||
Flags);
|
if (DfsEntryPath == NULL ||
|
||||||
|
*DfsEntryPath == UNICODE_NULL ||
|
||||||
|
ServerName == NULL ||
|
||||||
|
*ServerName == UNICODE_NULL ||
|
||||||
|
PathName == NULL ||
|
||||||
|
*PathName == UNICODE_NULL)
|
||||||
|
return ERROR_INVALID_PARAMETER;
|
||||||
|
|
||||||
|
RpcTryExcept
|
||||||
|
{
|
||||||
|
Status = NetrDfsAdd(DfsEntryPath,
|
||||||
|
ServerName,
|
||||||
|
PathName,
|
||||||
|
Comment,
|
||||||
|
Flags);
|
||||||
|
}
|
||||||
|
RpcExcept(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
Status = I_RpcMapWin32Status(RpcExceptionCode());
|
||||||
|
}
|
||||||
|
RpcEndExcept;
|
||||||
|
|
||||||
|
return Status;
|
||||||
#endif
|
#endif
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -88,7 +110,7 @@ NetDfsEnum(
|
||||||
_In_ DWORD PrefMaxLen,
|
_In_ DWORD PrefMaxLen,
|
||||||
_Out_ LPBYTE *Buffer,
|
_Out_ LPBYTE *Buffer,
|
||||||
_Out_ LPDWORD EntriesRead,
|
_Out_ LPDWORD EntriesRead,
|
||||||
_Out_ LPDWORD ResumeHandle)
|
_Inout_ LPDWORD ResumeHandle)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -99,8 +121,8 @@ NET_API_STATUS
|
||||||
WINAPI
|
WINAPI
|
||||||
NetDfsGetClientInfo(
|
NetDfsGetClientInfo(
|
||||||
_In_ LPWSTR DfsEntryPath,
|
_In_ LPWSTR DfsEntryPath,
|
||||||
_In_ LPWSTR ServerName,
|
_In_opt_ LPWSTR ServerName,
|
||||||
_In_ LPWSTR ShareName,
|
_In_opt_ LPWSTR ShareName,
|
||||||
_In_ DWORD Level,
|
_In_ DWORD Level,
|
||||||
_Out_ LPBYTE *Buffer)
|
_Out_ LPBYTE *Buffer)
|
||||||
{
|
{
|
||||||
|
@ -109,7 +131,17 @@ NetDfsGetClientInfo(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* NetDfsGetDcAddress */
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsGetDcAddress(
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_Out_ LPWSTR *DcIpAddress,
|
||||||
|
_Out_ PBOOLEAN IsRoot,
|
||||||
|
_Out_ PULONG Timeout)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NET_API_STATUS
|
NET_API_STATUS
|
||||||
|
@ -125,4 +157,198 @@ NetDfsGetFtContainerSecurity(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsGetInfo(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_opt_ LPWSTR ServerName,
|
||||||
|
_In_opt_ LPWSTR ShareName,
|
||||||
|
_In_ DWORD Level,
|
||||||
|
_Out_ LPBYTE *Buffer)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsGetSecurity(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_ SECURITY_INFORMATION SecurityInformation,
|
||||||
|
_Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
|
||||||
|
_Out_ LPDWORD lpcbSecurityDescriptor)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsGetStdContainerSecurity(
|
||||||
|
_In_ LPWSTR MachineName,
|
||||||
|
_In_ SECURITY_INFORMATION SecurityInformation,
|
||||||
|
_Out_ PSECURITY_DESCRIPTOR *ppSecurityDescriptor,
|
||||||
|
_Out_ LPDWORD lpcbSecurityDescriptor)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* NetDfsManagerGetConfigInfo */
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsManagerInitialize(
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_Reserved_ DWORD Flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* NetDfsManagerSendSiteInfo */
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsMove(
|
||||||
|
_In_ LPWSTR Path,
|
||||||
|
_In_ LPWSTR NewPath,
|
||||||
|
_In_ ULONG Flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsRemove(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_opt_ LPWSTR ServerName,
|
||||||
|
_In_opt_ LPWSTR ShareName)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsRemoveFtRoot(
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_In_ LPWSTR RootShare,
|
||||||
|
_In_ LPWSTR FtDfsName,
|
||||||
|
_Reserved_ DWORD Flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsRemoveFtRootForced(
|
||||||
|
_In_ LPWSTR DomainName,
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_In_ LPWSTR RootShare,
|
||||||
|
_In_ LPWSTR FtDfsName,
|
||||||
|
_Reserved_ DWORD Flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsRemoveStdRoot(
|
||||||
|
_In_ LPWSTR ServerName,
|
||||||
|
_In_ LPWSTR RootShare,
|
||||||
|
_In_ DWORD Flags)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsRename(
|
||||||
|
_In_ LPWSTR Path,
|
||||||
|
_In_ LPWSTR NewPath)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsSetClientInfo(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_opt_ LPWSTR ServerName,
|
||||||
|
_In_opt_ LPWSTR ShareName,
|
||||||
|
_In_ DWORD Level,
|
||||||
|
_In_ LPBYTE Buffer)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsSetFtContainerSecurity(
|
||||||
|
_In_ LPWSTR DomainName,
|
||||||
|
_In_ SECURITY_INFORMATION SecurityInformation,
|
||||||
|
_In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsSetInfo(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_opt_ LPWSTR ServerName,
|
||||||
|
_In_opt_ LPWSTR ShareName,
|
||||||
|
_In_ DWORD Level,
|
||||||
|
_In_ LPBYTE Buffer)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsSetSecurity(
|
||||||
|
_In_ LPWSTR DfsEntryPath,
|
||||||
|
_In_ SECURITY_INFORMATION SecurityInformation,
|
||||||
|
_In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NET_API_STATUS
|
||||||
|
WINAPI
|
||||||
|
NetDfsSetStdContainerSecurity(
|
||||||
|
_In_ LPWSTR MachineName,
|
||||||
|
_In_ SECURITY_INFORMATION SecurityInformation,
|
||||||
|
_In_ PSECURITY_DESCRIPTOR pSecurityDescriptor)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -120,25 +120,25 @@
|
||||||
@ stdcall NetDfsAddStdRootForced(wstr wstr wstr wstr)
|
@ stdcall NetDfsAddStdRootForced(wstr wstr wstr wstr)
|
||||||
@ stdcall NetDfsEnum(wstr long long ptr ptr ptr)
|
@ stdcall NetDfsEnum(wstr long long ptr ptr ptr)
|
||||||
@ stdcall NetDfsGetClientInfo(wstr wstr wstr long ptr)
|
@ stdcall NetDfsGetClientInfo(wstr wstr wstr long ptr)
|
||||||
@ stub NetDfsGetDcAddress
|
@ stdcall NetDfsGetDcAddress(wstr ptr ptr ptr)
|
||||||
@ stdcall NetDfsGetFtContainerSecurity(wstr long ptr ptr);
|
@ stdcall NetDfsGetFtContainerSecurity(wstr long ptr ptr);
|
||||||
@ stub NetDfsGetInfo
|
@ stdcall NetDfsGetInfo(wstr wstr wstr long ptr)
|
||||||
@ stub NetDfsGetSecurity
|
@ stdcall NetDfsGetSecurity(wstr ptr ptr ptr)
|
||||||
@ stub NetDfsGetStdContainerSecurity
|
@ stdcall NetDfsGetStdContainerSecurity(wstr ptr ptr ptr)
|
||||||
@ stub NetDfsManagerGetConfigInfo
|
@ stub NetDfsManagerGetConfigInfo
|
||||||
@ stub NetDfsManagerInitialize
|
@ stdcall NetDfsManagerInitialize(wstr long)
|
||||||
@ stub NetDfsManagerSendSiteInfo
|
@ stub NetDfsManagerSendSiteInfo
|
||||||
@ stub NetDfsMove
|
@ stdcall NetDfsMove(wstr wstr long)
|
||||||
@ stub NetDfsRemove
|
@ stdcall NetDfsRemove(wstr wstr wstr)
|
||||||
@ stub NetDfsRemoveFtRoot
|
@ stdcall NetDfsRemoveFtRoot(wstr wstr wstr long)
|
||||||
@ stub NetDfsRemoveFtRootForced
|
@ stdcall NetDfsRemoveFtRootForced(wstr wstr wstr wstr long)
|
||||||
@ stub NetDfsRemoveStdRoot
|
@ stdcall NetDfsRemoveStdRoot(wstr wstr long)
|
||||||
@ stub NetDfsRename
|
@ stdcall NetDfsRename(wstr wstr)
|
||||||
@ stub NetDfsSetClientInfo
|
@ stdcall NetDfsSetClientInfo(wstr wstr wstr long ptr)
|
||||||
@ stub NetDfsSetFtContainerSecurity
|
@ stdcall NetDfsSetFtContainerSecurity(wstr ptr ptr)
|
||||||
@ stub NetDfsSetInfo
|
@ stdcall NetDfsSetInfo(wstr wstr wstr long ptr)
|
||||||
@ stub NetDfsSetSecurity
|
@ stdcall NetDfsSetSecurity(wstr ptr ptr)
|
||||||
@ stub NetDfsSetStdContainerSecurity
|
@ stdcall NetDfsSetStdContainerSecurity(wstr ptr ptr)
|
||||||
@ stdcall NetEnumerateComputerNames(wstr long long ptr ptr)
|
@ stdcall NetEnumerateComputerNames(wstr long long ptr ptr)
|
||||||
@ stdcall NetEnumerateTrustedDomains(wstr ptr)
|
@ stdcall NetEnumerateTrustedDomains(wstr ptr)
|
||||||
@ stdcall NetErrorLogClear(wstr wstr ptr)
|
@ stdcall NetErrorLogClear(wstr wstr ptr)
|
||||||
|
|
Loading…
Reference in a new issue