[NETAPI32]

Move the functions NetGetDCName, NetGetAnyDCName and NetEnumerateTrustedDomains into a separate file for the Netlogon service interface code.

svn path=/trunk/; revision=75186
This commit is contained in:
Eric Kohl 2017-06-24 16:42:21 +00:00
parent 33b1caea25
commit 6317bb3ec2
3 changed files with 58 additions and 42 deletions

View file

@ -26,6 +26,7 @@ list(APPEND SOURCE
nbt.c
netapi32.c
netbios.c
netlogon.c
obsolete.c
schedule.c
srvsvc.c

View file

@ -246,45 +246,3 @@ NetQueryDisplayInformation(
}
return NERR_Success;
}
/************************************************************
* NetGetDCName (NETAPI32.@)
*
* Return the name of the primary domain controller (PDC)
*/
NET_API_STATUS WINAPI
NetGetDCName(LPCWSTR servername, LPCWSTR domainname, LPBYTE *bufptr)
{
FIXME("(%s, %s, %p) stub!\n", debugstr_w(servername),
debugstr_w(domainname), bufptr);
return NERR_DCNotFound; /* say we can't find a domain controller */
}
/************************************************************
* NetGetAnyDCName (NETAPI32.@)
*
* Return the name of any domain controller (DC)
*/
NET_API_STATUS WINAPI
NetGetAnyDCName(
_In_ LPCWSTR servername,
_In_ LPCWSTR domainname,
_Out_ LPBYTE *bufptr)
{
FIXME("NetGetAnyDCName(%s, %s, %p) stub!\n", debugstr_w(servername),
debugstr_w(domainname), bufptr);
return ERROR_NO_LOGON_SERVERS;
}
/************************************************************
* NetEnumerateTrustedDomains (NETAPI32.@)
*
* On success, *DomainNames is a multi-sz allocated using NetApiBufferAllocate
*/
NTSTATUS WINAPI
NetEnumerateTrustedDomains(LPWSTR ServerName, LPWSTR *DomainNames)
{
FIXME("(%s, %p) stub!\n", debugstr_w(ServerName), DomainNames);
return STATUS_NOT_IMPLEMENTED;
}

View file

@ -0,0 +1,57 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: NetAPI DLL
* FILE: dll/win32/netapi32/netlogon.c
* PURPOSE: Netlogon service interface code
* PROGRAMMERS: Eric Kohl (eric.kohl@reactos.org)
*/
/* INCLUDES ******************************************************************/
#include "netapi32.h"
WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
/* FUNCTIONS *****************************************************************/
NTSTATUS
WINAPI
NetEnumerateTrustedDomains(
_In_ LPWSTR ServerName,
_Out_ LPWSTR *DomainNames)
{
FIXME("NetEnumerateTrustedDomains(%s, %p)\n",
debugstr_w(ServerName), DomainNames);
return STATUS_NOT_IMPLEMENTED;
}
NET_API_STATUS
WINAPI
NetGetAnyDCName(
_In_ LPCWSTR servername,
_In_ LPCWSTR domainname,
_Out_ LPBYTE *bufptr)
{
FIXME("NetGetAnyDCName(%s, %s, %p)\n",
debugstr_w(servername), debugstr_w(domainname), bufptr);
return ERROR_NO_LOGON_SERVERS;
}
NET_API_STATUS
WINAPI
NetGetDCName(
_In_ LPCWSTR servername,
_In_ LPCWSTR domainname,
_Out_ LPBYTE *bufptr)
{
FIXME("NetGetDCName(%s, %s, %p)\n",
debugstr_w(servername), debugstr_w(domainname), bufptr);
return NERR_DCNotFound;
}
/* EOF */