Author: ekohl Date: Sat Jun 24 16:42:21 2017 New Revision: 75186
URL: http://svn.reactos.org/svn/reactos?rev=75186&view=rev Log: [NETAPI32] Move the functions NetGetDCName, NetGetAnyDCName and NetEnumerateTrustedDomains into a separate file for the Netlogon service interface code.
Added: trunk/reactos/dll/win32/netapi32/netlogon.c (with props) Modified: trunk/reactos/dll/win32/netapi32/CMakeLists.txt trunk/reactos/dll/win32/netapi32/access.c
Modified: trunk/reactos/dll/win32/netapi32/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/CMakeLis... ============================================================================== --- trunk/reactos/dll/win32/netapi32/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/CMakeLists.txt [iso-8859-1] Sat Jun 24 16:42:21 2017 @@ -26,6 +26,7 @@ nbt.c netapi32.c netbios.c + netlogon.c obsolete.c schedule.c srvsvc.c
Modified: trunk/reactos/dll/win32/netapi32/access.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/access.c... ============================================================================== --- trunk/reactos/dll/win32/netapi32/access.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/netapi32/access.c [iso-8859-1] Sat Jun 24 16:42:21 2017 @@ -246,45 +246,3 @@ } 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; -}
Added: trunk/reactos/dll/win32/netapi32/netlogon.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netlogon... ============================================================================== --- trunk/reactos/dll/win32/netapi32/netlogon.c (added) +++ trunk/reactos/dll/win32/netapi32/netlogon.c [iso-8859-1] Sat Jun 24 16:42:21 2017 @@ -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 */
Propchange: trunk/reactos/dll/win32/netapi32/netlogon.c ------------------------------------------------------------------------------ svn:eol-style = native