From 6317bb3ec211e96b319b02883559dd0467467d65 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 24 Jun 2017 16:42:21 +0000 Subject: [PATCH] [NETAPI32] Move the functions NetGetDCName, NetGetAnyDCName and NetEnumerateTrustedDomains into a separate file for the Netlogon service interface code. svn path=/trunk/; revision=75186 --- reactos/dll/win32/netapi32/CMakeLists.txt | 1 + reactos/dll/win32/netapi32/access.c | 42 ----------------- reactos/dll/win32/netapi32/netlogon.c | 57 +++++++++++++++++++++++ 3 files changed, 58 insertions(+), 42 deletions(-) create mode 100644 reactos/dll/win32/netapi32/netlogon.c diff --git a/reactos/dll/win32/netapi32/CMakeLists.txt b/reactos/dll/win32/netapi32/CMakeLists.txt index 273bc4b33b6..150492322af 100644 --- a/reactos/dll/win32/netapi32/CMakeLists.txt +++ b/reactos/dll/win32/netapi32/CMakeLists.txt @@ -26,6 +26,7 @@ list(APPEND SOURCE nbt.c netapi32.c netbios.c + netlogon.c obsolete.c schedule.c srvsvc.c diff --git a/reactos/dll/win32/netapi32/access.c b/reactos/dll/win32/netapi32/access.c index 3b89b24ad76..7b70e2fd61f 100644 --- a/reactos/dll/win32/netapi32/access.c +++ b/reactos/dll/win32/netapi32/access.c @@ -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; -} diff --git a/reactos/dll/win32/netapi32/netlogon.c b/reactos/dll/win32/netapi32/netlogon.c new file mode 100644 index 00000000000..4315c56def8 --- /dev/null +++ b/reactos/dll/win32/netapi32/netlogon.c @@ -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 */